@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.
- 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/components/rich-text-editor/prosemirror/context-menu/context-menu.component.mjs +1 -1
- package/esm2020/core/shared/components/rich-text-editor/prosemirror/context-menu/context-menu.service.mjs +2 -2
- 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 +23 -6
- 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 +22 -6
- 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
|
@@ -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);
|