@vendure/admin-ui 2.0.0-next.16 → 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 (29) 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/pipes/locale-currency.pipe.mjs +10 -2
  9. package/esm2020/customer/components/customer-group-list/customer-group-list.component.mjs +7 -6
  10. package/esm2020/order/components/order-editor/order-editor.component.mjs +12 -5
  11. package/fesm2015/vendure-admin-ui-catalog.mjs +7 -1
  12. package/fesm2015/vendure-admin-ui-catalog.mjs.map +1 -1
  13. package/fesm2015/vendure-admin-ui-core.mjs +22 -5
  14. package/fesm2015/vendure-admin-ui-core.mjs.map +1 -1
  15. package/fesm2015/vendure-admin-ui-customer.mjs +6 -5
  16. package/fesm2015/vendure-admin-ui-customer.mjs.map +1 -1
  17. package/fesm2015/vendure-admin-ui-order.mjs +8 -4
  18. package/fesm2015/vendure-admin-ui-order.mjs.map +1 -1
  19. package/fesm2020/vendure-admin-ui-catalog.mjs +6 -1
  20. package/fesm2020/vendure-admin-ui-catalog.mjs.map +1 -1
  21. package/fesm2020/vendure-admin-ui-core.mjs +21 -5
  22. package/fesm2020/vendure-admin-ui-core.mjs.map +1 -1
  23. package/fesm2020/vendure-admin-ui-customer.mjs +6 -5
  24. package/fesm2020/vendure-admin-ui-customer.mjs.map +1 -1
  25. package/fesm2020/vendure-admin-ui-order.mjs +11 -4
  26. package/fesm2020/vendure-admin-ui-order.mjs.map +1 -1
  27. package/package.json +2 -2
  28. package/static/styles/_variables.scss +1 -0
  29. package/static/styles/global/_sass-overrides.scss +1 -1
@@ -1863,7 +1863,12 @@ class OptionValueInputComponent {
1863
1863
  this.addOptionValue();
1864
1864
  }
1865
1865
  addOptionValue() {
1866
- const options = this.parseInputIntoOptions(this.input);
1866
+ const options = this.parseInputIntoOptions(this.input).filter(option => {
1867
+ // do not add an option with the same name
1868
+ // as an existing option
1869
+ const existing = this.options ?? this.formValue;
1870
+ return !existing?.find(o => o?.name === option.name);
1871
+ });
1867
1872
  if (!this.formValue && this.options) {
1868
1873
  for (const option of options) {
1869
1874
  this.add.emit(option);