@vendure/admin-ui 1.8.1 → 1.8.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-core.umd.js +32 -2
- package/bundles/vendure-admin-ui-core.umd.js.map +1 -1
- package/bundles/vendure-admin-ui-settings.umd.js +1 -1
- package/bundles/vendure-admin-ui-settings.umd.js.map +1 -1
- package/core/common/version.d.ts +1 -1
- package/core/public_api.d.ts +1 -0
- package/core/shared/pipes/custom-field-description.pipe.d.ts +8 -0
- package/core/vendure-admin-ui-core.metadata.json +1 -1
- package/esm2015/core/common/version.js +2 -2
- package/esm2015/core/public_api.js +2 -1
- package/esm2015/core/shared/components/custom-field-control/custom-field-control.component.js +2 -2
- package/esm2015/core/shared/pipes/custom-field-description.pipe.js +26 -0
- package/esm2015/core/shared/shared.module.js +3 -1
- package/esm2015/settings/components/zone-detail-dialog/zone-detail-dialog.component.js +2 -2
- package/fesm2015/vendure-admin-ui-core.js +29 -3
- package/fesm2015/vendure-admin-ui-core.js.map +1 -1
- package/fesm2015/vendure-admin-ui-settings.js +1 -1
- package/fesm2015/vendure-admin-ui-settings.js.map +1 -1
- package/package.json +2 -2
|
@@ -9572,7 +9572,7 @@
|
|
|
9572
9572
|
CustomFieldControlComponent.decorators = [
|
|
9573
9573
|
{ type: i0.Component, args: [{
|
|
9574
9574
|
selector: 'vdr-custom-field-control',
|
|
9575
|
-
template: "<div class=\"clr-form-control\" *ngIf=\"compact\">\
|
|
9575
|
+
template: "<div class=\"clr-form-control\" *ngIf=\"compact\">\n <div class=\"flex\">\n <label for=\"basic\" class=\"clr-control-label\"\n >{{ customField | customFieldLabel: (uiLanguage$ | async) }}\n <vdr-help-tooltip\n *ngIf=\"customField | customFieldDescription: (uiLanguage$ | async) as description\"\n [content]=\"description\"\n ></vdr-help-tooltip>\n </label>\n </div>\n <div class=\"clr-control-container\">\n <div class=\"clr-input-wrapper\">\n <ng-container *ngTemplateOutlet=\"inputs\"></ng-container>\n </div>\n </div>\n</div>\n<vdr-form-field\n [label]=\"customField | customFieldLabel: (uiLanguage$ | async)\"\n [tooltip]=\"customField | customFieldDescription: (uiLanguage$ | async)\"\n [for]=\"customField.name\"\n *ngIf=\"!compact\"\n>\n <ng-container *ngTemplateOutlet=\"inputs\"></ng-container>\n</vdr-form-field>\n\n<ng-template #inputs>\n <ng-container [formGroup]=\"formGroup\">\n <vdr-dynamic-form-input\n [formControlName]=\"customField.name\"\n [readonly]=\"readonly || customField.readonly\"\n [control]=\"formGroup.get(customField.name)\"\n [def]=\"getFieldDefinition()\"\n >\n </vdr-dynamic-form-input>\n </ng-container>\n</ng-template>\n",
|
|
9576
9576
|
styles: [":host{display:block;width:100%}:host .toggle-switch{margin-top:0;margin-bottom:0}\n"]
|
|
9577
9577
|
},] }
|
|
9578
9578
|
];
|
|
@@ -14485,6 +14485,34 @@
|
|
|
14485
14485
|
},] }
|
|
14486
14486
|
];
|
|
14487
14487
|
|
|
14488
|
+
/**
|
|
14489
|
+
* Displays a localized description for a CustomField
|
|
14490
|
+
*/
|
|
14491
|
+
var CustomFieldDescriptionPipe = /** @class */ (function () {
|
|
14492
|
+
function CustomFieldDescriptionPipe() {
|
|
14493
|
+
}
|
|
14494
|
+
CustomFieldDescriptionPipe.prototype.transform = function (value, uiLanguageCode) {
|
|
14495
|
+
if (!value) {
|
|
14496
|
+
return value;
|
|
14497
|
+
}
|
|
14498
|
+
var description = value.description;
|
|
14499
|
+
if (description) {
|
|
14500
|
+
var match = description.find(function (l) { return l.languageCode === uiLanguageCode; });
|
|
14501
|
+
return match ? match.value : description[0].value;
|
|
14502
|
+
}
|
|
14503
|
+
else {
|
|
14504
|
+
return '';
|
|
14505
|
+
}
|
|
14506
|
+
};
|
|
14507
|
+
return CustomFieldDescriptionPipe;
|
|
14508
|
+
}());
|
|
14509
|
+
CustomFieldDescriptionPipe.decorators = [
|
|
14510
|
+
{ type: i0.Pipe, args: [{
|
|
14511
|
+
name: 'customFieldDescription',
|
|
14512
|
+
pure: true,
|
|
14513
|
+
},] }
|
|
14514
|
+
];
|
|
14515
|
+
|
|
14488
14516
|
/**
|
|
14489
14517
|
* Displays a localized label for a CustomField or StringFieldOption, falling back to the
|
|
14490
14518
|
* name/value if none are defined.
|
|
@@ -15350,6 +15378,7 @@
|
|
|
15350
15378
|
IfDefaultChannelActiveDirective,
|
|
15351
15379
|
ExtensionHostComponent,
|
|
15352
15380
|
CustomFieldLabelPipe,
|
|
15381
|
+
CustomFieldDescriptionPipe,
|
|
15353
15382
|
FocalPointControlComponent,
|
|
15354
15383
|
AssetPreviewPipe,
|
|
15355
15384
|
LinkDialogComponent,
|
|
@@ -16035,7 +16064,7 @@
|
|
|
16035
16064
|
}
|
|
16036
16065
|
|
|
16037
16066
|
// Auto-generated by the set-version.js script.
|
|
16038
|
-
var ADMIN_UI_VERSION = '1.8.
|
|
16067
|
+
var ADMIN_UI_VERSION = '1.8.2';
|
|
16039
16068
|
|
|
16040
16069
|
/**
|
|
16041
16070
|
* @description
|
|
@@ -16441,6 +16470,7 @@
|
|
|
16441
16470
|
exports.CustomDetailComponentService = CustomDetailComponentService;
|
|
16442
16471
|
exports.CustomFieldComponentService = CustomFieldComponentService;
|
|
16443
16472
|
exports.CustomFieldControlComponent = CustomFieldControlComponent;
|
|
16473
|
+
exports.CustomFieldDescriptionPipe = CustomFieldDescriptionPipe;
|
|
16444
16474
|
exports.CustomFieldLabelPipe = CustomFieldLabelPipe;
|
|
16445
16475
|
exports.CustomHttpTranslationLoader = CustomHttpTranslationLoader;
|
|
16446
16476
|
exports.CustomerDataService = CustomerDataService;
|