@churchillliving/se-ui-toolkit 6.53.189 → 6.53.190
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 +45 -61
- 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/form/form.component.js +7 -19
- package/esm2015/lib/components/base/grid/grid.component.js +5 -13
- package/esm2015/lib/components/base/sidebar/sidebar.component.js +4 -1
- package/esm2015/lib/services/utilities.service.js +34 -32
- package/fesm2015/churchillliving-se-ui-toolkit.js +45 -61
- package/fesm2015/churchillliving-se-ui-toolkit.js.map +1 -1
- package/package.json +1 -1
|
@@ -2048,37 +2048,39 @@
|
|
|
2048
2048
|
});
|
|
2049
2049
|
}
|
|
2050
2050
|
function draggableDialog(id) {
|
|
2051
|
-
|
|
2052
|
-
|
|
2053
|
-
|
|
2054
|
-
|
|
2055
|
-
|
|
2056
|
-
|
|
2057
|
-
|
|
2058
|
-
|
|
2059
|
-
|
|
2060
|
-
|
|
2061
|
-
|
|
2062
|
-
|
|
2063
|
-
|
|
2064
|
-
|
|
2065
|
-
|
|
2066
|
-
|
|
2067
|
-
|
|
2068
|
-
|
|
2069
|
-
|
|
2070
|
-
|
|
2071
|
-
|
|
2072
|
-
|
|
2073
|
-
|
|
2074
|
-
|
|
2075
|
-
|
|
2076
|
-
|
|
2077
|
-
document.getElementById(elmnt === null || elmnt === void 0 ? void 0 : elmnt.id)
|
|
2078
|
-
|
|
2079
|
-
|
|
2080
|
-
|
|
2081
|
-
|
|
2051
|
+
setTimeout(function () {
|
|
2052
|
+
var _a;
|
|
2053
|
+
var dialogHeader = document.getElementsByClassName('p-dialog');
|
|
2054
|
+
(_a = dialogHeader[0]) === null || _a === void 0 ? void 0 : _a.setAttribute('id', "prefix_" + id);
|
|
2055
|
+
var elmnt = document.getElementById("prefix_" + id);
|
|
2056
|
+
var pos1 = 0, pos2 = 0, pos3 = 0, pos4 = 0;
|
|
2057
|
+
var dragMouseDown = function (e) {
|
|
2058
|
+
e = e || window.event;
|
|
2059
|
+
pos3 = e.clientX;
|
|
2060
|
+
pos4 = e.clientY;
|
|
2061
|
+
document.onmouseup = closeDragElement;
|
|
2062
|
+
document.onmousemove = elementDrag;
|
|
2063
|
+
};
|
|
2064
|
+
var elementDrag = function (e) {
|
|
2065
|
+
e = e || window.event;
|
|
2066
|
+
pos1 = pos3 - e.clientX;
|
|
2067
|
+
pos2 = pos4 - e.clientY;
|
|
2068
|
+
pos3 = e.clientX;
|
|
2069
|
+
pos4 = e.clientY;
|
|
2070
|
+
elmnt.style.top = (elmnt === null || elmnt === void 0 ? void 0 : elmnt.offsetTop) - pos2 + 'px';
|
|
2071
|
+
elmnt.style.left = (elmnt === null || elmnt === void 0 ? void 0 : elmnt.offsetLeft) - pos1 + 'px';
|
|
2072
|
+
};
|
|
2073
|
+
var closeDragElement = function () {
|
|
2074
|
+
document.onmouseup = null;
|
|
2075
|
+
document.onmousemove = null;
|
|
2076
|
+
};
|
|
2077
|
+
if (document.getElementById(elmnt === null || elmnt === void 0 ? void 0 : elmnt.id)) {
|
|
2078
|
+
document.getElementById(elmnt === null || elmnt === void 0 ? void 0 : elmnt.id).onmousedown = dragMouseDown;
|
|
2079
|
+
}
|
|
2080
|
+
else {
|
|
2081
|
+
elmnt.onmousedown = dragMouseDown;
|
|
2082
|
+
}
|
|
2083
|
+
}, 100);
|
|
2082
2084
|
}
|
|
2083
2085
|
function calenderMinMaxValue(item, value, index) {
|
|
2084
2086
|
var validation = 'equal';
|
|
@@ -4267,9 +4269,7 @@
|
|
|
4267
4269
|
if (componentName) {
|
|
4268
4270
|
this.pageLoggerService.savePageLoggerInfo((_b = this.router.url) === null || _b === void 0 ? void 0 : _b.substring(1), componentName);
|
|
4269
4271
|
}
|
|
4270
|
-
|
|
4271
|
-
draggableDialog((column === null || column === void 0 ? void 0 : column.field) ? column === null || column === void 0 ? void 0 : column.field : column === null || column === void 0 ? void 0 : column.header);
|
|
4272
|
-
}, 100);
|
|
4272
|
+
draggableDialog((column === null || column === void 0 ? void 0 : column.field) ? column === null || column === void 0 ? void 0 : column.field : column === null || column === void 0 ? void 0 : column.header);
|
|
4273
4273
|
ref.onClose.subscribe(function (res) {
|
|
4274
4274
|
if (res && column.onReturn) {
|
|
4275
4275
|
column.onReturn(res);
|
|
@@ -4322,9 +4322,7 @@
|
|
|
4322
4322
|
if (componentName) {
|
|
4323
4323
|
_this.pageLoggerService.savePageLoggerInfo((_c = _this.router.url) === null || _c === void 0 ? void 0 : _c.substring(1), componentName);
|
|
4324
4324
|
}
|
|
4325
|
-
|
|
4326
|
-
draggableDialog((column === null || column === void 0 ? void 0 : column.field) ? column === null || column === void 0 ? void 0 : column.field : column === null || column === void 0 ? void 0 : column.header);
|
|
4327
|
-
}, 100);
|
|
4325
|
+
draggableDialog((column === null || column === void 0 ? void 0 : column.field) ? column === null || column === void 0 ? void 0 : column.field : column === null || column === void 0 ? void 0 : column.header);
|
|
4328
4326
|
ref.onClose.subscribe(function (data) {
|
|
4329
4327
|
if (data && column.onReturn) {
|
|
4330
4328
|
column.onReturn(data, _this.rowClickData);
|
|
@@ -5254,9 +5252,7 @@
|
|
|
5254
5252
|
var obj = this.setLookupDialogConfig(row, column, (_a = column.data) === null || _a === void 0 ? void 0 : _a.data);
|
|
5255
5253
|
obj['component'] = column.component;
|
|
5256
5254
|
var ref = this.openLookupDialog(obj);
|
|
5257
|
-
|
|
5258
|
-
draggableDialog((column === null || column === void 0 ? void 0 : column.field) ? column === null || column === void 0 ? void 0 : column.field : column === null || column === void 0 ? void 0 : column.header);
|
|
5259
|
-
}, 100);
|
|
5255
|
+
draggableDialog((column === null || column === void 0 ? void 0 : column.field) ? column === null || column === void 0 ? void 0 : column.field : column === null || column === void 0 ? void 0 : column.header);
|
|
5260
5256
|
ref.onClose.subscribe(function (res) {
|
|
5261
5257
|
if (res && column.onReturn) {
|
|
5262
5258
|
column.onReturn(res);
|
|
@@ -5289,9 +5285,7 @@
|
|
|
5289
5285
|
var obj_2 = this.setLookupDialogConfig(row, column, (_a = column.lookupControl.data) === null || _a === void 0 ? void 0 : _a.data);
|
|
5290
5286
|
obj_2['component'] = column.lookupControl.component;
|
|
5291
5287
|
var ref = this.openLookupDialog(obj_2);
|
|
5292
|
-
|
|
5293
|
-
draggableDialog((column === null || column === void 0 ? void 0 : column.field) ? column === null || column === void 0 ? void 0 : column.field : column === null || column === void 0 ? void 0 : column.header);
|
|
5294
|
-
}, 100);
|
|
5288
|
+
draggableDialog((column === null || column === void 0 ? void 0 : column.field) ? column === null || column === void 0 ? void 0 : column.field : column === null || column === void 0 ? void 0 : column.header);
|
|
5295
5289
|
ref.onClose.subscribe(function (res) {
|
|
5296
5290
|
if (column.onReturn) {
|
|
5297
5291
|
column.onReturn(res, row);
|
|
@@ -6813,9 +6807,7 @@
|
|
|
6813
6807
|
height: ((_b = formField.hyperlink) === null || _b === void 0 ? void 0 : _b.height) ? formField.hyperlink.height : '80%',
|
|
6814
6808
|
data: { value: (_c = formField.hyperlink) === null || _c === void 0 ? void 0 : _c.link, iFrameId: formField.label },
|
|
6815
6809
|
});
|
|
6816
|
-
|
|
6817
|
-
draggableDialog(formField === null || formField === void 0 ? void 0 : formField.field);
|
|
6818
|
-
}, 100);
|
|
6810
|
+
draggableDialog(formField === null || formField === void 0 ? void 0 : formField.field);
|
|
6819
6811
|
ref.onClose.subscribe(function (res) {
|
|
6820
6812
|
if (res) {
|
|
6821
6813
|
if (formField.onReturn) {
|
|
@@ -6850,9 +6842,7 @@
|
|
|
6850
6842
|
if (componentName) {
|
|
6851
6843
|
this.pageLoggerService.savePageLoggerInfo((_h = this.router.url) === null || _h === void 0 ? void 0 : _h.substring(1), componentName);
|
|
6852
6844
|
}
|
|
6853
|
-
|
|
6854
|
-
draggableDialog((formField === null || formField === void 0 ? void 0 : formField.field) ? formField === null || formField === void 0 ? void 0 : formField.field : formField === null || formField === void 0 ? void 0 : formField.label);
|
|
6855
|
-
}, 100);
|
|
6845
|
+
draggableDialog((formField === null || formField === void 0 ? void 0 : formField.field) ? formField === null || formField === void 0 ? void 0 : formField.field : formField === null || formField === void 0 ? void 0 : formField.label);
|
|
6856
6846
|
dialog.onClose.subscribe(function (res) {
|
|
6857
6847
|
if (res) {
|
|
6858
6848
|
if (formField.onReturn) {
|
|
@@ -6874,9 +6864,7 @@
|
|
|
6874
6864
|
data: { value: ((_b = formField.label.labelControl.hyperlink) === null || _b === void 0 ? void 0 : _b.link) ? formField.label.labelControl.hyperlink.link : '', iFrameId: formField.label.name },
|
|
6875
6865
|
});
|
|
6876
6866
|
this.pageLoggerService.savePageLoggerInfo((_c = this.router.url) === null || _c === void 0 ? void 0 : _c.substring(1), 'IframeComponent');
|
|
6877
|
-
|
|
6878
|
-
draggableDialog((formField === null || formField === void 0 ? void 0 : formField.field) ? formField === null || formField === void 0 ? void 0 : formField.field : formField === null || formField === void 0 ? void 0 : formField.label);
|
|
6879
|
-
}, 100);
|
|
6867
|
+
draggableDialog((formField === null || formField === void 0 ? void 0 : formField.field) ? formField === null || formField === void 0 ? void 0 : formField.field : formField === null || formField === void 0 ? void 0 : formField.label);
|
|
6880
6868
|
ref.onClose.subscribe(function (res) {
|
|
6881
6869
|
if (res) {
|
|
6882
6870
|
if (formField.onReturn) {
|
|
@@ -7129,9 +7117,7 @@
|
|
|
7129
7117
|
formField.label.labelControl &&
|
|
7130
7118
|
formField.label.labelControl.lookupControl) {
|
|
7131
7119
|
var ref = this.setDialogData(formField, formField.label.labelControl.lookupControl);
|
|
7132
|
-
|
|
7133
|
-
draggableDialog((formField === null || formField === void 0 ? void 0 : formField.field) ? formField === null || formField === void 0 ? void 0 : formField.field : formField === null || formField === void 0 ? void 0 : formField.label);
|
|
7134
|
-
}, 100);
|
|
7120
|
+
draggableDialog((formField === null || formField === void 0 ? void 0 : formField.field) ? formField === null || formField === void 0 ? void 0 : formField.field : formField === null || formField === void 0 ? void 0 : formField.label);
|
|
7135
7121
|
ref.onClose.subscribe(function (res) {
|
|
7136
7122
|
if (res) {
|
|
7137
7123
|
formField.value = setDialogResponse(formField, formField === null || formField === void 0 ? void 0 : formField.label.labelControl.lookupControl, res);
|
|
@@ -7155,9 +7141,7 @@
|
|
|
7155
7141
|
this.lookupFocusOut = true;
|
|
7156
7142
|
var value_1 = formField.value;
|
|
7157
7143
|
var ref = this.setDialogData(formField, formField.lookupControl);
|
|
7158
|
-
|
|
7159
|
-
draggableDialog((formField === null || formField === void 0 ? void 0 : formField.field) ? formField === null || formField === void 0 ? void 0 : formField.field : formField === null || formField === void 0 ? void 0 : formField.label);
|
|
7160
|
-
}, 100);
|
|
7144
|
+
draggableDialog((formField === null || formField === void 0 ? void 0 : formField.field) ? formField === null || formField === void 0 ? void 0 : formField.field : formField === null || formField === void 0 ? void 0 : formField.label);
|
|
7161
7145
|
ref.onClose.subscribe(function (res) {
|
|
7162
7146
|
var _a;
|
|
7163
7147
|
if (formField.field) {
|
|
@@ -7241,9 +7225,7 @@
|
|
|
7241
7225
|
disabledText: formfield.disabledText,
|
|
7242
7226
|
},
|
|
7243
7227
|
});
|
|
7244
|
-
|
|
7245
|
-
draggableDialog((formfield === null || formfield === void 0 ? void 0 : formfield.field) ? formfield === null || formfield === void 0 ? void 0 : formfield.field : formfield === null || formfield === void 0 ? void 0 : formfield.label);
|
|
7246
|
-
}, 100);
|
|
7228
|
+
draggableDialog((formfield === null || formfield === void 0 ? void 0 : formfield.field) ? formfield === null || formfield === void 0 ? void 0 : formfield.field : formfield === null || formfield === void 0 ? void 0 : formfield.label);
|
|
7247
7229
|
dialogRef.onClose.subscribe(function (data) {
|
|
7248
7230
|
if (data && formfield.onReturn) {
|
|
7249
7231
|
formfield.onReturn(data);
|
|
@@ -7793,6 +7775,7 @@
|
|
|
7793
7775
|
});
|
|
7794
7776
|
this.pageLoggerService.savePageLoggerInfo((_d = this.router.url) === null || _d === void 0 ? void 0 : _d.substring(1), 'IframeComponent');
|
|
7795
7777
|
this.handleActiveItem(item);
|
|
7778
|
+
draggableDialog(menu.label);
|
|
7796
7779
|
dialogRef.onClose.subscribe(function (data) {
|
|
7797
7780
|
_this.handleActiveItem(item, false);
|
|
7798
7781
|
if (data && menu.onReturn) {
|
|
@@ -7876,6 +7859,7 @@
|
|
|
7876
7859
|
this.openDialogs[0].close();
|
|
7877
7860
|
this.openDialogs.shift();
|
|
7878
7861
|
}
|
|
7862
|
+
draggableDialog(menu.label);
|
|
7879
7863
|
dialogRef.onClose.subscribe(function (data) {
|
|
7880
7864
|
_this.handleActiveItem(item, false);
|
|
7881
7865
|
if (data && menu.onReturn) {
|