eservices-core 1.0.326 → 1.0.329
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/classes/Table.d.ts +1 -0
- package/dist/index.d.ts +2 -1
- package/dist/index.js +9 -6
- package/package.json +1 -2
package/dist/classes/Table.d.ts
CHANGED
|
@@ -51,6 +51,7 @@ export default class Table extends List {
|
|
|
51
51
|
selectedArray: number[];
|
|
52
52
|
VueComponentForm?: any;
|
|
53
53
|
name?: string;
|
|
54
|
+
modifierDataCreate: any;
|
|
54
55
|
constructor(props: TableParams);
|
|
55
56
|
static getCell(cellConfig: ListCell, rowValues: ListRowValues, cellName: string | null, cellValue: Values, table: Table): VNode[];
|
|
56
57
|
static getRow(config: ListCell[], rowValues: ListRowValues, table: Table): VNode;
|
package/dist/index.d.ts
CHANGED
|
@@ -91,7 +91,8 @@ import WidgetList from "./widgets/tables/WidgetList.vue";
|
|
|
91
91
|
import WidgetSection from "./widgets/section/widget-section.vue";
|
|
92
92
|
import WidgetTableController from "./widgets/tables/table-with-form/widget-table-controller.vue";
|
|
93
93
|
import WidgetSpinner from "./widgets/spinner/WidgetSpinner.vue";
|
|
94
|
-
|
|
94
|
+
import WidgetTable from './widgets/tables/table-with-form/widget-table.vue';
|
|
95
|
+
export { WidgetTable, WidgetTableController, WidgetSpinner, WidgetBreadcrumbs, WidgetCommunication, WidgetList, WidgetSection };
|
|
95
96
|
import valuesToUpperCase from "./utils/values-to-upper-case";
|
|
96
97
|
declare const utils: {
|
|
97
98
|
valuesToUpperCase: typeof valuesToUpperCase;
|
package/dist/index.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/*!
|
|
2
|
-
* eservices-core v1.0.
|
|
2
|
+
* eservices-core v1.0.329
|
|
3
3
|
* (c) 2022 ESERVICES
|
|
4
4
|
*/
|
|
5
5
|
'use strict';
|
|
@@ -3395,6 +3395,9 @@ class Table extends List {
|
|
|
3395
3395
|
* */
|
|
3396
3396
|
this.activeFormIndex = vue.ref(null);
|
|
3397
3397
|
this.selectedArray = vue.reactive([]);
|
|
3398
|
+
this.modifierDataCreate = (data) => {
|
|
3399
|
+
return data;
|
|
3400
|
+
};
|
|
3398
3401
|
/**
|
|
3399
3402
|
* ПРИ ИЗМЕНЕНИИ МАССИВА - МЫ ДОБАВЛЯЕМ К КАЖДОМУ ОБЪЕКТУ СВОЙСВО:
|
|
3400
3403
|
* УНИКАЛЬНЫЙ ИДЕНТИФИКАТОР ТАБЛИЦЫ(ЕСЛИ ЕГО ЕЩЁ В НЁМ НЕТ)
|
|
@@ -3432,7 +3435,7 @@ class Table extends List {
|
|
|
3432
3435
|
let v = copyArrayNew_1_1.value;
|
|
3433
3436
|
let data = createCopy(v);
|
|
3434
3437
|
delete data[Table.INDEX_FIELD_NAME];
|
|
3435
|
-
yield dataService.create(this.name, data);
|
|
3438
|
+
yield dataService.create(this.name, this.modifierDataCreate(data));
|
|
3436
3439
|
// ПОСЛЕ УСПЕШНОГО ДОБАВЛЕНИЯ ЭЛЕМЕНТА В БД
|
|
3437
3440
|
// - УДАЛЯЕМ ИЗ ИЗМЕНЕНИЙ
|
|
3438
3441
|
this.changes.new.splice(this.changes.new.findIndex(ptr => ptr[Table.INDEX_FIELD_NAME] === v[Table.INDEX_FIELD_NAME]), 1);
|
|
@@ -3946,12 +3949,11 @@ var script$m = /*#__PURE__*/ vue.defineComponent({
|
|
|
3946
3949
|
},
|
|
3947
3950
|
setup(__props) {
|
|
3948
3951
|
return (_ctx, _cache) => {
|
|
3949
|
-
const _component_icon = vue.resolveComponent("icon");
|
|
3950
3952
|
return (vue.openBlock(), vue.createElementBlock("div", {
|
|
3951
3953
|
class: "table-controller__action",
|
|
3952
3954
|
onClick: _cache[0] || (_cache[0] = ($event) => (__props.action()))
|
|
3953
3955
|
}, [
|
|
3954
|
-
vue.createVNode(
|
|
3956
|
+
vue.createVNode(script$T, {
|
|
3955
3957
|
class: "table-controller__icon",
|
|
3956
3958
|
name: __props.icon
|
|
3957
3959
|
}, null, 8 /* PROPS */, ["name"]),
|
|
@@ -3989,10 +3991,10 @@ var script$l = /*#__PURE__*/ vue.defineComponent({
|
|
|
3989
3991
|
return (_ctx, _cache) => {
|
|
3990
3992
|
return (vue.openBlock(), vue.createElementBlock("div", _hoisted_1$l, [
|
|
3991
3993
|
(__props.read)
|
|
3992
|
-
? (vue.openBlock(), vue.createBlock(script$m, vue.
|
|
3994
|
+
? (vue.openBlock(), vue.createBlock(script$m, vue.mergeProps({ key: 0 }, actionsConfig[0], { action: __props.read }), null, 16 /* FULL_PROPS */, ["action"]))
|
|
3993
3995
|
: vue.createCommentVNode("v-if", true),
|
|
3994
3996
|
(__props.create)
|
|
3995
|
-
? (vue.openBlock(), vue.createBlock(script$m, vue.
|
|
3997
|
+
? (vue.openBlock(), vue.createBlock(script$m, vue.mergeProps({ key: 1 }, actionsConfig[1], { action: __props.create }), null, 16 /* FULL_PROPS */, ["action"]))
|
|
3996
3998
|
: vue.createCommentVNode("v-if", true)
|
|
3997
3999
|
]));
|
|
3998
4000
|
};
|
|
@@ -5712,6 +5714,7 @@ exports.WidgetCommunication = script$1;
|
|
|
5712
5714
|
exports.WidgetList = script$s;
|
|
5713
5715
|
exports.WidgetSection = script;
|
|
5714
5716
|
exports.WidgetSpinner = script$E;
|
|
5717
|
+
exports.WidgetTable = script$n;
|
|
5715
5718
|
exports.WidgetTableController = script$l;
|
|
5716
5719
|
exports.authService = authService;
|
|
5717
5720
|
exports.clickOutside = clickOutside;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "eservices-core",
|
|
3
|
-
"version": "1.0.
|
|
3
|
+
"version": "1.0.329",
|
|
4
4
|
"description": "----",
|
|
5
5
|
"author": "",
|
|
6
6
|
"scripts": {
|
|
@@ -8,7 +8,6 @@
|
|
|
8
8
|
"build": "vue-cli-service build",
|
|
9
9
|
"test:unit": "vue-cli-service test:unit",
|
|
10
10
|
"full": "npm run rollup && npm publish",
|
|
11
|
-
"publish": "npm publish",
|
|
12
11
|
"rollup": "rollup -c ./rollup.config.js --environment BABEL_ENV:production",
|
|
13
12
|
"test": "echo \"Error: no test specified\" && exit 1"
|
|
14
13
|
},
|