tnx-shared 5.1.404 → 5.1.405
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/bundles/tnx-shared.umd.js +14 -7
- package/bundles/tnx-shared.umd.js.map +1 -1
- package/bundles/tnx-shared.umd.min.js +1 -1
- package/bundles/tnx-shared.umd.min.js.map +1 -1
- package/classes/base/data-form-base.d.ts.map +1 -1
- package/classes/base/list-component-base.d.ts.map +1 -1
- package/classes/form-schema.d.ts +4 -0
- package/classes/form-schema.d.ts.map +1 -1
- package/esm2015/classes/base/data-form-base.js +7 -3
- package/esm2015/classes/base/list-component-base.js +4 -5
- package/esm2015/classes/form-schema.js +5 -1
- package/esm2015/components/datetime-picker/datetime-picker.component.js +2 -2
- package/fesm2015/tnx-shared.js +14 -7
- package/fesm2015/tnx-shared.js.map +1 -1
- package/package.json +2 -2
- package/tnx-shared.metadata.json +1 -1
|
@@ -1271,6 +1271,9 @@
|
|
|
1271
1271
|
_this.minDate = null;
|
|
1272
1272
|
_this.maxDate = null;
|
|
1273
1273
|
_this.timeOnly = false;
|
|
1274
|
+
_this.dateFormat = 'dd/mm/yy';
|
|
1275
|
+
_this.view = 'date';
|
|
1276
|
+
_this.yearRange = '1950:2050';
|
|
1274
1277
|
for (var key in init) {
|
|
1275
1278
|
_this[key] = init[key];
|
|
1276
1279
|
}
|
|
@@ -2137,6 +2140,7 @@
|
|
|
2137
2140
|
Operator["greaterThanEqual"] = "gte";
|
|
2138
2141
|
Operator["lower"] = "lt";
|
|
2139
2142
|
Operator["lowerThanEqual"] = "lte";
|
|
2143
|
+
Operator["relationalData"] = "relationaldata";
|
|
2140
2144
|
Operator["contain"] = "contains";
|
|
2141
2145
|
Operator["notContain"] = "ncontains";
|
|
2142
2146
|
Operator["startWith"] = "startswith";
|
|
@@ -17081,7 +17085,11 @@
|
|
|
17081
17085
|
enableVersion = this._entityMetadataService.getByCode('enableVersion');
|
|
17082
17086
|
if (enableVersion == '1') {
|
|
17083
17087
|
this.setting.filterCheckExistByVersion = [
|
|
17084
|
-
new Filter({
|
|
17088
|
+
new Filter({
|
|
17089
|
+
field: 'code',
|
|
17090
|
+
operator: exports.Operator.notEqual,
|
|
17091
|
+
value: JSON.stringify(this.model.data.code)
|
|
17092
|
+
})
|
|
17085
17093
|
];
|
|
17086
17094
|
}
|
|
17087
17095
|
_a.label = 2;
|
|
@@ -17249,10 +17257,10 @@
|
|
|
17249
17257
|
case 1:
|
|
17250
17258
|
validated = _a.sent();
|
|
17251
17259
|
if (!validated) return [3 /*break*/, 9];
|
|
17252
|
-
this.triggerSaveFileUpload();
|
|
17253
17260
|
return [4 /*yield*/, this.onBeforeSave()];
|
|
17254
17261
|
case 2:
|
|
17255
17262
|
_a.sent();
|
|
17263
|
+
this.triggerSaveFileUpload();
|
|
17256
17264
|
if (!this.autoSave) return [3 /*break*/, 7];
|
|
17257
17265
|
if (!(this._isFormEdit() || this._isFormView())) return [3 /*break*/, 4];
|
|
17258
17266
|
return [4 /*yield*/, this.onUpdate()];
|
|
@@ -22349,11 +22357,10 @@
|
|
|
22349
22357
|
case exports.DataType.date:
|
|
22350
22358
|
case exports.DataType.datetime:
|
|
22351
22359
|
templateFilter.push.apply(templateFilter, __spread(_this.getRangeFilter(col, function (item) {
|
|
22352
|
-
var date = new Date(item);
|
|
22360
|
+
var date = new Date(item[0]);
|
|
22353
22361
|
return new Date(date.getFullYear(), date.getMonth(), date.getDate());
|
|
22354
|
-
// return addDay(item, 1, -1);
|
|
22355
22362
|
}, function (item) {
|
|
22356
|
-
var date = new Date(item);
|
|
22363
|
+
var date = new Date(item[1]);
|
|
22357
22364
|
return new Date(date.getFullYear(), date.getMonth(), date.getDate() + 1, 0, 0, -1);
|
|
22358
22365
|
})));
|
|
22359
22366
|
break;
|
|
@@ -22376,7 +22383,7 @@
|
|
|
22376
22383
|
operator: exports.Operator.greaterThanEqual,
|
|
22377
22384
|
sourceField: col.field,
|
|
22378
22385
|
subField: 0,
|
|
22379
|
-
funcGetValue: funcGetValueFrom ?
|
|
22386
|
+
funcGetValue: funcGetValueFrom ? funcGetValueFrom : function (item) { return item[0]; },
|
|
22380
22387
|
}),
|
|
22381
22388
|
new Filter({
|
|
22382
22389
|
field: this.getFieldFilter(col),
|
|
@@ -47858,7 +47865,7 @@
|
|
|
47858
47865
|
DatetimePickerComponent.decorators = [
|
|
47859
47866
|
{ type: i0.Component, args: [{
|
|
47860
47867
|
selector: 'datetime-picker',
|
|
47861
|
-
template: "<p-calendar #calendar [disabled]=\"control.disabled || disabled\" [selectOtherMonths]=\"true\"\r\n
|
|
47868
|
+
template: "<p-calendar #calendar [disabled]=\"control.disabled || disabled\" [selectOtherMonths]=\"true\"\r\n [inputStyleClass]=\"'input-calendar'\" [autoZIndex]=\"true\" [minDate]=\"control.minDate\" [maxDate]=\"control.maxDate\"\r\n [dateFormat]=\"control.dateFormat\" [hourFormat]=\"24\" [placeholder]=\"control.placeholder\" [showIcon]=\"control.showIcon\"\r\n [locale]=\"vi\" [monthNavigator]=\"true\" [yearNavigator]=\"true\" [yearRange]=\"control.yearRange\" [showTime]=\"control.showTime\"\r\n [timeOnly]=\"control.timeOnly\" [showOnFocus]=\"control.showOnFocus\" [keepInvalid]=\"true\" [appendTo]=\"control.appendTo\"\r\n [panelStyleClass]=\"getPanelClass()\" [showTransitionOptions]=\"showTransitionOptions\"\r\n [hideTransitionOptions]=\"hideTransitionOptions\"\r\n [view]=\"control.view\"\r\n [(ngModel)]=\"_controlModelData\"\r\n (onFocus)=\"onFocusCalendar($event)\" (onBlur)=\"onBlurCalendar($event)\"\r\n (onSelect)=\"onSelectDateTime($event)\" (onShow)=\"onShowCalendar($event)\"\r\n (onClose)=\"onCloseCalendar($event)\"\r\n>\r\n</p-calendar>\r\n",
|
|
47862
47869
|
providers: [
|
|
47863
47870
|
{
|
|
47864
47871
|
provide: forms.NG_VALUE_ACCESSOR,
|