@churchillliving/se-ui-toolkit 6.53.94 → 6.53.96
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 +10 -3
- 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/grid/grid.component.js +5 -2
- package/esm2015/lib/models/user-info.model.js +2 -1
- package/esm2015/lib/services/utilities.service.js +3 -3
- package/fesm2015/churchillliving-se-ui-toolkit.js +7 -3
- package/fesm2015/churchillliving-se-ui-toolkit.js.map +1 -1
- package/lib/models/user-info.model.d.ts +2 -1
- package/lib/services/utilities.service.d.ts +1 -1
- package/package.json +1 -1
|
@@ -1112,9 +1112,12 @@
|
|
|
1112
1112
|
field.hyperlink.params = data;
|
|
1113
1113
|
});
|
|
1114
1114
|
}
|
|
1115
|
-
function setAutoCompleteData(values, uniqueId) {
|
|
1115
|
+
function setAutoCompleteData(values, uniqueId, labelKey, ValueKey) {
|
|
1116
1116
|
if ((values === null || values === void 0 ? void 0 : values.length) > 0) {
|
|
1117
|
-
values = values === null || values === void 0 ? void 0 : values.map(function (rowValue) {
|
|
1117
|
+
values = values === null || values === void 0 ? void 0 : values.map(function (rowValue) {
|
|
1118
|
+
var _k;
|
|
1119
|
+
return (_k = {}, _k[labelKey] = rowValue, _k[ValueKey] = uniqueId, _k);
|
|
1120
|
+
});
|
|
1118
1121
|
}
|
|
1119
1122
|
return values;
|
|
1120
1123
|
}
|
|
@@ -3132,6 +3135,7 @@
|
|
|
3132
3135
|
EPermissionType["VIEW"] = "view";
|
|
3133
3136
|
EPermissionType["DELETE"] = "delete";
|
|
3134
3137
|
EPermissionType["ADDROW"] = "addRow";
|
|
3138
|
+
EPermissionType["CRUD"] = "crud";
|
|
3135
3139
|
})(exports.EPermissionType || (exports.EPermissionType = {}));
|
|
3136
3140
|
|
|
3137
3141
|
var AuthenticationService = /** @class */ (function () {
|
|
@@ -3644,7 +3648,10 @@
|
|
|
3644
3648
|
isValid = true;
|
|
3645
3649
|
}
|
|
3646
3650
|
});
|
|
3647
|
-
if (permission.type === exports.EPermissionType.
|
|
3651
|
+
if (permission.type === exports.EPermissionType.CRUD && !isValid) {
|
|
3652
|
+
_this.useInlineCRUD = false;
|
|
3653
|
+
}
|
|
3654
|
+
else if (permission.type === exports.EPermissionType.VIEW &&
|
|
3648
3655
|
!hasValidEditPermission_1) {
|
|
3649
3656
|
_this.useInlineCRUD = true;
|
|
3650
3657
|
if (!isValid && !hasColumnPermissions_1) {
|