@messaia/cdk 19.0.0-rc06 → 19.0.0-rc08

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.
@@ -4462,8 +4462,15 @@ class GenericService {
4462
4462
  * @param disposition
4463
4463
  */
4464
4464
  getFileNameFromHeaders(headers) {
4465
+ /* Extract the Content-Disposition header from the HTTP headers */
4465
4466
  var disposition = headers.get('content-disposition');
4466
4467
  if (disposition && disposition.indexOf('attachment') !== -1) {
4468
+ /* Use a regular expression to extract the UTF-8 file name from the Content-Disposition header */
4469
+ var utf8Matches = /filename\*=[^;=\n]*'[^']*'([^;\n]*)/.exec(disposition);
4470
+ if (utf8Matches != null && utf8Matches[1]) {
4471
+ return decodeURIComponent(utf8Matches[1].replace(/['"]/g, ''));
4472
+ }
4473
+ /* Use a regular expression to extract the file name from the Content-Disposition header */
4467
4474
  var matches = /filename[^;=\n]*=((['"]).*?\2|[^;\n]*)/.exec(disposition);
4468
4475
  if (matches != null && matches[1]) {
4469
4476
  return matches[1].replace(/['"]/g, '');
@@ -10592,6 +10599,10 @@ let MenuItem = class MenuItem extends AuditEntity {
10592
10599
  * The IDs of the roles associated with the menu item.
10593
10600
  */
10594
10601
  roleIds;
10602
+ /**
10603
+ * The categories associated with the menu item.
10604
+ */
10605
+ categories = [];
10595
10606
  /**
10596
10607
  * The description of the menu item.
10597
10608
  */
@@ -10757,6 +10768,15 @@ __decorate([
10757
10768
  Display($localize `:@@roles:Roles`),
10758
10769
  __metadata("design:type", Array)
10759
10770
  ], MenuItem.prototype, "roleIds", void 0);
10771
+ __decorate([
10772
+ prop(),
10773
+ FormField({
10774
+ row: 60,
10775
+ type: FormFieldType.Chips
10776
+ }),
10777
+ Display($localize `:@@categories:Categories`),
10778
+ __metadata("design:type", Array)
10779
+ ], MenuItem.prototype, "categories", void 0);
10760
10780
  __decorate([
10761
10781
  prop(),
10762
10782
  FormField({