@vendure/admin-ui 2.0.0-next.15 → 2.0.0-next.17

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/core/common/utilities/configurable-operation-utils.d.ts +4 -1
  2. package/core/common/version.d.ts +1 -1
  3. package/esm2020/catalog/components/option-value-input/option-value-input.component.mjs +7 -2
  4. package/esm2020/core/common/utilities/configurable-operation-utils.mjs +7 -2
  5. package/esm2020/core/common/version.mjs +2 -2
  6. package/esm2020/core/components/app-shell/app-shell.component.mjs +2 -2
  7. package/esm2020/core/data/utils/remove-readonly-custom-fields.mjs +4 -1
  8. package/esm2020/core/shared/components/rich-text-editor/prosemirror/context-menu/context-menu.component.mjs +1 -1
  9. package/esm2020/core/shared/components/rich-text-editor/prosemirror/context-menu/context-menu.service.mjs +2 -2
  10. package/esm2020/core/shared/pipes/locale-currency.pipe.mjs +10 -2
  11. package/esm2020/customer/components/customer-group-list/customer-group-list.component.mjs +7 -6
  12. package/esm2020/order/components/order-editor/order-editor.component.mjs +12 -5
  13. package/fesm2015/vendure-admin-ui-catalog.mjs +7 -1
  14. package/fesm2015/vendure-admin-ui-catalog.mjs.map +1 -1
  15. package/fesm2015/vendure-admin-ui-core.mjs +23 -6
  16. package/fesm2015/vendure-admin-ui-core.mjs.map +1 -1
  17. package/fesm2015/vendure-admin-ui-customer.mjs +6 -5
  18. package/fesm2015/vendure-admin-ui-customer.mjs.map +1 -1
  19. package/fesm2015/vendure-admin-ui-order.mjs +8 -4
  20. package/fesm2015/vendure-admin-ui-order.mjs.map +1 -1
  21. package/fesm2020/vendure-admin-ui-catalog.mjs +6 -1
  22. package/fesm2020/vendure-admin-ui-catalog.mjs.map +1 -1
  23. package/fesm2020/vendure-admin-ui-core.mjs +22 -6
  24. package/fesm2020/vendure-admin-ui-core.mjs.map +1 -1
  25. package/fesm2020/vendure-admin-ui-customer.mjs +6 -5
  26. package/fesm2020/vendure-admin-ui-customer.mjs.map +1 -1
  27. package/fesm2020/vendure-admin-ui-order.mjs +11 -4
  28. package/fesm2020/vendure-admin-ui-order.mjs.map +1 -1
  29. package/package.json +2 -2
  30. package/static/styles/_variables.scss +1 -0
  31. package/static/styles/global/_sass-overrides.scss +1 -1
@@ -1861,7 +1861,13 @@ class OptionValueInputComponent {
1861
1861
  this.addOptionValue();
1862
1862
  }
1863
1863
  addOptionValue() {
1864
- const options = this.parseInputIntoOptions(this.input);
1864
+ const options = this.parseInputIntoOptions(this.input).filter(option => {
1865
+ var _a;
1866
+ // do not add an option with the same name
1867
+ // as an existing option
1868
+ const existing = (_a = this.options) !== null && _a !== void 0 ? _a : this.formValue;
1869
+ return !(existing === null || existing === void 0 ? void 0 : existing.find(o => (o === null || o === void 0 ? void 0 : o.name) === option.name));
1870
+ });
1865
1871
  if (!this.formValue && this.options) {
1866
1872
  for (const option of options) {
1867
1873
  this.add.emit(option);