@churchillliving/se-ui-toolkit 6.53.366 → 6.53.367
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/churchillliving-se-ui-toolkit.umd.js +35 -45
- package/bundles/churchillliving-se-ui-toolkit.umd.js.map +1 -1
- package/churchillliving-se-ui-toolkit.metadata.json +1 -1
- package/esm2015/lib/components/base/filter/filter.component.js +2 -2
- package/esm2015/lib/components/base/grid/grid.component.js +35 -41
- package/esm2015/lib/services/grid.service.js +1 -4
- package/fesm2015/churchillliving-se-ui-toolkit.js +35 -44
- package/fesm2015/churchillliving-se-ui-toolkit.js.map +1 -1
- package/lib/components/base/grid/grid.component.d.ts +1 -1
- package/package.json +1 -1
|
@@ -2666,9 +2666,6 @@ class GridService {
|
|
|
2666
2666
|
newRow[field].displayText = col.displayText
|
|
2667
2667
|
? row[col.displayText.toLowerCase()]
|
|
2668
2668
|
: row[col.field.toLowerCase()];
|
|
2669
|
-
if (col.format && newRow[field].displayText) {
|
|
2670
|
-
newRow[field].displayText = this.datepipe.transform(newRow[field].displayText, col.format);
|
|
2671
|
-
}
|
|
2672
2669
|
if (col.data && col.data.data) {
|
|
2673
2670
|
newRow[field].dialogData = findKeysAndValue(col.data.data, row);
|
|
2674
2671
|
}
|
|
@@ -4051,35 +4048,7 @@ class GridComponent {
|
|
|
4051
4048
|
value = this.setTimeFormat(newValue);
|
|
4052
4049
|
}
|
|
4053
4050
|
else {
|
|
4054
|
-
let format =
|
|
4055
|
-
if (column.format) {
|
|
4056
|
-
switch (column.format) {
|
|
4057
|
-
case EGridFormatType.SMALLDATE: {
|
|
4058
|
-
format = 'MM/dd/yy';
|
|
4059
|
-
break;
|
|
4060
|
-
}
|
|
4061
|
-
case EGridFormatType.SHORTDATE: {
|
|
4062
|
-
format = 'MM/dd/yyyy';
|
|
4063
|
-
break;
|
|
4064
|
-
}
|
|
4065
|
-
case EGridFormatType.MEDIUMDATE: {
|
|
4066
|
-
format = 'M d, yy';
|
|
4067
|
-
break;
|
|
4068
|
-
}
|
|
4069
|
-
case EGridFormatType.LONGDATE: {
|
|
4070
|
-
format = 'MM/dd/YY, h:mm a';
|
|
4071
|
-
break;
|
|
4072
|
-
}
|
|
4073
|
-
case EGridFormatType.PERIOD: {
|
|
4074
|
-
format = 'MM/yy';
|
|
4075
|
-
break;
|
|
4076
|
-
}
|
|
4077
|
-
default: {
|
|
4078
|
-
format = column.format;
|
|
4079
|
-
break;
|
|
4080
|
-
}
|
|
4081
|
-
}
|
|
4082
|
-
}
|
|
4051
|
+
let format = this.setFormat(column);
|
|
4083
4052
|
value = this.datePipe.transform((newValue === null || newValue === void 0 ? void 0 : newValue.toString()) === "Invalid Date" ? null : newValue, format ? format : 'MM/dd/yy');
|
|
4084
4053
|
}
|
|
4085
4054
|
}
|
|
@@ -4098,7 +4067,7 @@ class GridComponent {
|
|
|
4098
4067
|
? ((_2 = column === null || column === void 0 ? void 0 : column.filter) === null || _2 === void 0 ? void 0 : _2.type) === 'calendar' && column.timeOnly && column.type === EGridColumnType.DIALOG ?
|
|
4099
4068
|
(row[column.field + '_obj'].displayText.toString().includes('AM') || row[column.field + '_obj'].displayText.toString().includes('PM')) ?
|
|
4100
4069
|
row[column.field + '_obj'].displayText : this.datePipe.transform(row[column.field + '_obj'].displayText, 'hh:mm a')
|
|
4101
|
-
: row[column.field + '_obj'].displayText
|
|
4070
|
+
: column.format ? this.datePipe.transform(row[column.field + '_obj'].displayText, this.setFormat(column)) : row[column.field + '_obj'].displayText
|
|
4102
4071
|
: column.displayText
|
|
4103
4072
|
? column.displayText
|
|
4104
4073
|
: column.icon ? column.header
|
|
@@ -4106,6 +4075,38 @@ class GridComponent {
|
|
|
4106
4075
|
}
|
|
4107
4076
|
return value;
|
|
4108
4077
|
}
|
|
4078
|
+
setFormat(column) {
|
|
4079
|
+
let format = '';
|
|
4080
|
+
if (column === null || column === void 0 ? void 0 : column.format) {
|
|
4081
|
+
switch (column.format) {
|
|
4082
|
+
case EGridFormatType.SMALLDATE: {
|
|
4083
|
+
format = 'MM/dd/yy';
|
|
4084
|
+
break;
|
|
4085
|
+
}
|
|
4086
|
+
case EGridFormatType.SHORTDATE: {
|
|
4087
|
+
format = 'MM/dd/yyyy';
|
|
4088
|
+
break;
|
|
4089
|
+
}
|
|
4090
|
+
case EGridFormatType.MEDIUMDATE: {
|
|
4091
|
+
format = 'M d, yy';
|
|
4092
|
+
break;
|
|
4093
|
+
}
|
|
4094
|
+
case EGridFormatType.LONGDATE: {
|
|
4095
|
+
format = 'MM/dd/YY, h:mm a';
|
|
4096
|
+
break;
|
|
4097
|
+
}
|
|
4098
|
+
case EGridFormatType.PERIOD: {
|
|
4099
|
+
format = 'MM/yy';
|
|
4100
|
+
break;
|
|
4101
|
+
}
|
|
4102
|
+
default: {
|
|
4103
|
+
format = column.format;
|
|
4104
|
+
break;
|
|
4105
|
+
}
|
|
4106
|
+
}
|
|
4107
|
+
}
|
|
4108
|
+
return format;
|
|
4109
|
+
}
|
|
4109
4110
|
setDropdwonReadOnlyValue(row, column) {
|
|
4110
4111
|
var _a, _b, _c;
|
|
4111
4112
|
delete row['undefined'];
|
|
@@ -4217,16 +4218,6 @@ class GridComponent {
|
|
|
4217
4218
|
link.click();
|
|
4218
4219
|
}
|
|
4219
4220
|
}
|
|
4220
|
-
setFormat(column, row) {
|
|
4221
|
-
let value = '';
|
|
4222
|
-
if (column.format) {
|
|
4223
|
-
value = this.datePipe.transform(column.displayText ? column.displayText : row[column.field], column.format);
|
|
4224
|
-
}
|
|
4225
|
-
else {
|
|
4226
|
-
value = column.displayText ? column.displayText : row[column.field];
|
|
4227
|
-
}
|
|
4228
|
-
return value;
|
|
4229
|
-
}
|
|
4230
4221
|
/**
|
|
4231
4222
|
*
|
|
4232
4223
|
* @param row
|
|
@@ -8989,7 +8980,7 @@ SeGlobalFilterComponent.propDecorators = {
|
|
|
8989
8980
|
class SeFilterComponent {
|
|
8990
8981
|
constructor(dialogService) {
|
|
8991
8982
|
this.dialogService = dialogService;
|
|
8992
|
-
this.showDialogFilter =
|
|
8983
|
+
this.showDialogFilter = false;
|
|
8993
8984
|
this.clearGlobalFilterBtn = true;
|
|
8994
8985
|
this.searchGlobalFilterBtn = true;
|
|
8995
8986
|
this.filtersApplied = new EventEmitter();
|