@iankibetsh/shframework 5.1.4 → 5.1.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.
- package/dist/library.js +13 -2
- package/dist/library.mjs +13 -2
- package/package.json +1 -1
package/dist/library.js
CHANGED
|
@@ -3478,7 +3478,11 @@ const getElementClass = section => (props.formClasses && props.formClasses[secti
|
|
|
3478
3478
|
const getPlaceholder = field => (props.placeHolders && props.placeHolders[field]) && props.placeHolders[field];
|
|
3479
3479
|
const fieldChanged = field => {
|
|
3480
3480
|
delete validationErrors.value[field];
|
|
3481
|
-
|
|
3481
|
+
const data = {};
|
|
3482
|
+
formFields.value.map(field => {
|
|
3483
|
+
data[field.field] = field.value;
|
|
3484
|
+
});
|
|
3485
|
+
emit('fieldChanged', field, formFields.value.filter(f => f.field === field)[0].value, data);
|
|
3482
3486
|
};
|
|
3483
3487
|
const getComponentProps = field => {
|
|
3484
3488
|
const newField = {...field};
|
|
@@ -5398,9 +5402,16 @@ const __default__ = {
|
|
|
5398
5402
|
headers.push(header);
|
|
5399
5403
|
}
|
|
5400
5404
|
});
|
|
5405
|
+
|
|
5401
5406
|
const data = {
|
|
5402
5407
|
titles: headers,
|
|
5403
|
-
export: 1
|
|
5408
|
+
export: 1,
|
|
5409
|
+
order_by: this.order_by,
|
|
5410
|
+
order_method: this.order_method,
|
|
5411
|
+
filter_value: this.filter_value,
|
|
5412
|
+
from: this.from,
|
|
5413
|
+
to: this.to,
|
|
5414
|
+
period: this.period,
|
|
5404
5415
|
};
|
|
5405
5416
|
shApis.doPost(this.endPoint, data).then(res => {
|
|
5406
5417
|
this.downloading = false;
|
package/dist/library.mjs
CHANGED
|
@@ -3466,7 +3466,11 @@ const getElementClass = section => (props.formClasses && props.formClasses[secti
|
|
|
3466
3466
|
const getPlaceholder = field => (props.placeHolders && props.placeHolders[field]) && props.placeHolders[field];
|
|
3467
3467
|
const fieldChanged = field => {
|
|
3468
3468
|
delete validationErrors.value[field];
|
|
3469
|
-
|
|
3469
|
+
const data = {};
|
|
3470
|
+
formFields.value.map(field => {
|
|
3471
|
+
data[field.field] = field.value;
|
|
3472
|
+
});
|
|
3473
|
+
emit('fieldChanged', field, formFields.value.filter(f => f.field === field)[0].value, data);
|
|
3470
3474
|
};
|
|
3471
3475
|
const getComponentProps = field => {
|
|
3472
3476
|
const newField = {...field};
|
|
@@ -5386,9 +5390,16 @@ const __default__ = {
|
|
|
5386
5390
|
headers.push(header);
|
|
5387
5391
|
}
|
|
5388
5392
|
});
|
|
5393
|
+
|
|
5389
5394
|
const data = {
|
|
5390
5395
|
titles: headers,
|
|
5391
|
-
export: 1
|
|
5396
|
+
export: 1,
|
|
5397
|
+
order_by: this.order_by,
|
|
5398
|
+
order_method: this.order_method,
|
|
5399
|
+
filter_value: this.filter_value,
|
|
5400
|
+
from: this.from,
|
|
5401
|
+
to: this.to,
|
|
5402
|
+
period: this.period,
|
|
5392
5403
|
};
|
|
5393
5404
|
shApis.doPost(this.endPoint, data).then(res => {
|
|
5394
5405
|
this.downloading = false;
|