@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.
- package/core/common/utilities/configurable-operation-utils.d.ts +4 -1
- package/core/common/version.d.ts +1 -1
- package/esm2020/catalog/components/option-value-input/option-value-input.component.mjs +7 -2
- package/esm2020/core/common/utilities/configurable-operation-utils.mjs +7 -2
- package/esm2020/core/common/version.mjs +2 -2
- package/esm2020/core/components/app-shell/app-shell.component.mjs +2 -2
- package/esm2020/core/data/utils/remove-readonly-custom-fields.mjs +4 -1
- package/esm2020/core/shared/pipes/locale-currency.pipe.mjs +10 -2
- package/esm2020/customer/components/customer-group-list/customer-group-list.component.mjs +7 -6
- package/esm2020/order/components/order-editor/order-editor.component.mjs +12 -5
- package/fesm2015/vendure-admin-ui-catalog.mjs +7 -1
- package/fesm2015/vendure-admin-ui-catalog.mjs.map +1 -1
- package/fesm2015/vendure-admin-ui-core.mjs +22 -5
- package/fesm2015/vendure-admin-ui-core.mjs.map +1 -1
- package/fesm2015/vendure-admin-ui-customer.mjs +6 -5
- package/fesm2015/vendure-admin-ui-customer.mjs.map +1 -1
- package/fesm2015/vendure-admin-ui-order.mjs +8 -4
- package/fesm2015/vendure-admin-ui-order.mjs.map +1 -1
- package/fesm2020/vendure-admin-ui-catalog.mjs +6 -1
- package/fesm2020/vendure-admin-ui-catalog.mjs.map +1 -1
- package/fesm2020/vendure-admin-ui-core.mjs +21 -5
- package/fesm2020/vendure-admin-ui-core.mjs.map +1 -1
- package/fesm2020/vendure-admin-ui-customer.mjs +6 -5
- package/fesm2020/vendure-admin-ui-customer.mjs.map +1 -1
- package/fesm2020/vendure-admin-ui-order.mjs +11 -4
- package/fesm2020/vendure-admin-ui-order.mjs.map +1 -1
- package/package.json +2 -2
- package/static/styles/_variables.scss +1 -0
- 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);
|