@vendure/admin-ui 1.6.3 → 1.6.4
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-core.umd.js +18 -5
- package/bundles/vendure-admin-ui-core.umd.js.map +1 -1
- package/bundles/vendure-admin-ui-order.umd.js +38 -18
- package/bundles/vendure-admin-ui-order.umd.js.map +1 -1
- package/core/common/generated-types.d.ts +2 -0
- package/core/common/version.d.ts +1 -1
- package/core/shared/components/facet-value-selector/facet-value-selector.component.d.ts +2 -1
- package/core/shared/dynamic-form-inputs/facet-value-form-input/facet-value-form-input.component.d.ts +2 -0
- package/core/vendure-admin-ui-core.metadata.json +1 -1
- package/esm2015/core/common/generated-types.js +1 -1
- package/esm2015/core/common/introspection-result.js +1 -1
- package/esm2015/core/common/utilities/configurable-operation-utils.js +3 -3
- package/esm2015/core/common/version.js +2 -2
- package/esm2015/core/shared/components/facet-value-selector/facet-value-selector.component.js +5 -2
- package/esm2015/core/shared/dynamic-form-inputs/facet-value-form-input/facet-value-form-input.component.js +11 -2
- package/esm2015/order/components/order-detail/order-detail.component.js +31 -19
- package/esm2015/order/components/order-table/order-table.component.js +10 -2
- package/fesm2015/vendure-admin-ui-core.js +17 -5
- package/fesm2015/vendure-admin-ui-core.js.map +1 -1
- package/fesm2015/vendure-admin-ui-order.js +39 -19
- package/fesm2015/vendure-admin-ui-order.js.map +1 -1
- package/order/components/order-table/order-table.component.d.ts +1 -0
- package/order/vendure-admin-ui-order.metadata.json +1 -1
- package/package.json +2 -2
|
@@ -6487,7 +6487,7 @@
|
|
|
6487
6487
|
*/
|
|
6488
6488
|
function getConfigArgValue(value) {
|
|
6489
6489
|
try {
|
|
6490
|
-
return value ? JSON.parse(value) : undefined;
|
|
6490
|
+
return value != null ? JSON.parse(value) : undefined;
|
|
6491
6491
|
}
|
|
6492
6492
|
catch (e) {
|
|
6493
6493
|
return value;
|
|
@@ -6568,7 +6568,7 @@
|
|
|
6568
6568
|
if (arg.list) {
|
|
6569
6569
|
return [];
|
|
6570
6570
|
}
|
|
6571
|
-
if (arg.defaultValue) {
|
|
6571
|
+
if (arg.defaultValue != null) {
|
|
6572
6572
|
return arg.defaultValue;
|
|
6573
6573
|
}
|
|
6574
6574
|
var type = arg.type;
|
|
@@ -6938,8 +6938,18 @@
|
|
|
6938
6938
|
*/
|
|
6939
6939
|
var FacetValueFormInputComponent = /** @class */ (function () {
|
|
6940
6940
|
function FacetValueFormInputComponent(dataService) {
|
|
6941
|
+
var _this = this;
|
|
6941
6942
|
this.dataService = dataService;
|
|
6942
6943
|
this.isListInput = true;
|
|
6944
|
+
this.valueTransformFn = function (values) {
|
|
6945
|
+
var isUsedInConfigArg = _this.config.__typename === 'ConfigArgDefinition';
|
|
6946
|
+
if (isUsedInConfigArg) {
|
|
6947
|
+
return JSON.stringify(values.map(function (s) { return s.id; }));
|
|
6948
|
+
}
|
|
6949
|
+
else {
|
|
6950
|
+
return values;
|
|
6951
|
+
}
|
|
6952
|
+
};
|
|
6943
6953
|
}
|
|
6944
6954
|
FacetValueFormInputComponent.prototype.ngOnInit = function () {
|
|
6945
6955
|
this.facets$ = this.dataService.facet
|
|
@@ -6953,7 +6963,7 @@
|
|
|
6953
6963
|
FacetValueFormInputComponent.decorators = [
|
|
6954
6964
|
{ type: i0.Component, args: [{
|
|
6955
6965
|
selector: 'vdr-facet-value-form-input',
|
|
6956
|
-
template: "<vdr-facet-value-selector\r\n *ngIf=\"facets$ | async as facets\"\r\n [readonly]=\"readonly\"\r\n [facets]=\"facets\"\r\n [formControl]=\"formControl\"\r\n></vdr-facet-value-selector>\r\n",
|
|
6966
|
+
template: "<vdr-facet-value-selector\r\n *ngIf=\"facets$ | async as facets\"\r\n [readonly]=\"readonly\"\r\n [facets]=\"facets\"\r\n [formControl]=\"formControl\"\r\n [transformControlValueAccessorValue]=\"valueTransformFn\"\r\n></vdr-facet-value-selector>\r\n",
|
|
6957
6967
|
changeDetection: i0.ChangeDetectionStrategy.OnPush,
|
|
6958
6968
|
styles: [""]
|
|
6959
6969
|
},] }
|
|
@@ -10192,6 +10202,7 @@
|
|
|
10192
10202
|
this.dataService = dataService;
|
|
10193
10203
|
this.selectedValuesChange = new i0.EventEmitter();
|
|
10194
10204
|
this.readonly = false;
|
|
10205
|
+
this.transformControlValueAccessorValue = function (value) { return value; };
|
|
10195
10206
|
this.facetValues = [];
|
|
10196
10207
|
this.disabled = false;
|
|
10197
10208
|
this.toSelectorItem = function (facetValue) {
|
|
@@ -10212,7 +10223,8 @@
|
|
|
10212
10223
|
}
|
|
10213
10224
|
this.selectedValuesChange.emit(selected.map(function (s) { return s.value; }));
|
|
10214
10225
|
if (this.onChangeFn) {
|
|
10215
|
-
this.
|
|
10226
|
+
var transformedValue = this.transformControlValueAccessorValue(selected);
|
|
10227
|
+
this.onChangeFn(transformedValue);
|
|
10216
10228
|
}
|
|
10217
10229
|
};
|
|
10218
10230
|
FacetValueSelectorComponent.prototype.registerOnChange = function (fn) {
|
|
@@ -10272,6 +10284,7 @@
|
|
|
10272
10284
|
selectedValuesChange: [{ type: i0.Output }],
|
|
10273
10285
|
facets: [{ type: i0.Input }],
|
|
10274
10286
|
readonly: [{ type: i0.Input }],
|
|
10287
|
+
transformControlValueAccessorValue: [{ type: i0.Input }],
|
|
10275
10288
|
ngSelect: [{ type: i0.ViewChild, args: [ngSelect.NgSelectComponent,] }]
|
|
10276
10289
|
};
|
|
10277
10290
|
|
|
@@ -14570,7 +14583,7 @@
|
|
|
14570
14583
|
}
|
|
14571
14584
|
|
|
14572
14585
|
// Auto-generated by the set-version.js script.
|
|
14573
|
-
var ADMIN_UI_VERSION = '1.6.
|
|
14586
|
+
var ADMIN_UI_VERSION = '1.6.4';
|
|
14574
14587
|
|
|
14575
14588
|
/**
|
|
14576
14589
|
* Responsible for registering dashboard widget components and querying for layouts.
|