@tager/admin-import 0.1.2 → 0.1.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.
package/dist/index.esm.js CHANGED
@@ -16,6 +16,7 @@ const EN = {
16
16
  status: 'status',
17
17
  message: 'Message',
18
18
  log: 'Log',
19
+ params: 'Params',
19
20
  file: 'file',
20
21
  newImport: 'New import',
21
22
  importCreation: 'Import creation',
@@ -36,6 +37,7 @@ const RU = {
36
37
  status: 'Статус',
37
38
  message: 'Сообщение',
38
39
  log: 'Лог',
40
+ params: 'Параметры',
39
41
  file: 'Файл',
40
42
  newImport: 'Новый импорт',
41
43
  importCreation: 'Создание импорта',
@@ -254,11 +256,11 @@ __vue_render__._withStripped = true;
254
256
  /* style */
255
257
  const __vue_inject_styles__ = function (inject) {
256
258
  if (!inject) return
257
- inject("data-v-0a898ff6_0", { source: ".name[data-v-0a898ff6] {\n display: inline-block;\n width: 100px;\n}\n\n/*# sourceMappingURL=CellHistory.vue.map */", map: {"version":3,"sources":["/home/runner/work/tager-admin-import/tager-admin-import/src/views/ImportList/components/CellHistory/CellHistory.vue","CellHistory.vue"],"names":[],"mappings":"AAoCA;EACA,qBAAA;EACA,YAAA;ACnCA;;AAEA,0CAA0C","file":"CellHistory.vue","sourcesContent":["<template>\n <ul v-if=\"history.length > 0\">\n <li v-for=\"(history, index) of history\" :key=\"index\">\n <span class=\"name\">\n {{ history.status }}\n </span>\n {{ dateTimeFormat(history.datetime) }}\n </li>\n </ul>\n</template>\n\n<script lang=\"ts\">\nimport { defineComponent, PropType } from '@vue/composition-api';\n\nimport { HistoryType } from '../../../../typings/model';\n\nimport { Props } from './CellHistory.types';\nimport { dateTimeFormat } from './CellHistory.helpers';\n\nexport default defineComponent<Props>({\n name: 'CellHistory',\n props: {\n history: {\n type: Array as PropType<HistoryType[]>,\n default: () => [],\n },\n },\n setup() {\n return {\n dateTimeFormat,\n };\n },\n});\n</script>\n\n<style lang=\"scss\" scoped>\n.name {\n display: inline-block;\n width: 100px;\n}\n</style>\n",".name {\n display: inline-block;\n width: 100px;\n}\n\n/*# sourceMappingURL=CellHistory.vue.map */"]}, media: undefined });
259
+ inject("data-v-567e7558_0", { source: ".name[data-v-567e7558] {\n display: inline-block;\n width: 75px;\n}\n\n/*# sourceMappingURL=CellHistory.vue.map */", map: {"version":3,"sources":["/home/runner/work/tager-admin-import/tager-admin-import/src/views/ImportList/components/CellHistory/CellHistory.vue","CellHistory.vue"],"names":[],"mappings":"AAoCA;EACA,qBAAA;EACA,WAAA;ACnCA;;AAEA,0CAA0C","file":"CellHistory.vue","sourcesContent":["<template>\n <ul v-if=\"history.length > 0\">\n <li v-for=\"(history, index) of history\" :key=\"index\">\n <span class=\"name\">\n {{ history.status }}\n </span>\n {{ dateTimeFormat(history.datetime) }}\n </li>\n </ul>\n</template>\n\n<script lang=\"ts\">\nimport { defineComponent, PropType } from '@vue/composition-api';\n\nimport { HistoryType } from '../../../../typings/model';\n\nimport { Props } from './CellHistory.types';\nimport { dateTimeFormat } from './CellHistory.helpers';\n\nexport default defineComponent<Props>({\n name: 'CellHistory',\n props: {\n history: {\n type: Array as PropType<HistoryType[]>,\n default: () => [],\n },\n },\n setup() {\n return {\n dateTimeFormat,\n };\n },\n});\n</script>\n\n<style lang=\"scss\" scoped>\n.name {\n display: inline-block;\n width: 75px;\n}\n</style>\n",".name {\n display: inline-block;\n width: 75px;\n}\n\n/*# sourceMappingURL=CellHistory.vue.map */"]}, media: undefined });
258
260
 
259
261
  };
260
262
  /* scoped */
261
- const __vue_scope_id__ = "data-v-0a898ff6";
263
+ const __vue_scope_id__ = "data-v-567e7558";
262
264
  /* module identifier */
263
265
  const __vue_module_identifier__ = undefined;
264
266
  /* functional template */
@@ -312,30 +314,42 @@ var script$1 = defineComponent({
312
314
  id: 2,
313
315
  name: t('import:type'),
314
316
  field: 'strategy',
315
- style: { width: '15%' },
316
- headStyle: { width: '15%' },
317
+ style: { width: '150px' },
318
+ headStyle: { width: '150px' },
317
319
  },
318
320
  {
319
321
  id: 3,
322
+ name: t('import:params'),
323
+ field: 'params',
324
+ type: 'key-value',
325
+ format: ({ row }) => row.params ? row.params.map((param) => {
326
+ return {
327
+ key: param.label,
328
+ value: param.value
329
+ };
330
+ }) : null
331
+ },
332
+ {
333
+ id: 4,
320
334
  name: t('import:status'),
321
335
  field: 'status',
322
- style: { width: '15%' },
323
- headStyle: { width: '15%' },
336
+ style: { width: '120px' },
337
+ headStyle: { width: '120px' },
324
338
  },
325
339
  {
326
- id: 4,
340
+ id: 5,
327
341
  name: t('import:message'),
328
342
  field: 'message',
329
343
  },
330
344
  {
331
- id: 5,
345
+ id: 6,
332
346
  name: t('import:log'),
333
347
  field: 'history',
334
- style: { width: '25%' },
335
- headStyle: { width: '25%' },
348
+ style: { width: '250px' },
349
+ headStyle: { width: '250px' },
336
350
  },
337
351
  {
338
- id: 6,
352
+ id: 7,
339
353
  name: t('import:file'),
340
354
  field: 'file',
341
355
  type: 'file',
package/dist/index.umd.js CHANGED
@@ -18,6 +18,7 @@
18
18
  status: 'status',
19
19
  message: 'Message',
20
20
  log: 'Log',
21
+ params: 'Params',
21
22
  file: 'file',
22
23
  newImport: 'New import',
23
24
  importCreation: 'Import creation',
@@ -38,6 +39,7 @@
38
39
  status: 'Статус',
39
40
  message: 'Сообщение',
40
41
  log: 'Лог',
42
+ params: 'Параметры',
41
43
  file: 'Файл',
42
44
  newImport: 'Новый импорт',
43
45
  importCreation: 'Создание импорта',
@@ -256,11 +258,11 @@
256
258
  /* style */
257
259
  const __vue_inject_styles__ = function (inject) {
258
260
  if (!inject) return
259
- inject("data-v-0a898ff6_0", { source: ".name[data-v-0a898ff6] {\n display: inline-block;\n width: 100px;\n}\n\n/*# sourceMappingURL=CellHistory.vue.map */", map: {"version":3,"sources":["/home/runner/work/tager-admin-import/tager-admin-import/src/views/ImportList/components/CellHistory/CellHistory.vue","CellHistory.vue"],"names":[],"mappings":"AAoCA;EACA,qBAAA;EACA,YAAA;ACnCA;;AAEA,0CAA0C","file":"CellHistory.vue","sourcesContent":["<template>\n <ul v-if=\"history.length > 0\">\n <li v-for=\"(history, index) of history\" :key=\"index\">\n <span class=\"name\">\n {{ history.status }}\n </span>\n {{ dateTimeFormat(history.datetime) }}\n </li>\n </ul>\n</template>\n\n<script lang=\"ts\">\nimport { defineComponent, PropType } from '@vue/composition-api';\n\nimport { HistoryType } from '../../../../typings/model';\n\nimport { Props } from './CellHistory.types';\nimport { dateTimeFormat } from './CellHistory.helpers';\n\nexport default defineComponent<Props>({\n name: 'CellHistory',\n props: {\n history: {\n type: Array as PropType<HistoryType[]>,\n default: () => [],\n },\n },\n setup() {\n return {\n dateTimeFormat,\n };\n },\n});\n</script>\n\n<style lang=\"scss\" scoped>\n.name {\n display: inline-block;\n width: 100px;\n}\n</style>\n",".name {\n display: inline-block;\n width: 100px;\n}\n\n/*# sourceMappingURL=CellHistory.vue.map */"]}, media: undefined });
261
+ inject("data-v-567e7558_0", { source: ".name[data-v-567e7558] {\n display: inline-block;\n width: 75px;\n}\n\n/*# sourceMappingURL=CellHistory.vue.map */", map: {"version":3,"sources":["/home/runner/work/tager-admin-import/tager-admin-import/src/views/ImportList/components/CellHistory/CellHistory.vue","CellHistory.vue"],"names":[],"mappings":"AAoCA;EACA,qBAAA;EACA,WAAA;ACnCA;;AAEA,0CAA0C","file":"CellHistory.vue","sourcesContent":["<template>\n <ul v-if=\"history.length > 0\">\n <li v-for=\"(history, index) of history\" :key=\"index\">\n <span class=\"name\">\n {{ history.status }}\n </span>\n {{ dateTimeFormat(history.datetime) }}\n </li>\n </ul>\n</template>\n\n<script lang=\"ts\">\nimport { defineComponent, PropType } from '@vue/composition-api';\n\nimport { HistoryType } from '../../../../typings/model';\n\nimport { Props } from './CellHistory.types';\nimport { dateTimeFormat } from './CellHistory.helpers';\n\nexport default defineComponent<Props>({\n name: 'CellHistory',\n props: {\n history: {\n type: Array as PropType<HistoryType[]>,\n default: () => [],\n },\n },\n setup() {\n return {\n dateTimeFormat,\n };\n },\n});\n</script>\n\n<style lang=\"scss\" scoped>\n.name {\n display: inline-block;\n width: 75px;\n}\n</style>\n",".name {\n display: inline-block;\n width: 75px;\n}\n\n/*# sourceMappingURL=CellHistory.vue.map */"]}, media: undefined });
260
262
 
261
263
  };
262
264
  /* scoped */
263
- const __vue_scope_id__ = "data-v-0a898ff6";
265
+ const __vue_scope_id__ = "data-v-567e7558";
264
266
  /* module identifier */
265
267
  const __vue_module_identifier__ = undefined;
266
268
  /* functional template */
@@ -314,30 +316,42 @@
314
316
  id: 2,
315
317
  name: t('import:type'),
316
318
  field: 'strategy',
317
- style: { width: '15%' },
318
- headStyle: { width: '15%' },
319
+ style: { width: '150px' },
320
+ headStyle: { width: '150px' },
319
321
  },
320
322
  {
321
323
  id: 3,
324
+ name: t('import:params'),
325
+ field: 'params',
326
+ type: 'key-value',
327
+ format: ({ row }) => row.params ? row.params.map((param) => {
328
+ return {
329
+ key: param.label,
330
+ value: param.value
331
+ };
332
+ }) : null
333
+ },
334
+ {
335
+ id: 4,
322
336
  name: t('import:status'),
323
337
  field: 'status',
324
- style: { width: '15%' },
325
- headStyle: { width: '15%' },
338
+ style: { width: '120px' },
339
+ headStyle: { width: '120px' },
326
340
  },
327
341
  {
328
- id: 4,
342
+ id: 5,
329
343
  name: t('import:message'),
330
344
  field: 'message',
331
345
  },
332
346
  {
333
- id: 5,
347
+ id: 6,
334
348
  name: t('import:log'),
335
349
  field: 'history',
336
- style: { width: '25%' },
337
- headStyle: { width: '25%' },
350
+ style: { width: '250px' },
351
+ headStyle: { width: '250px' },
338
352
  },
339
353
  {
340
- id: 6,
354
+ id: 7,
341
355
  name: t('import:file'),
342
356
  field: 'file',
343
357
  type: 'file',
@@ -9,6 +9,7 @@ declare const EN: {
9
9
  status: string;
10
10
  message: string;
11
11
  log: string;
12
+ params: string;
12
13
  file: string;
13
14
  newImport: string;
14
15
  importCreation: string;
@@ -4,12 +4,17 @@ export interface HistoryType {
4
4
  readonly datetime: string;
5
5
  readonly status: string;
6
6
  }
7
+ export interface ParamType {
8
+ readonly label: string;
9
+ readonly value: string;
10
+ }
7
11
  export interface ImportType {
8
12
  readonly id: number;
9
13
  readonly strategy: string;
10
14
  readonly status: string;
11
15
  readonly message: string | null;
12
16
  readonly history: Array<HistoryType>;
17
+ readonly params: Array<ParamType> | null;
13
18
  readonly file: FileType | null;
14
19
  }
15
20
  export interface StrategyType {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@tager/admin-import",
3
- "version": "0.1.2",
3
+ "version": "0.1.3",
4
4
  "license": "MIT",
5
5
  "main": "dist/index.umd.js",
6
6
  "module": "dist/index.esm.js",
@@ -26,9 +26,9 @@
26
26
  "@rollup/plugin-commonjs": "^14.0.0",
27
27
  "@rollup/plugin-node-resolve": "^8.1.0",
28
28
  "@tager/admin-dynamic-field": "^0.1.18",
29
- "@tager/admin-layout": "^0.5.3",
30
- "@tager/admin-services": "^0.2.24",
31
- "@tager/admin-ui": "^0.8.81",
29
+ "@tager/admin-layout": "^0.5.4",
30
+ "@tager/admin-services": "^0.2.26",
31
+ "@tager/admin-ui": "^0.8.93",
32
32
  "@types/lodash.kebabcase": "^4.1.6",
33
33
  "@types/node": "12.x",
34
34
  "@typescript-eslint/eslint-plugin": "^2.26.0",
package/src/locales/en.ts CHANGED
@@ -9,6 +9,7 @@ const EN = {
9
9
  status: 'status',
10
10
  message: 'Message',
11
11
  log: 'Log',
12
+ params: 'Params',
12
13
  file: 'file',
13
14
  newImport: 'New import',
14
15
  importCreation: 'Import creation',
package/src/locales/ru.ts CHANGED
@@ -11,6 +11,7 @@ const RU: typeof EN = {
11
11
  status: 'Статус',
12
12
  message: 'Сообщение',
13
13
  log: 'Лог',
14
+ params: 'Параметры',
14
15
  file: 'Файл',
15
16
  newImport: 'Новый импорт',
16
17
  importCreation: 'Создание импорта',
@@ -10,12 +10,18 @@ export interface HistoryType {
10
10
  readonly status: string;
11
11
  }
12
12
 
13
+ export interface ParamType {
14
+ readonly label: string;
15
+ readonly value: string;
16
+ }
17
+
13
18
  export interface ImportType {
14
19
  readonly id: number;
15
20
  readonly strategy: string;
16
21
  readonly status: string;
17
22
  readonly message: string | null;
18
23
  readonly history: Array<HistoryType>;
24
+ readonly params: Array<ParamType> | null;
19
25
  readonly file: FileType | null;
20
26
  }
21
27
 
@@ -88,31 +88,43 @@ export default defineComponent({
88
88
  id: 2,
89
89
  name: t('import:type'),
90
90
  field: 'strategy',
91
- style: { width: '15%' },
92
- headStyle: { width: '15%' },
91
+ style: { width: '150px' },
92
+ headStyle: { width: '150px' },
93
93
  },
94
94
  {
95
95
  id: 3,
96
+ name: t('import:params'),
97
+ field: 'params',
98
+ type: 'key-value',
99
+ format: ({ row }) => row.params ? row.params.map((param) => {
100
+ return {
101
+ key: param.label,
102
+ value: param.value
103
+ };
104
+ }) : null
105
+ },
106
+ {
107
+ id: 4,
96
108
  name: t('import:status'),
97
109
  field: 'status',
98
- style: { width: '15%' },
99
- headStyle: { width: '15%' },
110
+ style: { width: '120px' },
111
+ headStyle: { width: '120px' },
100
112
  },
101
113
  {
102
- id: 4,
114
+ id: 5,
103
115
  name: t('import:message'),
104
116
  field: 'message',
105
117
  },
106
118
 
107
119
  {
108
- id: 5,
120
+ id: 6,
109
121
  name: t('import:log'),
110
122
  field: 'history',
111
- style: { width: '25%' },
112
- headStyle: { width: '25%' },
123
+ style: { width: '250px' },
124
+ headStyle: { width: '250px' },
113
125
  },
114
126
  {
115
- id: 6,
127
+ id: 7,
116
128
  name: t('import:file'),
117
129
  field: 'file',
118
130
  type: 'file',
@@ -36,6 +36,6 @@ export default defineComponent<Props>({
36
36
  <style lang="scss" scoped>
37
37
  .name {
38
38
  display: inline-block;
39
- width: 100px;
39
+ width: 75px;
40
40
  }
41
41
  </style>