@vendure/admin-ui 1.4.6 → 1.4.7

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.
Files changed (31) hide show
  1. package/bundles/vendure-admin-ui-catalog.umd.js +67 -27
  2. package/bundles/vendure-admin-ui-catalog.umd.js.map +1 -1
  3. package/bundles/vendure-admin-ui-core.umd.js +46 -12
  4. package/bundles/vendure-admin-ui-core.umd.js.map +1 -1
  5. package/bundles/vendure-admin-ui-settings.umd.js +1 -1
  6. package/bundles/vendure-admin-ui-settings.umd.js.map +1 -1
  7. package/catalog/components/facet-detail/facet-detail.component.d.ts +7 -2
  8. package/catalog/vendure-admin-ui-catalog.metadata.json +1 -1
  9. package/core/common/generated-types.d.ts +6 -6
  10. package/core/common/version.d.ts +1 -1
  11. package/core/data/utils/remove-readonly-custom-fields.d.ts +12 -3
  12. package/core/shared/directives/if-default-channel-active.directive.d.ts +1 -1
  13. package/core/shared/directives/if-multichannel.directive.d.ts +1 -1
  14. package/core/vendure-admin-ui-core.metadata.json +1 -1
  15. package/esm2015/catalog/components/facet-detail/facet-detail.component.js +44 -16
  16. package/esm2015/core/common/generated-types.js +1 -1
  17. package/esm2015/core/common/utilities/create-updated-translatable.js +1 -1
  18. package/esm2015/core/common/version.js +2 -2
  19. package/esm2015/core/data/utils/remove-readonly-custom-fields.js +15 -3
  20. package/esm2015/core/shared/components/tabbed-custom-fields/tabbed-custom-fields.component.js +3 -2
  21. package/esm2015/core/shared/directives/if-default-channel-active.directive.js +2 -2
  22. package/esm2015/core/shared/directives/if-multichannel.directive.js +2 -2
  23. package/esm2015/settings/components/channel-list/channel-list.component.js +2 -2
  24. package/fesm2015/vendure-admin-ui-catalog.js +43 -15
  25. package/fesm2015/vendure-admin-ui-catalog.js.map +1 -1
  26. package/fesm2015/vendure-admin-ui-core.js +19 -6
  27. package/fesm2015/vendure-admin-ui-core.js.map +1 -1
  28. package/fesm2015/vendure-admin-ui-settings.js +1 -1
  29. package/fesm2015/vendure-admin-ui-settings.js.map +1 -1
  30. package/package.json +11 -11
  31. package/settings/vendure-admin-ui-settings.metadata.json +1 -1
@@ -1572,8 +1572,20 @@ function extractInputType(type) {
1572
1572
  * To be used before submitting the entity for a create or update request.
1573
1573
  */
1574
1574
  function removeReadonlyCustomFields(variables, customFieldConfig) {
1575
- if (variables.input) {
1576
- removeReadonly(variables.input, customFieldConfig);
1575
+ if (!Array.isArray(variables)) {
1576
+ if (Array.isArray(variables.input)) {
1577
+ for (const input of variables.input) {
1578
+ removeReadonly(input, customFieldConfig);
1579
+ }
1580
+ }
1581
+ else {
1582
+ removeReadonly(variables.input, customFieldConfig);
1583
+ }
1584
+ }
1585
+ else {
1586
+ for (const input of variables) {
1587
+ removeReadonly(input, customFieldConfig);
1588
+ }
1577
1589
  }
1578
1590
  return removeReadonly(variables, customFieldConfig);
1579
1591
  }
@@ -13045,7 +13057,8 @@ class TabbedCustomFieldsComponent {
13045
13057
  this.tabbedCustomFields = this.groupByTabs(this.customFields);
13046
13058
  }
13047
13059
  customFieldIsSet(name) {
13048
- return !!this.customFieldsFormGroup.get(name);
13060
+ var _a;
13061
+ return !!((_a = this.customFieldsFormGroup) === null || _a === void 0 ? void 0 : _a.get(name));
13049
13062
  }
13050
13063
  groupByTabs(customFieldConfigs) {
13051
13064
  var _a, _b, _c;
@@ -13359,7 +13372,7 @@ class IfDefaultChannelActiveDirective extends IfDirectiveBase {
13359
13372
  this.changeDetectorRef = changeDetectorRef;
13360
13373
  }
13361
13374
  /**
13362
- * A template to show if the current user does not have the speicified permission.
13375
+ * A template to show if the current user does not have the specified permission.
13363
13376
  */
13364
13377
  set vdrIfMultichannelElse(templateRef) {
13365
13378
  this.setElseTemplate(templateRef);
@@ -13408,7 +13421,7 @@ class IfMultichannelDirective extends IfDirectiveBase {
13408
13421
  this.dataService = dataService;
13409
13422
  }
13410
13423
  /**
13411
- * A template to show if the current user does not have the speicified permission.
13424
+ * A template to show if the current user does not have the specified permission.
13412
13425
  */
13413
13426
  set vdrIfMultichannelElse(templateRef) {
13414
13427
  this.setElseTemplate(templateRef);
@@ -15520,7 +15533,7 @@ function patchObject(obj, patch) {
15520
15533
  }
15521
15534
 
15522
15535
  // Auto-generated by the set-version.js script.
15523
- const ADMIN_UI_VERSION = '1.4.6';
15536
+ const ADMIN_UI_VERSION = '1.4.7';
15524
15537
 
15525
15538
  /**
15526
15539
  * Responsible for registering dashboard widget components and querying for layouts.