@vendure/admin-ui 1.7.1 → 1.7.2

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 (37) hide show
  1. package/bundles/vendure-admin-ui-catalog.umd.js +8 -1
  2. package/bundles/vendure-admin-ui-catalog.umd.js.map +1 -1
  3. package/bundles/vendure-admin-ui-core.umd.js +28 -11
  4. package/bundles/vendure-admin-ui-core.umd.js.map +1 -1
  5. package/bundles/vendure-admin-ui-customer.umd.js +5 -4
  6. package/bundles/vendure-admin-ui-customer.umd.js.map +1 -1
  7. package/bundles/vendure-admin-ui-order.umd.js +10 -7
  8. package/bundles/vendure-admin-ui-order.umd.js.map +1 -1
  9. package/core/common/generated-types.d.ts +2 -1
  10. package/core/common/utilities/configurable-operation-utils.d.ts +4 -1
  11. package/core/common/version.d.ts +1 -1
  12. package/core/vendure-admin-ui-core.metadata.json +1 -1
  13. package/customer/vendure-admin-ui-customer.metadata.json +1 -1
  14. package/esm2015/catalog/components/option-value-input/option-value-input.component.js +8 -2
  15. package/esm2015/core/common/generated-types.js +2 -2
  16. package/esm2015/core/common/introspection-result.js +1 -1
  17. package/esm2015/core/common/utilities/configurable-operation-utils.js +8 -2
  18. package/esm2015/core/common/version.js +2 -2
  19. package/esm2015/core/components/app-shell/app-shell.component.js +1 -1
  20. package/esm2015/core/data/utils/remove-readonly-custom-fields.js +4 -1
  21. package/esm2015/core/shared/components/dropdown/dropdown-menu.component.js +11 -11
  22. package/esm2015/core/shared/components/dropdown/dropdown-trigger.directive.js +1 -1
  23. package/esm2015/core/shared/pipes/locale-currency.pipe.js +10 -2
  24. package/esm2015/customer/components/customer-group-list/customer-group-list.component.js +6 -5
  25. package/esm2015/order/components/order-editor/order-editor.component.js +9 -5
  26. package/fesm2015/vendure-admin-ui-catalog.js +7 -1
  27. package/fesm2015/vendure-admin-ui-catalog.js.map +1 -1
  28. package/fesm2015/vendure-admin-ui-core.js +32 -15
  29. package/fesm2015/vendure-admin-ui-core.js.map +1 -1
  30. package/fesm2015/vendure-admin-ui-customer.js +5 -4
  31. package/fesm2015/vendure-admin-ui-customer.js.map +1 -1
  32. package/fesm2015/vendure-admin-ui-order.js +8 -4
  33. package/fesm2015/vendure-admin-ui-order.js.map +1 -1
  34. package/order/vendure-admin-ui-order.metadata.json +1 -1
  35. package/package.json +2 -2
  36. package/static/styles/_variables.scss +1 -0
  37. package/static/styles/global/_sass-overrides.scss +1 -1
@@ -4251,7 +4251,14 @@
4251
4251
  };
4252
4252
  OptionValueInputComponent.prototype.addOptionValue = function () {
4253
4253
  var e_1, _c;
4254
- var options = this.parseInputIntoOptions(this.input);
4254
+ var _this = this;
4255
+ var options = this.parseInputIntoOptions(this.input).filter(function (option) {
4256
+ var _a;
4257
+ // do not add an option with the same name
4258
+ // as an existing option
4259
+ var existing = (_a = _this.options) !== null && _a !== void 0 ? _a : _this.formValue;
4260
+ return !(existing === null || existing === void 0 ? void 0 : existing.find(function (o) { return (o === null || o === void 0 ? void 0 : o.name) === option.name; }));
4261
+ });
4255
4262
  if (!this.formValue && this.options) {
4256
4263
  try {
4257
4264
  for (var options_1 = __values(options), options_1_1 = options_1.next(); !options_1_1.done; options_1_1 = options_1.next()) {