@churchillliving/se-ui-toolkit 6.52.100 → 6.53.2
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 +15 -10
- package/bundles/churchillliving-se-ui-toolkit.umd.js.map +1 -1
- package/esm2015/lib/components/base/grid/grid.component.js +15 -10
- package/esm2015/lib/components/shared/global-filters/global-filters.component.js +2 -2
- package/fesm2015/churchillliving-se-ui-toolkit.js +15 -10
- package/fesm2015/churchillliving-se-ui-toolkit.js.map +1 -1
- package/package.json +1 -1
|
@@ -4050,15 +4050,15 @@
|
|
|
4050
4050
|
var _this = this;
|
|
4051
4051
|
this.onClickEvent(column, row);
|
|
4052
4052
|
setTimeout(function () {
|
|
4053
|
-
var _a, _b, _c;
|
|
4054
|
-
column.data.data = (_a = row[column.field + '_obj'].dialogData) !== null &&
|
|
4053
|
+
var _a, _b, _c, _d;
|
|
4054
|
+
column.data.data = (_b = (_a = row[column.field + '_obj']) === null || _a === void 0 ? void 0 : _a.dialogData) !== null && _b !== void 0 ? _b : row[column.field + '_obj'];
|
|
4055
4055
|
if (column.component && column.data && _this.rowClickData) {
|
|
4056
4056
|
var keys = Object.keys(_this.rowClickData);
|
|
4057
4057
|
column.data.data = autoSetLookupData(column.data.data, _this.rowClickData);
|
|
4058
4058
|
var ref = _this.dialogService.open(column.component, column.data);
|
|
4059
|
-
var componentName = (
|
|
4059
|
+
var componentName = (_c = column.component) === null || _c === void 0 ? void 0 : _c.name;
|
|
4060
4060
|
if (componentName) {
|
|
4061
|
-
_this.pageLoggerService.savePageLoggerInfo((
|
|
4061
|
+
_this.pageLoggerService.savePageLoggerInfo((_d = _this.router.url) === null || _d === void 0 ? void 0 : _d.substring(1), componentName);
|
|
4062
4062
|
}
|
|
4063
4063
|
ref.onClose.subscribe(function (data) {
|
|
4064
4064
|
if (data && column.onReturn) {
|
|
@@ -4276,7 +4276,7 @@
|
|
|
4276
4276
|
Object.entries(selectedRow).forEach(function (_3) {
|
|
4277
4277
|
var _4 = __read(_3, 2), key = _4[0], value = _4[1];
|
|
4278
4278
|
_this.columns.forEach(function (col) {
|
|
4279
|
-
var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k;
|
|
4279
|
+
var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k, _l, _m, _o;
|
|
4280
4280
|
_this.setDropdownFilterValue(col, row, key);
|
|
4281
4281
|
// set the autoComplete Value in edit mode
|
|
4282
4282
|
if (col.type === exports.EGridColumnType.AUTOCOMPLETE &&
|
|
@@ -4310,7 +4310,12 @@
|
|
|
4310
4310
|
col.type === exports.EGridColumnType.DATE) {
|
|
4311
4311
|
value = (value === null || value === void 0 ? void 0 : value.action) ? value.text : value;
|
|
4312
4312
|
if (row[col.field] !== null) {
|
|
4313
|
-
row[key] =
|
|
4313
|
+
if (((_h = row[key]) === null || _h === void 0 ? void 0 : _h.action) && ((_k = Object.keys((_j = row[key]) === null || _j === void 0 ? void 0 : _j.action)) === null || _k === void 0 ? void 0 : _k.length) > 0) {
|
|
4314
|
+
row[key].text = new Date(value);
|
|
4315
|
+
}
|
|
4316
|
+
else {
|
|
4317
|
+
row[key] = new Date(value);
|
|
4318
|
+
}
|
|
4314
4319
|
}
|
|
4315
4320
|
// check the Minutes pattern
|
|
4316
4321
|
if ((col.showTime || col.timeOnly) &&
|
|
@@ -4320,7 +4325,7 @@
|
|
|
4320
4325
|
}
|
|
4321
4326
|
}
|
|
4322
4327
|
if (col.type === exports.EGridColumnType.DIALOG &&
|
|
4323
|
-
((
|
|
4328
|
+
((_l = col.filter) === null || _l === void 0 ? void 0 : _l.type) === 'calendar' &&
|
|
4324
4329
|
col.field.toLowerCase() === key.toLowerCase()) {
|
|
4325
4330
|
if (value === null) {
|
|
4326
4331
|
row[key] = new Date();
|
|
@@ -4330,10 +4335,10 @@
|
|
|
4330
4335
|
}
|
|
4331
4336
|
}
|
|
4332
4337
|
if (col.type === exports.EGridColumnType.LINK &&
|
|
4333
|
-
((
|
|
4338
|
+
((_m = col.field) === null || _m === void 0 ? void 0 : _m.toLowerCase()) === (key === null || key === void 0 ? void 0 : key.toLowerCase()) &&
|
|
4334
4339
|
(col.allowSave === true || col.allowSave === undefined)) {
|
|
4335
4340
|
if (col.editLink === true) {
|
|
4336
|
-
row[key] = (
|
|
4341
|
+
row[key] = (_o = row[col.field + '_obj']) === null || _o === void 0 ? void 0 : _o.hyperlink;
|
|
4337
4342
|
}
|
|
4338
4343
|
else if (col.editLink === false || col.editLink === undefined) {
|
|
4339
4344
|
row[key] = value;
|
|
@@ -8283,7 +8288,7 @@
|
|
|
8283
8288
|
(_this.globalFilters.some(function (filter) { return filter.value; }))) {
|
|
8284
8289
|
_this.applyFilters(false);
|
|
8285
8290
|
}
|
|
8286
|
-
},
|
|
8291
|
+
}, 500);
|
|
8287
8292
|
};
|
|
8288
8293
|
SeGlobalFilterComponent.prototype.setDateRangeFilterValue = function (dateRange) {
|
|
8289
8294
|
var _a;
|