@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.
- package/bundles/vendure-admin-ui-catalog.umd.js +8 -1
- package/bundles/vendure-admin-ui-catalog.umd.js.map +1 -1
- package/bundles/vendure-admin-ui-core.umd.js +28 -11
- package/bundles/vendure-admin-ui-core.umd.js.map +1 -1
- package/bundles/vendure-admin-ui-customer.umd.js +5 -4
- package/bundles/vendure-admin-ui-customer.umd.js.map +1 -1
- package/bundles/vendure-admin-ui-order.umd.js +10 -7
- package/bundles/vendure-admin-ui-order.umd.js.map +1 -1
- package/core/common/generated-types.d.ts +2 -1
- package/core/common/utilities/configurable-operation-utils.d.ts +4 -1
- package/core/common/version.d.ts +1 -1
- package/core/vendure-admin-ui-core.metadata.json +1 -1
- package/customer/vendure-admin-ui-customer.metadata.json +1 -1
- package/esm2015/catalog/components/option-value-input/option-value-input.component.js +8 -2
- package/esm2015/core/common/generated-types.js +2 -2
- package/esm2015/core/common/introspection-result.js +1 -1
- package/esm2015/core/common/utilities/configurable-operation-utils.js +8 -2
- package/esm2015/core/common/version.js +2 -2
- package/esm2015/core/components/app-shell/app-shell.component.js +1 -1
- package/esm2015/core/data/utils/remove-readonly-custom-fields.js +4 -1
- package/esm2015/core/shared/components/dropdown/dropdown-menu.component.js +11 -11
- package/esm2015/core/shared/components/dropdown/dropdown-trigger.directive.js +1 -1
- package/esm2015/core/shared/pipes/locale-currency.pipe.js +10 -2
- package/esm2015/customer/components/customer-group-list/customer-group-list.component.js +6 -5
- package/esm2015/order/components/order-editor/order-editor.component.js +9 -5
- package/fesm2015/vendure-admin-ui-catalog.js +7 -1
- package/fesm2015/vendure-admin-ui-catalog.js.map +1 -1
- package/fesm2015/vendure-admin-ui-core.js +32 -15
- package/fesm2015/vendure-admin-ui-core.js.map +1 -1
- package/fesm2015/vendure-admin-ui-customer.js +5 -4
- package/fesm2015/vendure-admin-ui-customer.js.map +1 -1
- package/fesm2015/vendure-admin-ui-order.js +8 -4
- package/fesm2015/vendure-admin-ui-order.js.map +1 -1
- package/order/vendure-admin-ui-order.metadata.json +1 -1
- package/package.json +2 -2
- package/static/styles/_variables.scss +1 -0
- 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
|
|
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()) {
|