@churchillliving/se-ui-toolkit 6.53.196 → 6.53.198
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 +19 -11
- package/bundles/churchillliving-se-ui-toolkit.umd.js.map +1 -1
- package/churchillliving-se-ui-toolkit.metadata.json +1 -1
- package/esm2015/lib/models/grid.model.js +1 -1
- package/esm2015/lib/services/grid.service.js +11 -6
- package/esm2015/lib/services/utilities.service.js +9 -7
- package/fesm2015/churchillliving-se-ui-toolkit.js +18 -11
- package/fesm2015/churchillliving-se-ui-toolkit.js.map +1 -1
- package/lib/models/grid.model.d.ts +39 -0
- package/lib/services/grid.service.d.ts +3 -2
- package/package.json +1 -1
|
@@ -2049,10 +2049,12 @@
|
|
|
2049
2049
|
}
|
|
2050
2050
|
function draggableDialog(id) {
|
|
2051
2051
|
setTimeout(function () {
|
|
2052
|
-
var _a;
|
|
2053
|
-
var
|
|
2054
|
-
(_a =
|
|
2055
|
-
var
|
|
2052
|
+
var _a, _b;
|
|
2053
|
+
var dialog = document.getElementsByClassName('p-dialog');
|
|
2054
|
+
(_a = dialog[0]) === null || _a === void 0 ? void 0 : _a.setAttribute('id', 'mydiv' + id);
|
|
2055
|
+
var dialogheader = document.getElementsByClassName('p-dialog-header');
|
|
2056
|
+
(_b = dialogheader[0]) === null || _b === void 0 ? void 0 : _b.setAttribute('id', 'mydivheader' + id);
|
|
2057
|
+
var elmnt = document.getElementById('mydiv' + id);
|
|
2056
2058
|
var pos1 = 0, pos2 = 0, pos3 = 0, pos4 = 0;
|
|
2057
2059
|
var dragMouseDown = function (e) {
|
|
2058
2060
|
e = e || window.event;
|
|
@@ -2074,8 +2076,8 @@
|
|
|
2074
2076
|
document.onmouseup = null;
|
|
2075
2077
|
document.onmousemove = null;
|
|
2076
2078
|
};
|
|
2077
|
-
if (document.getElementById(
|
|
2078
|
-
document.getElementById(
|
|
2079
|
+
if (document.getElementById('mydivheader' + id)) {
|
|
2080
|
+
document.getElementById('mydivheader' + id).onmousedown = dragMouseDown;
|
|
2079
2081
|
}
|
|
2080
2082
|
else {
|
|
2081
2083
|
elmnt.onmousedown = dragMouseDown;
|
|
@@ -2651,18 +2653,24 @@
|
|
|
2651
2653
|
}
|
|
2652
2654
|
return this.addColumn(columnInfo);
|
|
2653
2655
|
};
|
|
2654
|
-
// add LookUp
|
|
2656
|
+
// add LookUp column for Grid
|
|
2655
2657
|
GridService.prototype.addLookUpColumn = function (columnInfo, showFilter) {
|
|
2656
2658
|
if (showFilter === void 0) { showFilter = true; }
|
|
2657
2659
|
if (showFilter) {
|
|
2658
|
-
columnInfo.filter = {
|
|
2659
|
-
type: exports.GridFilterControlType.LOOKUP_INPUT,
|
|
2660
|
-
showFilter: this.showFilterIcon(columnInfo),
|
|
2661
|
-
};
|
|
2660
|
+
columnInfo.filter = { type: exports.GridFilterControlType.LOOKUP_INPUT, showFilter: this.showFilterIcon(columnInfo) };
|
|
2662
2661
|
}
|
|
2663
2662
|
columnInfo.type = exports.EGridColumnType.LOOKUP_INPUT;
|
|
2664
2663
|
return this.addColumn(columnInfo);
|
|
2665
2664
|
};
|
|
2665
|
+
// add dialog column for Grid
|
|
2666
|
+
GridService.prototype.addDialogColumn = function (columnInfo, showFilter) {
|
|
2667
|
+
if (showFilter === void 0) { showFilter = true; }
|
|
2668
|
+
if (showFilter) {
|
|
2669
|
+
columnInfo.filter = { type: exports.GridFilterControlType.INPUT, showFilter: this.showFilterIcon(columnInfo) };
|
|
2670
|
+
}
|
|
2671
|
+
columnInfo.type = exports.EGridColumnType.DIALOG;
|
|
2672
|
+
return this.addColumn(columnInfo);
|
|
2673
|
+
};
|
|
2666
2674
|
// add Button for grid column
|
|
2667
2675
|
GridService.prototype.addButtonColumn = function (columnInfo) {
|
|
2668
2676
|
columnInfo.type = exports.EGridColumnType.ADD_BUTTON;
|