@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.
@@ -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) { return ({ label: rowValue, value: uniqueId }); });
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.VIEW &&
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) {