@vendure/admin-ui 1.8.1 → 1.8.3

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.
Files changed (33) hide show
  1. package/bundles/vendure-admin-ui-catalog.umd.js +4 -0
  2. package/bundles/vendure-admin-ui-catalog.umd.js.map +1 -1
  3. package/bundles/vendure-admin-ui-core.umd.js +39 -2
  4. package/bundles/vendure-admin-ui-core.umd.js.map +1 -1
  5. package/bundles/vendure-admin-ui-customer.umd.js +4 -1
  6. package/bundles/vendure-admin-ui-customer.umd.js.map +1 -1
  7. package/bundles/vendure-admin-ui-settings.umd.js +1 -1
  8. package/bundles/vendure-admin-ui-settings.umd.js.map +1 -1
  9. package/core/common/version.d.ts +1 -1
  10. package/core/public_api.d.ts +1 -0
  11. package/core/shared/pipes/custom-field-description.pipe.d.ts +8 -0
  12. package/core/vendure-admin-ui-core.metadata.json +1 -1
  13. package/esm2015/catalog/components/facet-detail/facet-detail.component.js +5 -1
  14. package/esm2015/core/common/generated-types.js +1 -1
  15. package/esm2015/core/common/introspection-result.js +1 -1
  16. package/esm2015/core/common/version.js +2 -2
  17. package/esm2015/core/data/data.module.js +8 -1
  18. package/esm2015/core/public_api.js +2 -1
  19. package/esm2015/core/shared/components/custom-field-control/custom-field-control.component.js +2 -2
  20. package/esm2015/core/shared/pipes/custom-field-description.pipe.js +26 -0
  21. package/esm2015/core/shared/shared.module.js +3 -1
  22. package/esm2015/customer/components/customer-detail/customer-detail.component.js +2 -1
  23. package/esm2015/customer/providers/routing/customer-resolver.js +5 -3
  24. package/esm2015/settings/components/zone-detail-dialog/zone-detail-dialog.component.js +2 -2
  25. package/fesm2015/vendure-admin-ui-catalog.js +4 -0
  26. package/fesm2015/vendure-admin-ui-catalog.js.map +1 -1
  27. package/fesm2015/vendure-admin-ui-core.js +36 -3
  28. package/fesm2015/vendure-admin-ui-core.js.map +1 -1
  29. package/fesm2015/vendure-admin-ui-customer.js +4 -1
  30. package/fesm2015/vendure-admin-ui-customer.js.map +1 -1
  31. package/fesm2015/vendure-admin-ui-settings.js +1 -1
  32. package/fesm2015/vendure-admin-ui-settings.js.map +1 -1
  33. package/package.json +2 -2
@@ -6273,6 +6273,13 @@
6273
6273
  },
6274
6274
  },
6275
6275
  },
6276
+ Facet: {
6277
+ fields: {
6278
+ values: {
6279
+ merge: function (existing, incoming) { return incoming; },
6280
+ },
6281
+ },
6282
+ },
6276
6283
  },
6277
6284
  });
6278
6285
  apolloCache.writeQuery({
@@ -9572,7 +9579,7 @@
9572
9579
  CustomFieldControlComponent.decorators = [
9573
9580
  { type: i0.Component, args: [{
9574
9581
  selector: 'vdr-custom-field-control',
9575
- template: "<div class=\"clr-form-control\" *ngIf=\"compact\">\r\n <label for=\"basic\" class=\"clr-control-label\">{{ customField | customFieldLabel:(uiLanguage$ | async) }}</label>\r\n <div class=\"clr-control-container\">\r\n <div class=\"clr-input-wrapper\">\r\n <ng-container *ngTemplateOutlet=\"inputs\"></ng-container>\r\n </div>\r\n </div>\r\n</div>\r\n<vdr-form-field [label]=\"customField | customFieldLabel:(uiLanguage$ | async)\" [for]=\"customField.name\" *ngIf=\"!compact\">\r\n <ng-container *ngTemplateOutlet=\"inputs\"></ng-container>\r\n</vdr-form-field>\r\n\r\n<ng-template #inputs>\r\n <ng-container [formGroup]=\"formGroup\">\r\n <vdr-dynamic-form-input\r\n [formControlName]=\"customField.name\"\r\n [readonly]=\"readonly || customField.readonly\"\r\n [control]=\"formGroup.get(customField.name)\"\r\n [def]=\"getFieldDefinition()\"\r\n >\r\n </vdr-dynamic-form-input>\r\n </ng-container>\r\n</ng-template>\r\n",
9582
+ template: "<div class=\"clr-form-control\" *ngIf=\"compact\">\r\n <div class=\"flex\">\r\n <label for=\"basic\" class=\"clr-control-label\"\r\n >{{ customField | customFieldLabel: (uiLanguage$ | async) }}\r\n <vdr-help-tooltip\r\n *ngIf=\"customField | customFieldDescription: (uiLanguage$ | async) as description\"\r\n [content]=\"description\"\r\n ></vdr-help-tooltip>\r\n </label>\r\n </div>\r\n <div class=\"clr-control-container\">\r\n <div class=\"clr-input-wrapper\">\r\n <ng-container *ngTemplateOutlet=\"inputs\"></ng-container>\r\n </div>\r\n </div>\r\n</div>\r\n<vdr-form-field\r\n [label]=\"customField | customFieldLabel: (uiLanguage$ | async)\"\r\n [tooltip]=\"customField | customFieldDescription: (uiLanguage$ | async)\"\r\n [for]=\"customField.name\"\r\n *ngIf=\"!compact\"\r\n>\r\n <ng-container *ngTemplateOutlet=\"inputs\"></ng-container>\r\n</vdr-form-field>\r\n\r\n<ng-template #inputs>\r\n <ng-container [formGroup]=\"formGroup\">\r\n <vdr-dynamic-form-input\r\n [formControlName]=\"customField.name\"\r\n [readonly]=\"readonly || customField.readonly\"\r\n [control]=\"formGroup.get(customField.name)\"\r\n [def]=\"getFieldDefinition()\"\r\n >\r\n </vdr-dynamic-form-input>\r\n </ng-container>\r\n</ng-template>\r\n",
9576
9583
  styles: [":host{display:block;width:100%}:host .toggle-switch{margin-top:0;margin-bottom:0}\n"]
9577
9584
  },] }
9578
9585
  ];
@@ -14485,6 +14492,34 @@
14485
14492
  },] }
14486
14493
  ];
14487
14494
 
14495
+ /**
14496
+ * Displays a localized description for a CustomField
14497
+ */
14498
+ var CustomFieldDescriptionPipe = /** @class */ (function () {
14499
+ function CustomFieldDescriptionPipe() {
14500
+ }
14501
+ CustomFieldDescriptionPipe.prototype.transform = function (value, uiLanguageCode) {
14502
+ if (!value) {
14503
+ return value;
14504
+ }
14505
+ var description = value.description;
14506
+ if (description) {
14507
+ var match = description.find(function (l) { return l.languageCode === uiLanguageCode; });
14508
+ return match ? match.value : description[0].value;
14509
+ }
14510
+ else {
14511
+ return '';
14512
+ }
14513
+ };
14514
+ return CustomFieldDescriptionPipe;
14515
+ }());
14516
+ CustomFieldDescriptionPipe.decorators = [
14517
+ { type: i0.Pipe, args: [{
14518
+ name: 'customFieldDescription',
14519
+ pure: true,
14520
+ },] }
14521
+ ];
14522
+
14488
14523
  /**
14489
14524
  * Displays a localized label for a CustomField or StringFieldOption, falling back to the
14490
14525
  * name/value if none are defined.
@@ -15350,6 +15385,7 @@
15350
15385
  IfDefaultChannelActiveDirective,
15351
15386
  ExtensionHostComponent,
15352
15387
  CustomFieldLabelPipe,
15388
+ CustomFieldDescriptionPipe,
15353
15389
  FocalPointControlComponent,
15354
15390
  AssetPreviewPipe,
15355
15391
  LinkDialogComponent,
@@ -16035,7 +16071,7 @@
16035
16071
  }
16036
16072
 
16037
16073
  // Auto-generated by the set-version.js script.
16038
- var ADMIN_UI_VERSION = '1.8.1';
16074
+ var ADMIN_UI_VERSION = '1.8.3';
16039
16075
 
16040
16076
  /**
16041
16077
  * @description
@@ -16441,6 +16477,7 @@
16441
16477
  exports.CustomDetailComponentService = CustomDetailComponentService;
16442
16478
  exports.CustomFieldComponentService = CustomFieldComponentService;
16443
16479
  exports.CustomFieldControlComponent = CustomFieldControlComponent;
16480
+ exports.CustomFieldDescriptionPipe = CustomFieldDescriptionPipe;
16444
16481
  exports.CustomFieldLabelPipe = CustomFieldLabelPipe;
16445
16482
  exports.CustomHttpTranslationLoader = CustomHttpTranslationLoader;
16446
16483
  exports.CustomerDataService = CustomerDataService;