@churchillliving/se-ui-toolkit 6.53.418 → 6.53.420
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 +14 -6
- package/bundles/churchillliving-se-ui-toolkit.umd.js.map +1 -1
- package/esm2015/lib/components/base/grid/grid.component.js +13 -7
- package/esm2015/lib/services/grid.service.js +3 -1
- package/fesm2015/churchillliving-se-ui-toolkit.js +14 -6
- package/fesm2015/churchillliving-se-ui-toolkit.js.map +1 -1
- package/package.json +1 -1
|
@@ -3168,6 +3168,8 @@
|
|
|
3168
3168
|
column.value = (value === null || value === void 0 ? void 0 : value.value)
|
|
3169
3169
|
? value.value
|
|
3170
3170
|
: res[field.toLowerCase()];
|
|
3171
|
+
var globalFilterLookupInput = document.getElementById(column.field);
|
|
3172
|
+
globalFilterLookupInput.focus();
|
|
3171
3173
|
}
|
|
3172
3174
|
else {
|
|
3173
3175
|
column.filterValue = (value === null || value === void 0 ? void 0 : value.value)
|
|
@@ -4596,14 +4598,20 @@
|
|
|
4596
4598
|
*/
|
|
4597
4599
|
GridComponent.prototype.openGridDialog = function (column, row) {
|
|
4598
4600
|
var _this = this;
|
|
4601
|
+
var _a;
|
|
4602
|
+
var isDisabled = column.disabled
|
|
4603
|
+
? true
|
|
4604
|
+
: ((_a = row[column.field]) === null || _a === void 0 ? void 0 : _a.action) && row[column.field].action.disabled
|
|
4605
|
+
? true
|
|
4606
|
+
: false;
|
|
4599
4607
|
this.onClickEvent(column, row);
|
|
4600
4608
|
setTimeout(function () {
|
|
4601
4609
|
var _a, _b, _c;
|
|
4602
4610
|
_this.rowClickData = row;
|
|
4603
|
-
if (column.data && column.data.data && row[column.field + '_obj']
|
|
4611
|
+
if (column.data && column.data.data && row[column.field + '_obj']) {
|
|
4604
4612
|
column.data.data = (_a = row[column.field + '_obj']) === null || _a === void 0 ? void 0 : _a.dialogData;
|
|
4605
4613
|
}
|
|
4606
|
-
if (column.component && column.data && _this.rowClickData && !
|
|
4614
|
+
if (column.component && column.data && _this.rowClickData && !isDisabled) {
|
|
4607
4615
|
var data = Object.assign({}, column.data);
|
|
4608
4616
|
data.data = autoSetLookupData(column.data.data, _this.rowClickData);
|
|
4609
4617
|
var ref = _this.dialogService.open(column.component, data);
|
|
@@ -5929,7 +5937,7 @@
|
|
|
5929
5937
|
};
|
|
5930
5938
|
// Invoke onClick Event.
|
|
5931
5939
|
GridComponent.prototype.onClickEvent = function (column, row) {
|
|
5932
|
-
var _a, _b, _c;
|
|
5940
|
+
var _a, _b, _c, _d, _e;
|
|
5933
5941
|
if (column.type === exports.EGridColumnType.LINK && (column.editLink === false || column.editLink === undefined) && column.editable !== true && column.disabled !== true) {
|
|
5934
5942
|
if (column && column.onClick && column.disabled !== true && ((_b = (_a = row[column.field]) === null || _a === void 0 ? void 0 : _a.action) === null || _b === void 0 ? void 0 : _b.disabled) !== true) {
|
|
5935
5943
|
column.onClick(row);
|
|
@@ -5951,9 +5959,9 @@
|
|
|
5951
5959
|
column.minutesInterval) {
|
|
5952
5960
|
this.defaultDate = new Date(setMinutesInterval(new Date()));
|
|
5953
5961
|
}
|
|
5954
|
-
|
|
5955
|
-
|
|
5956
|
-
|
|
5962
|
+
if (column && column.onClick && column.disabled !== true && ((_e = (_d = row[column.field]) === null || _d === void 0 ? void 0 : _d.action) === null || _e === void 0 ? void 0 : _e.disabled) !== true) {
|
|
5963
|
+
column.onClick(row);
|
|
5964
|
+
}
|
|
5957
5965
|
};
|
|
5958
5966
|
// set the select value of multi-select
|
|
5959
5967
|
GridComponent.prototype.showOption = function (column, row) {
|