@vendure/admin-ui 2.0.0-next.0 → 2.0.0-next.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 (95) hide show
  1. package/catalog/components/collection-contents/collection-contents.component.d.ts +8 -2
  2. package/catalog/components/collection-detail/collection-detail.component.d.ts +11 -4
  3. package/catalog/components/collection-list/collection-list.component.d.ts +2 -0
  4. package/catalog/components/collection-tree/array-to-tree.d.ts +1 -1
  5. package/catalog/components/collection-tree/collection-tree-node.component.d.ts +6 -2
  6. package/catalog/components/collection-tree/collection-tree.component.d.ts +2 -1
  7. package/catalog/components/product-variants-list/product-variants-list.component.d.ts +1 -0
  8. package/core/common/generated-types.d.ts +131 -2
  9. package/core/common/version.d.ts +1 -1
  10. package/core/data/definitions/collection-definitions.d.ts +1 -0
  11. package/core/data/providers/collection-data.service.d.ts +4 -0
  12. package/core/data/providers/promotion-data.service.d.ts +1 -1
  13. package/core/providers/local-storage/local-storage.service.d.ts +1 -0
  14. package/core/public_api.d.ts +2 -1
  15. package/core/shared/components/object-tree/object-tree.component.d.ts +3 -3
  16. package/core/shared/components/{product-selector/product-selector.component.d.ts → product-variant-selector/product-variant-selector.component.d.ts} +4 -4
  17. package/core/shared/dynamic-form-inputs/relation-form-input/generic/relation-generic-input.component.d.ts +18 -0
  18. package/core/shared/shared.module.d.ts +15 -14
  19. package/esm2020/catalog/components/assets/assets.component.mjs +2 -2
  20. package/esm2020/catalog/components/collection-contents/collection-contents.component.mjs +53 -13
  21. package/esm2020/catalog/components/collection-detail/collection-detail.component.mjs +57 -32
  22. package/esm2020/catalog/components/collection-list/collection-list.component.mjs +30 -5
  23. package/esm2020/catalog/components/collection-tree/array-to-tree.mjs +3 -3
  24. package/esm2020/catalog/components/collection-tree/collection-tree-node.component.mjs +29 -10
  25. package/esm2020/catalog/components/collection-tree/collection-tree.component.mjs +6 -3
  26. package/esm2020/catalog/components/facet-detail/facet-detail.component.mjs +2 -2
  27. package/esm2020/catalog/components/product-variants-list/product-variants-list.component.mjs +9 -3
  28. package/esm2020/catalog/providers/routing/collection-resolver.mjs +2 -1
  29. package/esm2020/core/app.component.module.mjs +1 -1
  30. package/esm2020/core/common/base-detail.component.mjs +1 -1
  31. package/esm2020/core/common/deactivate-aware.mjs +1 -1
  32. package/esm2020/core/common/generated-types.mjs +29 -1
  33. package/esm2020/core/common/introspection-result.mjs +255 -183
  34. package/esm2020/core/common/utilities/configurable-operation-utils.mjs +21 -2
  35. package/esm2020/core/common/version.mjs +2 -2
  36. package/esm2020/core/core.module.mjs +1 -1
  37. package/esm2020/core/data/definitions/collection-definitions.mjs +19 -1
  38. package/esm2020/core/data/definitions/customer-definitions.mjs +241 -241
  39. package/esm2020/core/data/definitions/order-definitions.mjs +2 -1
  40. package/esm2020/core/data/definitions/shared-definitions.mjs +29 -28
  41. package/esm2020/core/data/providers/collection-data.service.mjs +7 -2
  42. package/esm2020/core/data/providers/promotion-data.service.mjs +3 -2
  43. package/esm2020/core/providers/local-storage/local-storage.service.mjs +1 -1
  44. package/esm2020/core/public_api.mjs +3 -2
  45. package/esm2020/core/shared/components/asset-preview/asset-preview.component.mjs +4 -4
  46. package/esm2020/core/shared/components/configurable-input/configurable-input.component.mjs +10 -9
  47. package/esm2020/core/shared/components/help-tooltip/help-tooltip.component.mjs +2 -2
  48. package/esm2020/core/shared/components/object-tree/object-tree.component.mjs +4 -4
  49. package/esm2020/core/shared/components/product-variant-selector/product-variant-selector.component.mjs +62 -0
  50. package/esm2020/core/shared/dynamic-form-inputs/product-selector-form-input/product-selector-form-input.component.mjs +4 -4
  51. package/esm2020/core/shared/dynamic-form-inputs/relation-form-input/generic/relation-generic-input.component.mjs +54 -0
  52. package/esm2020/core/shared/dynamic-form-inputs/relation-form-input/relation-form-input.component.mjs +5 -4
  53. package/esm2020/core/shared/dynamic-form-inputs/select-form-input/select-form-input.component.mjs +1 -1
  54. package/esm2020/core/shared/shared.module.mjs +9 -5
  55. package/esm2020/order/components/cancel-order-dialog/cancel-order-dialog.component.mjs +8 -4
  56. package/esm2020/order/components/order-editor/order-editor.component.mjs +26 -10
  57. package/esm2020/order/components/order-table/order-table.component.mjs +2 -2
  58. package/esm2020/order/components/refund-order-dialog/refund-order-dialog.component.mjs +8 -4
  59. package/esm2020/settings/components/test-order-builder/test-order-builder.component.mjs +3 -3
  60. package/fesm2015/vendure-admin-ui-catalog.mjs +180 -57
  61. package/fesm2015/vendure-admin-ui-catalog.mjs.map +1 -1
  62. package/fesm2015/vendure-admin-ui-core.mjs +772 -584
  63. package/fesm2015/vendure-admin-ui-core.mjs.map +1 -1
  64. package/fesm2015/vendure-admin-ui-order.mjs +38 -16
  65. package/fesm2015/vendure-admin-ui-order.mjs.map +1 -1
  66. package/fesm2015/vendure-admin-ui-settings.mjs +2 -2
  67. package/fesm2015/vendure-admin-ui-settings.mjs.map +1 -1
  68. package/fesm2020/vendure-admin-ui-catalog.mjs +178 -59
  69. package/fesm2020/vendure-admin-ui-catalog.mjs.map +1 -1
  70. package/fesm2020/vendure-admin-ui-core.mjs +770 -581
  71. package/fesm2020/vendure-admin-ui-core.mjs.map +1 -1
  72. package/fesm2020/vendure-admin-ui-order.mjs +36 -15
  73. package/fesm2020/vendure-admin-ui-order.mjs.map +1 -1
  74. package/fesm2020/vendure-admin-ui-settings.mjs +2 -2
  75. package/fesm2020/vendure-admin-ui-settings.mjs.map +1 -1
  76. package/order/components/order-editor/order-editor.component.d.ts +8 -2
  77. package/package.json +2 -2
  78. package/static/i18n-messages/cs.json +6 -1
  79. package/static/i18n-messages/de.json +4 -1
  80. package/static/i18n-messages/en.json +6 -1
  81. package/static/i18n-messages/es.json +6 -1
  82. package/static/i18n-messages/fr.json +6 -1
  83. package/static/i18n-messages/it.json +6 -1
  84. package/static/i18n-messages/pl.json +6 -1
  85. package/static/i18n-messages/pt_BR.json +6 -1
  86. package/static/i18n-messages/pt_PT.json +6 -1
  87. package/static/i18n-messages/ru.json +6 -1
  88. package/static/i18n-messages/uk.json +6 -1
  89. package/static/i18n-messages/zh_Hans.json +6 -1
  90. package/static/i18n-messages/zh_Hant.json +6 -1
  91. package/static/styles/global/_forms.scss +3 -4
  92. package/static/styles/global/_overrides.scss +6 -0
  93. package/static/theme.min.css +1 -1
  94. package/static/vendure-ui-config.json +25 -10
  95. package/esm2020/core/shared/components/product-selector/product-selector.component.mjs +0 -62
@@ -0,0 +1,18 @@
1
+ import { TemplateRef } from '@angular/core';
2
+ import { FormControl } from '@angular/forms';
3
+ import { RelationCustomFieldConfig } from '../../../../common/generated-types';
4
+ import { ModalService } from '../../../../providers/modal/modal.service';
5
+ import * as i0 from "@angular/core";
6
+ export declare class RelationGenericInputComponent {
7
+ private modalService;
8
+ readonly: boolean;
9
+ parentFormControl: FormControl;
10
+ config: RelationCustomFieldConfig;
11
+ relationId: string;
12
+ template: TemplateRef<any>;
13
+ constructor(modalService: ModalService);
14
+ selectRelationId(): void;
15
+ remove(): void;
16
+ static ɵfac: i0.ɵɵFactoryDeclaration<RelationGenericInputComponent, never>;
17
+ static ɵcmp: i0.ɵɵComponentDeclaration<RelationGenericInputComponent, "vdr-relation-generic-input", never, { "readonly": "readonly"; "parentFormControl": "parentFormControl"; "config": "config"; }, {}, never, never>;
18
+ }
@@ -73,7 +73,7 @@ import * as i68 from "./components/history-entry-detail/history-entry-detail.com
73
73
  import * as i69 from "./components/edit-note-dialog/edit-note-dialog.component";
74
74
  import * as i70 from "./dynamic-form-inputs/product-selector-form-input/product-selector-form-input.component";
75
75
  import * as i71 from "./pipes/state-i18n-token.pipe";
76
- import * as i72 from "./components/product-selector/product-selector.component";
76
+ import * as i72 from "./components/product-variant-selector/product-variant-selector.component";
77
77
  import * as i73 from "./components/help-tooltip/help-tooltip.component";
78
78
  import * as i74 from "./dynamic-form-inputs/customer-group-form-input/customer-group-form-input.component";
79
79
  import * as i75 from "./components/address-form/address-form.component";
@@ -104,20 +104,21 @@ import * as i99 from "./dynamic-form-inputs/relation-form-input/asset/relation-a
104
104
  import * as i100 from "./dynamic-form-inputs/relation-form-input/product/relation-product-input.component";
105
105
  import * as i101 from "./dynamic-form-inputs/relation-form-input/product-variant/relation-product-variant-input.component";
106
106
  import * as i102 from "./dynamic-form-inputs/relation-form-input/customer/relation-customer-input.component";
107
- import * as i103 from "./dynamic-form-inputs/textarea-form-input/textarea-form-input.component";
108
- import * as i104 from "./dynamic-form-inputs/rich-text-form-input/rich-text-form-input.component";
109
- import * as i105 from "./dynamic-form-inputs/code-editor-form-input/json-editor-form-input.component";
110
- import * as i106 from "@clr/angular";
111
- import * as i107 from "@angular/common";
112
- import * as i108 from "@angular/forms";
113
- import * as i109 from "@angular/router";
114
- import * as i110 from "@ng-select/ng-select";
115
- import * as i111 from "ngx-pagination";
116
- import * as i112 from "@ngx-translate/core";
117
- import * as i113 from "@angular/cdk/overlay";
118
- import * as i114 from "@angular/cdk/drag-drop";
107
+ import * as i103 from "./dynamic-form-inputs/relation-form-input/generic/relation-generic-input.component";
108
+ import * as i104 from "./dynamic-form-inputs/textarea-form-input/textarea-form-input.component";
109
+ import * as i105 from "./dynamic-form-inputs/rich-text-form-input/rich-text-form-input.component";
110
+ import * as i106 from "./dynamic-form-inputs/code-editor-form-input/json-editor-form-input.component";
111
+ import * as i107 from "@clr/angular";
112
+ import * as i108 from "@angular/common";
113
+ import * as i109 from "@angular/forms";
114
+ import * as i110 from "@angular/router";
115
+ import * as i111 from "@ng-select/ng-select";
116
+ import * as i112 from "ngx-pagination";
117
+ import * as i113 from "@ngx-translate/core";
118
+ import * as i114 from "@angular/cdk/overlay";
119
+ import * as i115 from "@angular/cdk/drag-drop";
119
120
  export declare class SharedModule {
120
121
  static ɵfac: i0.ɵɵFactoryDeclaration<SharedModule, never>;
121
- static ɵmod: i0.ɵɵNgModuleDeclaration<SharedModule, [typeof i1.ActionBarComponent, typeof i1.ActionBarLeftComponent, typeof i1.ActionBarRightComponent, typeof i2.AssetPreviewComponent, typeof i3.AssetPreviewDialogComponent, typeof i4.AssetSearchInputComponent, typeof i5.ConfigurableInputComponent, typeof i6.AffixedInputComponent, typeof i7.ChipComponent, typeof i8.CurrencyInputComponent, typeof i9.LocaleCurrencyNamePipe, typeof i10.CustomerLabelComponent, typeof i11.CustomFieldControlComponent, typeof i12.DataTableComponent, typeof i13.DataTableColumnComponent, typeof i14.FacetValueSelectorComponent, typeof i15.ItemsPerPageControlsComponent, typeof i16.PaginationControlsComponent, typeof i17.TableRowActionComponent, typeof i18.FacetValueChipComponent, typeof i19.FileSizePipe, typeof i20.FormFieldComponent, typeof i21.FormFieldControlDirective, typeof i22.FormItemComponent, typeof i23.ModalDialogComponent, typeof i24.PercentageSuffixInputComponent, typeof i25.DialogComponentOutletComponent, typeof i26.DialogButtonsDirective, typeof i27.DialogTitleDirective, typeof i28.SelectToggleComponent, typeof i29.LanguageSelectorComponent, typeof i30.RichTextEditorComponent, typeof i31.SimpleDialogComponent, typeof i32.TitleInputComponent, typeof i33.SentenceCasePipe, typeof i34.DropdownComponent, typeof i35.DropdownMenuComponent, typeof i36.SortPipe, typeof i37.DropdownTriggerDirective, typeof i38.DropdownItemDirective, typeof i39.OrderStateLabelComponent, typeof i40.FormattedAddressComponent, typeof i41.LabeledDataComponent, typeof i42.StringToColorPipe, typeof i43.ObjectTreeComponent, typeof i44.IfPermissionsDirective, typeof i45.IfMultichannelDirective, typeof i46.HasPermissionPipe, typeof i47.ActionBarItemsComponent, typeof i48.DisabledDirective, typeof i49.AssetFileInputComponent, typeof i50.AssetGalleryComponent, typeof i51.AssetPickerDialogComponent, typeof i52.EntityInfoComponent, typeof i53.DatetimePickerComponent, typeof i54.ChannelBadgeComponent, typeof i55.ChannelAssignmentControlComponent, typeof i56.ChannelLabelPipe, typeof i57.IfDefaultChannelActiveDirective, typeof i58.ExtensionHostComponent, typeof i59.CustomFieldLabelPipe, typeof i60.FocalPointControlComponent, typeof i61.AssetPreviewPipe, typeof i62.LinkDialogComponent, typeof i63.ExternalImageDialogComponent, typeof i64.TimeAgoPipe, typeof i65.DurationPipe, typeof i66.EmptyPlaceholderComponent, typeof i67.TimelineEntryComponent, typeof i68.HistoryEntryDetailComponent, typeof i69.EditNoteDialogComponent, typeof i70.ProductSelectorFormInputComponent, typeof i71.StateI18nTokenPipe, typeof i72.ProductSelectorComponent, typeof i73.HelpTooltipComponent, typeof i74.CustomerGroupFormInputComponent, typeof i75.AddressFormComponent, typeof i76.LocaleDatePipe, typeof i77.LocaleCurrencyPipe, typeof i78.LocaleLanguageNamePipe, typeof i79.LocaleRegionNamePipe, typeof i80.TagSelectorComponent, typeof i81.ManageTagsDialogComponent, typeof i82.RelationSelectorDialogComponent, typeof i83.RelationCardComponent, typeof i84.StatusBadgeComponent, typeof i85.TabbedCustomFieldsComponent, typeof i86.UiExtensionPointComponent, typeof i87.CustomDetailComponentHostComponent, typeof i88.AssetPreviewLinksComponent, typeof i89.TextFormInputComponent, typeof i90.PasswordFormInputComponent, typeof i91.NumberFormInputComponent, typeof i92.DateFormInputComponent, typeof i93.CurrencyFormInputComponent, typeof i94.BooleanFormInputComponent, typeof i95.SelectFormInputComponent, typeof i96.FacetValueFormInputComponent, typeof i97.DynamicFormInputComponent, typeof i98.RelationFormInputComponent, typeof i99.RelationAssetInputComponent, typeof i100.RelationProductInputComponent, typeof i101.RelationProductVariantInputComponent, typeof i102.RelationCustomerInputComponent, typeof i83.RelationCardPreviewDirective, typeof i83.RelationCardDetailDirective, typeof i82.RelationSelectorDialogComponent, typeof i103.TextareaFormInputComponent, typeof i104.RichTextFormInputComponent, typeof i105.JsonEditorFormInputComponent], [typeof i106.ClarityModule, typeof i107.CommonModule, typeof i108.FormsModule, typeof i108.ReactiveFormsModule, typeof i109.RouterModule, typeof i110.NgSelectModule, typeof i111.NgxPaginationModule, typeof i112.TranslateModule, typeof i113.OverlayModule, typeof i114.DragDropModule], [typeof i106.ClarityModule, typeof i107.CommonModule, typeof i108.FormsModule, typeof i108.ReactiveFormsModule, typeof i109.RouterModule, typeof i110.NgSelectModule, typeof i111.NgxPaginationModule, typeof i112.TranslateModule, typeof i113.OverlayModule, typeof i114.DragDropModule, typeof i1.ActionBarComponent, typeof i1.ActionBarLeftComponent, typeof i1.ActionBarRightComponent, typeof i2.AssetPreviewComponent, typeof i3.AssetPreviewDialogComponent, typeof i4.AssetSearchInputComponent, typeof i5.ConfigurableInputComponent, typeof i6.AffixedInputComponent, typeof i7.ChipComponent, typeof i8.CurrencyInputComponent, typeof i9.LocaleCurrencyNamePipe, typeof i10.CustomerLabelComponent, typeof i11.CustomFieldControlComponent, typeof i12.DataTableComponent, typeof i13.DataTableColumnComponent, typeof i14.FacetValueSelectorComponent, typeof i15.ItemsPerPageControlsComponent, typeof i16.PaginationControlsComponent, typeof i17.TableRowActionComponent, typeof i18.FacetValueChipComponent, typeof i19.FileSizePipe, typeof i20.FormFieldComponent, typeof i21.FormFieldControlDirective, typeof i22.FormItemComponent, typeof i23.ModalDialogComponent, typeof i24.PercentageSuffixInputComponent, typeof i25.DialogComponentOutletComponent, typeof i26.DialogButtonsDirective, typeof i27.DialogTitleDirective, typeof i28.SelectToggleComponent, typeof i29.LanguageSelectorComponent, typeof i30.RichTextEditorComponent, typeof i31.SimpleDialogComponent, typeof i32.TitleInputComponent, typeof i33.SentenceCasePipe, typeof i34.DropdownComponent, typeof i35.DropdownMenuComponent, typeof i36.SortPipe, typeof i37.DropdownTriggerDirective, typeof i38.DropdownItemDirective, typeof i39.OrderStateLabelComponent, typeof i40.FormattedAddressComponent, typeof i41.LabeledDataComponent, typeof i42.StringToColorPipe, typeof i43.ObjectTreeComponent, typeof i44.IfPermissionsDirective, typeof i45.IfMultichannelDirective, typeof i46.HasPermissionPipe, typeof i47.ActionBarItemsComponent, typeof i48.DisabledDirective, typeof i49.AssetFileInputComponent, typeof i50.AssetGalleryComponent, typeof i51.AssetPickerDialogComponent, typeof i52.EntityInfoComponent, typeof i53.DatetimePickerComponent, typeof i54.ChannelBadgeComponent, typeof i55.ChannelAssignmentControlComponent, typeof i56.ChannelLabelPipe, typeof i57.IfDefaultChannelActiveDirective, typeof i58.ExtensionHostComponent, typeof i59.CustomFieldLabelPipe, typeof i60.FocalPointControlComponent, typeof i61.AssetPreviewPipe, typeof i62.LinkDialogComponent, typeof i63.ExternalImageDialogComponent, typeof i64.TimeAgoPipe, typeof i65.DurationPipe, typeof i66.EmptyPlaceholderComponent, typeof i67.TimelineEntryComponent, typeof i68.HistoryEntryDetailComponent, typeof i69.EditNoteDialogComponent, typeof i70.ProductSelectorFormInputComponent, typeof i71.StateI18nTokenPipe, typeof i72.ProductSelectorComponent, typeof i73.HelpTooltipComponent, typeof i74.CustomerGroupFormInputComponent, typeof i75.AddressFormComponent, typeof i76.LocaleDatePipe, typeof i77.LocaleCurrencyPipe, typeof i78.LocaleLanguageNamePipe, typeof i79.LocaleRegionNamePipe, typeof i80.TagSelectorComponent, typeof i81.ManageTagsDialogComponent, typeof i82.RelationSelectorDialogComponent, typeof i83.RelationCardComponent, typeof i84.StatusBadgeComponent, typeof i85.TabbedCustomFieldsComponent, typeof i86.UiExtensionPointComponent, typeof i87.CustomDetailComponentHostComponent, typeof i88.AssetPreviewLinksComponent, typeof i89.TextFormInputComponent, typeof i90.PasswordFormInputComponent, typeof i91.NumberFormInputComponent, typeof i92.DateFormInputComponent, typeof i93.CurrencyFormInputComponent, typeof i94.BooleanFormInputComponent, typeof i95.SelectFormInputComponent, typeof i96.FacetValueFormInputComponent, typeof i97.DynamicFormInputComponent, typeof i98.RelationFormInputComponent, typeof i99.RelationAssetInputComponent, typeof i100.RelationProductInputComponent, typeof i101.RelationProductVariantInputComponent, typeof i102.RelationCustomerInputComponent, typeof i83.RelationCardPreviewDirective, typeof i83.RelationCardDetailDirective, typeof i82.RelationSelectorDialogComponent, typeof i103.TextareaFormInputComponent, typeof i104.RichTextFormInputComponent, typeof i105.JsonEditorFormInputComponent]>;
122
+ static ɵmod: i0.ɵɵNgModuleDeclaration<SharedModule, [typeof i1.ActionBarComponent, typeof i1.ActionBarLeftComponent, typeof i1.ActionBarRightComponent, typeof i2.AssetPreviewComponent, typeof i3.AssetPreviewDialogComponent, typeof i4.AssetSearchInputComponent, typeof i5.ConfigurableInputComponent, typeof i6.AffixedInputComponent, typeof i7.ChipComponent, typeof i8.CurrencyInputComponent, typeof i9.LocaleCurrencyNamePipe, typeof i10.CustomerLabelComponent, typeof i11.CustomFieldControlComponent, typeof i12.DataTableComponent, typeof i13.DataTableColumnComponent, typeof i14.FacetValueSelectorComponent, typeof i15.ItemsPerPageControlsComponent, typeof i16.PaginationControlsComponent, typeof i17.TableRowActionComponent, typeof i18.FacetValueChipComponent, typeof i19.FileSizePipe, typeof i20.FormFieldComponent, typeof i21.FormFieldControlDirective, typeof i22.FormItemComponent, typeof i23.ModalDialogComponent, typeof i24.PercentageSuffixInputComponent, typeof i25.DialogComponentOutletComponent, typeof i26.DialogButtonsDirective, typeof i27.DialogTitleDirective, typeof i28.SelectToggleComponent, typeof i29.LanguageSelectorComponent, typeof i30.RichTextEditorComponent, typeof i31.SimpleDialogComponent, typeof i32.TitleInputComponent, typeof i33.SentenceCasePipe, typeof i34.DropdownComponent, typeof i35.DropdownMenuComponent, typeof i36.SortPipe, typeof i37.DropdownTriggerDirective, typeof i38.DropdownItemDirective, typeof i39.OrderStateLabelComponent, typeof i40.FormattedAddressComponent, typeof i41.LabeledDataComponent, typeof i42.StringToColorPipe, typeof i43.ObjectTreeComponent, typeof i44.IfPermissionsDirective, typeof i45.IfMultichannelDirective, typeof i46.HasPermissionPipe, typeof i47.ActionBarItemsComponent, typeof i48.DisabledDirective, typeof i49.AssetFileInputComponent, typeof i50.AssetGalleryComponent, typeof i51.AssetPickerDialogComponent, typeof i52.EntityInfoComponent, typeof i53.DatetimePickerComponent, typeof i54.ChannelBadgeComponent, typeof i55.ChannelAssignmentControlComponent, typeof i56.ChannelLabelPipe, typeof i57.IfDefaultChannelActiveDirective, typeof i58.ExtensionHostComponent, typeof i59.CustomFieldLabelPipe, typeof i60.FocalPointControlComponent, typeof i61.AssetPreviewPipe, typeof i62.LinkDialogComponent, typeof i63.ExternalImageDialogComponent, typeof i64.TimeAgoPipe, typeof i65.DurationPipe, typeof i66.EmptyPlaceholderComponent, typeof i67.TimelineEntryComponent, typeof i68.HistoryEntryDetailComponent, typeof i69.EditNoteDialogComponent, typeof i70.ProductSelectorFormInputComponent, typeof i71.StateI18nTokenPipe, typeof i72.ProductVariantSelectorComponent, typeof i73.HelpTooltipComponent, typeof i74.CustomerGroupFormInputComponent, typeof i75.AddressFormComponent, typeof i76.LocaleDatePipe, typeof i77.LocaleCurrencyPipe, typeof i78.LocaleLanguageNamePipe, typeof i79.LocaleRegionNamePipe, typeof i80.TagSelectorComponent, typeof i81.ManageTagsDialogComponent, typeof i82.RelationSelectorDialogComponent, typeof i83.RelationCardComponent, typeof i84.StatusBadgeComponent, typeof i85.TabbedCustomFieldsComponent, typeof i86.UiExtensionPointComponent, typeof i87.CustomDetailComponentHostComponent, typeof i88.AssetPreviewLinksComponent, typeof i89.TextFormInputComponent, typeof i90.PasswordFormInputComponent, typeof i91.NumberFormInputComponent, typeof i92.DateFormInputComponent, typeof i93.CurrencyFormInputComponent, typeof i94.BooleanFormInputComponent, typeof i95.SelectFormInputComponent, typeof i96.FacetValueFormInputComponent, typeof i97.DynamicFormInputComponent, typeof i98.RelationFormInputComponent, typeof i99.RelationAssetInputComponent, typeof i100.RelationProductInputComponent, typeof i101.RelationProductVariantInputComponent, typeof i102.RelationCustomerInputComponent, typeof i83.RelationCardPreviewDirective, typeof i83.RelationCardDetailDirective, typeof i82.RelationSelectorDialogComponent, typeof i103.RelationGenericInputComponent, typeof i104.TextareaFormInputComponent, typeof i105.RichTextFormInputComponent, typeof i106.JsonEditorFormInputComponent], [typeof i107.ClarityModule, typeof i108.CommonModule, typeof i109.FormsModule, typeof i109.ReactiveFormsModule, typeof i110.RouterModule, typeof i111.NgSelectModule, typeof i112.NgxPaginationModule, typeof i113.TranslateModule, typeof i114.OverlayModule, typeof i115.DragDropModule], [typeof i107.ClarityModule, typeof i108.CommonModule, typeof i109.FormsModule, typeof i109.ReactiveFormsModule, typeof i110.RouterModule, typeof i111.NgSelectModule, typeof i112.NgxPaginationModule, typeof i113.TranslateModule, typeof i114.OverlayModule, typeof i115.DragDropModule, typeof i1.ActionBarComponent, typeof i1.ActionBarLeftComponent, typeof i1.ActionBarRightComponent, typeof i2.AssetPreviewComponent, typeof i3.AssetPreviewDialogComponent, typeof i4.AssetSearchInputComponent, typeof i5.ConfigurableInputComponent, typeof i6.AffixedInputComponent, typeof i7.ChipComponent, typeof i8.CurrencyInputComponent, typeof i9.LocaleCurrencyNamePipe, typeof i10.CustomerLabelComponent, typeof i11.CustomFieldControlComponent, typeof i12.DataTableComponent, typeof i13.DataTableColumnComponent, typeof i14.FacetValueSelectorComponent, typeof i15.ItemsPerPageControlsComponent, typeof i16.PaginationControlsComponent, typeof i17.TableRowActionComponent, typeof i18.FacetValueChipComponent, typeof i19.FileSizePipe, typeof i20.FormFieldComponent, typeof i21.FormFieldControlDirective, typeof i22.FormItemComponent, typeof i23.ModalDialogComponent, typeof i24.PercentageSuffixInputComponent, typeof i25.DialogComponentOutletComponent, typeof i26.DialogButtonsDirective, typeof i27.DialogTitleDirective, typeof i28.SelectToggleComponent, typeof i29.LanguageSelectorComponent, typeof i30.RichTextEditorComponent, typeof i31.SimpleDialogComponent, typeof i32.TitleInputComponent, typeof i33.SentenceCasePipe, typeof i34.DropdownComponent, typeof i35.DropdownMenuComponent, typeof i36.SortPipe, typeof i37.DropdownTriggerDirective, typeof i38.DropdownItemDirective, typeof i39.OrderStateLabelComponent, typeof i40.FormattedAddressComponent, typeof i41.LabeledDataComponent, typeof i42.StringToColorPipe, typeof i43.ObjectTreeComponent, typeof i44.IfPermissionsDirective, typeof i45.IfMultichannelDirective, typeof i46.HasPermissionPipe, typeof i47.ActionBarItemsComponent, typeof i48.DisabledDirective, typeof i49.AssetFileInputComponent, typeof i50.AssetGalleryComponent, typeof i51.AssetPickerDialogComponent, typeof i52.EntityInfoComponent, typeof i53.DatetimePickerComponent, typeof i54.ChannelBadgeComponent, typeof i55.ChannelAssignmentControlComponent, typeof i56.ChannelLabelPipe, typeof i57.IfDefaultChannelActiveDirective, typeof i58.ExtensionHostComponent, typeof i59.CustomFieldLabelPipe, typeof i60.FocalPointControlComponent, typeof i61.AssetPreviewPipe, typeof i62.LinkDialogComponent, typeof i63.ExternalImageDialogComponent, typeof i64.TimeAgoPipe, typeof i65.DurationPipe, typeof i66.EmptyPlaceholderComponent, typeof i67.TimelineEntryComponent, typeof i68.HistoryEntryDetailComponent, typeof i69.EditNoteDialogComponent, typeof i70.ProductSelectorFormInputComponent, typeof i71.StateI18nTokenPipe, typeof i72.ProductVariantSelectorComponent, typeof i73.HelpTooltipComponent, typeof i74.CustomerGroupFormInputComponent, typeof i75.AddressFormComponent, typeof i76.LocaleDatePipe, typeof i77.LocaleCurrencyPipe, typeof i78.LocaleLanguageNamePipe, typeof i79.LocaleRegionNamePipe, typeof i80.TagSelectorComponent, typeof i81.ManageTagsDialogComponent, typeof i82.RelationSelectorDialogComponent, typeof i83.RelationCardComponent, typeof i84.StatusBadgeComponent, typeof i85.TabbedCustomFieldsComponent, typeof i86.UiExtensionPointComponent, typeof i87.CustomDetailComponentHostComponent, typeof i88.AssetPreviewLinksComponent, typeof i89.TextFormInputComponent, typeof i90.PasswordFormInputComponent, typeof i91.NumberFormInputComponent, typeof i92.DateFormInputComponent, typeof i93.CurrencyFormInputComponent, typeof i94.BooleanFormInputComponent, typeof i95.SelectFormInputComponent, typeof i96.FacetValueFormInputComponent, typeof i97.DynamicFormInputComponent, typeof i98.RelationFormInputComponent, typeof i99.RelationAssetInputComponent, typeof i100.RelationProductInputComponent, typeof i101.RelationProductVariantInputComponent, typeof i102.RelationCustomerInputComponent, typeof i83.RelationCardPreviewDirective, typeof i83.RelationCardDetailDirective, typeof i82.RelationSelectorDialogComponent, typeof i103.RelationGenericInputComponent, typeof i104.TextareaFormInputComponent, typeof i105.RichTextFormInputComponent, typeof i106.JsonEditorFormInputComponent]>;
122
123
  static ɵinj: i0.ɵɵInjectorDeclaration<SharedModule>;
123
124
  }
@@ -78,10 +78,10 @@ export class AssetsComponent {
78
78
  }
79
79
  }
80
80
  AssetsComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.2.3", ngImport: i0, type: AssetsComponent, deps: [{ token: i1.ModalService }, { token: i0.ChangeDetectorRef }], target: i0.ɵɵFactoryTarget.Component });
81
- AssetsComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "13.2.3", type: AssetsComponent, selector: "vdr-assets", inputs: { assetsSetter: ["assets", "assetsSetter"], featuredAsset: "featuredAsset", compact: "compact", updatePermissions: "updatePermissions" }, outputs: { change: "change" }, host: { properties: { "class.compact": "this.compact" } }, ngImport: i0, template: "<div class=\"card\" *ngIf=\"!compact; else compactView\">\r\n <div class=\"card-img\">\r\n <div class=\"featured-asset\">\r\n <img\r\n *ngIf=\"featuredAsset\"\r\n [src]=\"featuredAsset | assetPreview:'small'\"\r\n (click)=\"previewAsset(featuredAsset)\"\r\n />\r\n <div class=\"placeholder\" *ngIf=\"!featuredAsset\" (click)=\"selectAssets()\">\r\n <clr-icon shape=\"image\" size=\"128\"></clr-icon>\r\n <div>{{ 'catalog.no-featured-asset' | translate }}</div>\r\n </div>\r\n </div>\r\n </div>\r\n <div class=\"card-block\"><ng-container *ngTemplateOutlet=\"assetList\"></ng-container></div>\r\n <div class=\"card-footer\" *vdrIfPermissions=\"updatePermissions\">\r\n <button class=\"btn\" (click)=\"selectAssets()\">\r\n <clr-icon shape=\"attachment\"></clr-icon>\r\n {{ 'asset.add-asset' | translate }}\r\n </button>\r\n </div>\r\n</div>\r\n\r\n<ng-template #compactView>\r\n <div class=\"featured-asset compact\">\r\n <img\r\n *ngIf=\"featuredAsset\"\r\n [src]=\"featuredAsset | assetPreview:'thumb'\"\r\n (click)=\"previewAsset(featuredAsset)\"\r\n />\r\n\r\n <div class=\"placeholder\" *ngIf=\"!featuredAsset\" (click)=\"selectAssets()\"><clr-icon shape=\"image\" size=\"150\"></clr-icon></div>\r\n </div>\r\n <ng-container *ngTemplateOutlet=\"assetList\"></ng-container>\r\n <button\r\n *vdrIfPermissions=\"updatePermissions\"\r\n class=\"compact-select btn btn-icon btn-sm btn-block\"\r\n [title]=\"'asset.add-asset' | translate\"\r\n (click)=\"selectAssets()\"\r\n >\r\n <clr-icon shape=\"attachment\"></clr-icon>\r\n {{ 'asset.add-asset' | translate }}\r\n </button>\r\n</ng-template>\r\n\r\n<ng-template #assetList>\r\n <div class=\"all-assets\" [class.compact]=\"compact\" cdkDropListGroup>\r\n <div\r\n *ngFor=\"let asset of assets; let index = index\"\r\n class=\"drop-list\"\r\n cdkDropList\r\n cdkDropListOrientation=\"horizontal\"\r\n [cdkDropListData]=\"index\"\r\n [cdkDropListDisabled]=\"!(updatePermissions | hasPermission)\"\r\n (cdkDropListDropped)=\"dropListDropped($event)\"\r\n >\r\n <vdr-dropdown cdkDrag>\r\n <div\r\n class=\"asset-thumb\"\r\n vdrDropdownTrigger\r\n [class.featured]=\"isFeatured(asset)\"\r\n [title]=\"\"\r\n tabindex=\"0\"\r\n >\r\n <img [src]=\"asset | assetPreview:'tiny'\" />\r\n </div>\r\n <vdr-dropdown-menu vdrPosition=\"bottom-right\">\r\n <button type=\"button\" vdrDropdownItem (click)=\"previewAsset(asset)\">\r\n {{ 'asset.preview' | translate }}\r\n </button>\r\n <button\r\n type=\"button\"\r\n [disabled]=\"isFeatured(asset) || !(updatePermissions | hasPermission)\"\r\n vdrDropdownItem\r\n (click)=\"setAsFeatured(asset)\"\r\n >\r\n {{ 'asset.set-as-featured-asset' | translate }}\r\n </button>\r\n <div class=\"dropdown-divider\"></div>\r\n <button\r\n type=\"button\"\r\n class=\"remove-asset\"\r\n vdrDropdownItem\r\n [disabled]=\"!(updatePermissions | hasPermission)\"\r\n (click)=\"removeAsset(asset)\"\r\n >\r\n {{ 'asset.remove-asset' | translate }}\r\n </button>\r\n </vdr-dropdown-menu>\r\n </vdr-dropdown>\r\n </div>\r\n </div>\r\n</ng-template>\r\n", styles: [":host{width:340px;display:block}:host.compact{width:162px}.placeholder{text-align:center;color:var(--color-grey-300)}.featured-asset{text-align:center;background:var(--color-component-bg-200);padding:6px;cursor:pointer}.featured-asset.compact{width:100%;min-height:40px;position:relative;padding:6px}.featured-asset .compact-select{position:absolute;bottom:6px;right:6px;margin:0}.all-assets{display:flex;flex-wrap:wrap}.all-assets .drop-list{min-width:60px}.all-assets .asset-thumb{margin:3px;padding:0;border:2px solid var(--color-component-border-100);cursor:pointer}.all-assets .asset-thumb.featured{border-color:var(--color-primary-500)}.all-assets .remove-asset{color:var(--color-warning-500)}.all-assets.compact .drop-list{min-width:54px}.all-assets.compact .asset-thumb{margin:1px;border-width:1px}.all-assets.compact .cdk-drag-placeholder,.all-assets.compact .cdk-drag-placeholder .asset-thumb{width:50px}.cdk-drag-animating{transition:transform .25s cubic-bezier(0,0,.2,1)}.example-box:last-child{border:none}.all-assets.cdk-drop-list-dragging vdr-dropdown:not(.cdk-drag-placeholder){transition:transform .25s cubic-bezier(0,0,.2,1)}.cdk-drop-list-dragging>*:not(.cdk-drag-placeholder){display:none}\n"], components: [{ type: i1.DropdownComponent, selector: "vdr-dropdown", inputs: ["manualToggle"] }, { type: i1.DropdownMenuComponent, selector: "vdr-dropdown-menu", inputs: ["vdrPosition"] }], directives: [{ type: i2.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { type: i3.ClrIconCustomTag, selector: "clr-icon" }, { type: i2.NgTemplateOutlet, selector: "[ngTemplateOutlet]", inputs: ["ngTemplateOutletContext", "ngTemplateOutlet"] }, { type: i1.IfPermissionsDirective, selector: "[vdrIfPermissions]", inputs: ["vdrIfPermissions", "vdrIfPermissionsElse"] }, { type: i4.CdkDropListGroup, selector: "[cdkDropListGroup]", inputs: ["cdkDropListGroupDisabled"], exportAs: ["cdkDropListGroup"] }, { type: i2.NgForOf, selector: "[ngFor][ngForOf]", inputs: ["ngForOf", "ngForTrackBy", "ngForTemplate"] }, { type: i4.CdkDropList, selector: "[cdkDropList], cdk-drop-list", inputs: ["cdkDropListConnectedTo", "cdkDropListData", "cdkDropListOrientation", "id", "cdkDropListLockAxis", "cdkDropListDisabled", "cdkDropListSortingDisabled", "cdkDropListEnterPredicate", "cdkDropListSortPredicate", "cdkDropListAutoScrollDisabled", "cdkDropListAutoScrollStep"], outputs: ["cdkDropListDropped", "cdkDropListEntered", "cdkDropListExited", "cdkDropListSorted"], exportAs: ["cdkDropList"] }, { type: i4.CdkDrag, selector: "[cdkDrag]", inputs: ["cdkDragData", "cdkDragLockAxis", "cdkDragRootElement", "cdkDragBoundary", "cdkDragStartDelay", "cdkDragFreeDragPosition", "cdkDragDisabled", "cdkDragConstrainPosition", "cdkDragPreviewClass", "cdkDragPreviewContainer"], outputs: ["cdkDragStarted", "cdkDragReleased", "cdkDragEnded", "cdkDragEntered", "cdkDragExited", "cdkDragDropped", "cdkDragMoved"], exportAs: ["cdkDrag"] }, { type: i1.DropdownTriggerDirective, selector: "[vdrDropdownTrigger]" }, { type: i1.DropdownItemDirective, selector: "[vdrDropdownItem]" }], pipes: { "assetPreview": i1.AssetPreviewPipe, "translate": i5.TranslatePipe, "hasPermission": i1.HasPermissionPipe }, changeDetection: i0.ChangeDetectionStrategy.OnPush });
81
+ AssetsComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "13.2.3", type: AssetsComponent, selector: "vdr-assets", inputs: { assetsSetter: ["assets", "assetsSetter"], featuredAsset: "featuredAsset", compact: "compact", updatePermissions: "updatePermissions" }, outputs: { change: "change" }, host: { properties: { "class.compact": "this.compact" } }, ngImport: i0, template: "<div class=\"card\" *ngIf=\"!compact; else compactView\">\r\n <div class=\"card-img\">\r\n <div class=\"featured-asset\">\r\n <img\r\n *ngIf=\"featuredAsset\"\r\n [src]=\"featuredAsset | assetPreview:'small'\"\r\n (click)=\"previewAsset(featuredAsset)\"\r\n />\r\n <div class=\"placeholder\" *ngIf=\"!featuredAsset\" (click)=\"selectAssets()\">\r\n <clr-icon shape=\"image\" size=\"128\"></clr-icon>\r\n <div>{{ 'catalog.no-featured-asset' | translate }}</div>\r\n </div>\r\n </div>\r\n </div>\r\n <div class=\"card-block\"><ng-container *ngTemplateOutlet=\"assetList\"></ng-container></div>\r\n <div class=\"card-footer\" *vdrIfPermissions=\"updatePermissions\">\r\n <button class=\"btn\" (click)=\"selectAssets()\">\r\n <clr-icon shape=\"attachment\"></clr-icon>\r\n {{ 'asset.add-asset' | translate }}\r\n </button>\r\n </div>\r\n</div>\r\n\r\n<ng-template #compactView>\r\n <div class=\"featured-asset compact\">\r\n <img\r\n *ngIf=\"featuredAsset\"\r\n [src]=\"featuredAsset | assetPreview:'thumb'\"\r\n (click)=\"previewAsset(featuredAsset)\"\r\n />\r\n\r\n <div class=\"placeholder\" *ngIf=\"!featuredAsset\" (click)=\"selectAssets()\"><clr-icon shape=\"image\" size=\"150\"></clr-icon></div>\r\n </div>\r\n <ng-container *ngTemplateOutlet=\"assetList\"></ng-container>\r\n <button\r\n *vdrIfPermissions=\"updatePermissions\"\r\n class=\"compact-select btn btn-icon btn-sm btn-block\"\r\n [title]=\"'asset.add-asset' | translate\"\r\n (click)=\"selectAssets()\"\r\n >\r\n <clr-icon shape=\"attachment\"></clr-icon>\r\n {{ 'asset.add-asset' | translate }}\r\n </button>\r\n</ng-template>\r\n\r\n<ng-template #assetList>\r\n <div class=\"all-assets\" [class.compact]=\"compact\" cdkDropListGroup>\r\n <div\r\n *ngFor=\"let asset of assets; let index = index\"\r\n class=\"drop-list\"\r\n cdkDropList\r\n cdkDropListOrientation=\"horizontal\"\r\n [cdkDropListData]=\"index\"\r\n [cdkDropListDisabled]=\"!(updatePermissions | hasPermission)\"\r\n (cdkDropListDropped)=\"dropListDropped($event)\"\r\n >\r\n <vdr-dropdown cdkDrag>\r\n <div\r\n class=\"asset-thumb\"\r\n vdrDropdownTrigger\r\n [class.featured]=\"isFeatured(asset)\"\r\n [title]=\"\"\r\n tabindex=\"0\"\r\n >\r\n <img [src]=\"asset | assetPreview:'tiny'\" />\r\n </div>\r\n <vdr-dropdown-menu vdrPosition=\"bottom-right\">\r\n <button type=\"button\" vdrDropdownItem (click)=\"previewAsset(asset)\">\r\n {{ 'asset.preview' | translate }}\r\n </button>\r\n <button\r\n type=\"button\"\r\n [disabled]=\"isFeatured(asset) || !(updatePermissions | hasPermission)\"\r\n vdrDropdownItem\r\n (click)=\"setAsFeatured(asset)\"\r\n >\r\n {{ 'asset.set-as-featured-asset' | translate }}\r\n </button>\r\n <div class=\"dropdown-divider\"></div>\r\n <button\r\n type=\"button\"\r\n class=\"remove-asset\"\r\n vdrDropdownItem\r\n [disabled]=\"!(updatePermissions | hasPermission)\"\r\n (click)=\"removeAsset(asset)\"\r\n >\r\n {{ 'asset.remove-asset' | translate }}\r\n </button>\r\n </vdr-dropdown-menu>\r\n </vdr-dropdown>\r\n </div>\r\n </div>\r\n</ng-template>\r\n", styles: [":host{width:340px;display:block}:host.compact{width:162px}.placeholder{text-align:center;color:var(--color-grey-300)}.featured-asset{text-align:center;background:var(--color-component-bg-200);padding:6px;cursor:pointer}.featured-asset.compact{width:100%;min-height:40px;position:relative;padding:6px}.featured-asset .compact-select{position:absolute;bottom:6px;right:6px;margin:0}.all-assets{display:flex;flex-wrap:wrap}.all-assets .drop-list{min-width:60px}.all-assets .asset-thumb{margin:3px;padding:0;border:2px solid var(--color-component-border-100);cursor:pointer}.all-assets .asset-thumb img{width:50px;height:50px}.all-assets .asset-thumb.featured{border-color:var(--color-primary-500)}.all-assets .remove-asset{color:var(--color-warning-500)}.all-assets.compact .drop-list{min-width:54px}.all-assets.compact .asset-thumb{margin:1px;border-width:1px}.all-assets.compact .cdk-drag-placeholder,.all-assets.compact .cdk-drag-placeholder .asset-thumb{width:50px}.cdk-drag-animating{transition:transform .25s cubic-bezier(0,0,.2,1)}.example-box:last-child{border:none}.all-assets.cdk-drop-list-dragging vdr-dropdown:not(.cdk-drag-placeholder){transition:transform .25s cubic-bezier(0,0,.2,1)}.cdk-drop-list-dragging>*:not(.cdk-drag-placeholder){display:none}\n"], components: [{ type: i1.DropdownComponent, selector: "vdr-dropdown", inputs: ["manualToggle"] }, { type: i1.DropdownMenuComponent, selector: "vdr-dropdown-menu", inputs: ["vdrPosition"] }], directives: [{ type: i2.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { type: i3.ClrIconCustomTag, selector: "clr-icon" }, { type: i2.NgTemplateOutlet, selector: "[ngTemplateOutlet]", inputs: ["ngTemplateOutletContext", "ngTemplateOutlet"] }, { type: i1.IfPermissionsDirective, selector: "[vdrIfPermissions]", inputs: ["vdrIfPermissions", "vdrIfPermissionsElse"] }, { type: i4.CdkDropListGroup, selector: "[cdkDropListGroup]", inputs: ["cdkDropListGroupDisabled"], exportAs: ["cdkDropListGroup"] }, { type: i2.NgForOf, selector: "[ngFor][ngForOf]", inputs: ["ngForOf", "ngForTrackBy", "ngForTemplate"] }, { type: i4.CdkDropList, selector: "[cdkDropList], cdk-drop-list", inputs: ["cdkDropListConnectedTo", "cdkDropListData", "cdkDropListOrientation", "id", "cdkDropListLockAxis", "cdkDropListDisabled", "cdkDropListSortingDisabled", "cdkDropListEnterPredicate", "cdkDropListSortPredicate", "cdkDropListAutoScrollDisabled", "cdkDropListAutoScrollStep"], outputs: ["cdkDropListDropped", "cdkDropListEntered", "cdkDropListExited", "cdkDropListSorted"], exportAs: ["cdkDropList"] }, { type: i4.CdkDrag, selector: "[cdkDrag]", inputs: ["cdkDragData", "cdkDragLockAxis", "cdkDragRootElement", "cdkDragBoundary", "cdkDragStartDelay", "cdkDragFreeDragPosition", "cdkDragDisabled", "cdkDragConstrainPosition", "cdkDragPreviewClass", "cdkDragPreviewContainer"], outputs: ["cdkDragStarted", "cdkDragReleased", "cdkDragEnded", "cdkDragEntered", "cdkDragExited", "cdkDragDropped", "cdkDragMoved"], exportAs: ["cdkDrag"] }, { type: i1.DropdownTriggerDirective, selector: "[vdrDropdownTrigger]" }, { type: i1.DropdownItemDirective, selector: "[vdrDropdownItem]" }], pipes: { "assetPreview": i1.AssetPreviewPipe, "translate": i5.TranslatePipe, "hasPermission": i1.HasPermissionPipe }, changeDetection: i0.ChangeDetectionStrategy.OnPush });
82
82
  i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.2.3", ngImport: i0, type: AssetsComponent, decorators: [{
83
83
  type: Component,
84
- args: [{ selector: 'vdr-assets', changeDetection: ChangeDetectionStrategy.OnPush, template: "<div class=\"card\" *ngIf=\"!compact; else compactView\">\r\n <div class=\"card-img\">\r\n <div class=\"featured-asset\">\r\n <img\r\n *ngIf=\"featuredAsset\"\r\n [src]=\"featuredAsset | assetPreview:'small'\"\r\n (click)=\"previewAsset(featuredAsset)\"\r\n />\r\n <div class=\"placeholder\" *ngIf=\"!featuredAsset\" (click)=\"selectAssets()\">\r\n <clr-icon shape=\"image\" size=\"128\"></clr-icon>\r\n <div>{{ 'catalog.no-featured-asset' | translate }}</div>\r\n </div>\r\n </div>\r\n </div>\r\n <div class=\"card-block\"><ng-container *ngTemplateOutlet=\"assetList\"></ng-container></div>\r\n <div class=\"card-footer\" *vdrIfPermissions=\"updatePermissions\">\r\n <button class=\"btn\" (click)=\"selectAssets()\">\r\n <clr-icon shape=\"attachment\"></clr-icon>\r\n {{ 'asset.add-asset' | translate }}\r\n </button>\r\n </div>\r\n</div>\r\n\r\n<ng-template #compactView>\r\n <div class=\"featured-asset compact\">\r\n <img\r\n *ngIf=\"featuredAsset\"\r\n [src]=\"featuredAsset | assetPreview:'thumb'\"\r\n (click)=\"previewAsset(featuredAsset)\"\r\n />\r\n\r\n <div class=\"placeholder\" *ngIf=\"!featuredAsset\" (click)=\"selectAssets()\"><clr-icon shape=\"image\" size=\"150\"></clr-icon></div>\r\n </div>\r\n <ng-container *ngTemplateOutlet=\"assetList\"></ng-container>\r\n <button\r\n *vdrIfPermissions=\"updatePermissions\"\r\n class=\"compact-select btn btn-icon btn-sm btn-block\"\r\n [title]=\"'asset.add-asset' | translate\"\r\n (click)=\"selectAssets()\"\r\n >\r\n <clr-icon shape=\"attachment\"></clr-icon>\r\n {{ 'asset.add-asset' | translate }}\r\n </button>\r\n</ng-template>\r\n\r\n<ng-template #assetList>\r\n <div class=\"all-assets\" [class.compact]=\"compact\" cdkDropListGroup>\r\n <div\r\n *ngFor=\"let asset of assets; let index = index\"\r\n class=\"drop-list\"\r\n cdkDropList\r\n cdkDropListOrientation=\"horizontal\"\r\n [cdkDropListData]=\"index\"\r\n [cdkDropListDisabled]=\"!(updatePermissions | hasPermission)\"\r\n (cdkDropListDropped)=\"dropListDropped($event)\"\r\n >\r\n <vdr-dropdown cdkDrag>\r\n <div\r\n class=\"asset-thumb\"\r\n vdrDropdownTrigger\r\n [class.featured]=\"isFeatured(asset)\"\r\n [title]=\"\"\r\n tabindex=\"0\"\r\n >\r\n <img [src]=\"asset | assetPreview:'tiny'\" />\r\n </div>\r\n <vdr-dropdown-menu vdrPosition=\"bottom-right\">\r\n <button type=\"button\" vdrDropdownItem (click)=\"previewAsset(asset)\">\r\n {{ 'asset.preview' | translate }}\r\n </button>\r\n <button\r\n type=\"button\"\r\n [disabled]=\"isFeatured(asset) || !(updatePermissions | hasPermission)\"\r\n vdrDropdownItem\r\n (click)=\"setAsFeatured(asset)\"\r\n >\r\n {{ 'asset.set-as-featured-asset' | translate }}\r\n </button>\r\n <div class=\"dropdown-divider\"></div>\r\n <button\r\n type=\"button\"\r\n class=\"remove-asset\"\r\n vdrDropdownItem\r\n [disabled]=\"!(updatePermissions | hasPermission)\"\r\n (click)=\"removeAsset(asset)\"\r\n >\r\n {{ 'asset.remove-asset' | translate }}\r\n </button>\r\n </vdr-dropdown-menu>\r\n </vdr-dropdown>\r\n </div>\r\n </div>\r\n</ng-template>\r\n", styles: [":host{width:340px;display:block}:host.compact{width:162px}.placeholder{text-align:center;color:var(--color-grey-300)}.featured-asset{text-align:center;background:var(--color-component-bg-200);padding:6px;cursor:pointer}.featured-asset.compact{width:100%;min-height:40px;position:relative;padding:6px}.featured-asset .compact-select{position:absolute;bottom:6px;right:6px;margin:0}.all-assets{display:flex;flex-wrap:wrap}.all-assets .drop-list{min-width:60px}.all-assets .asset-thumb{margin:3px;padding:0;border:2px solid var(--color-component-border-100);cursor:pointer}.all-assets .asset-thumb.featured{border-color:var(--color-primary-500)}.all-assets .remove-asset{color:var(--color-warning-500)}.all-assets.compact .drop-list{min-width:54px}.all-assets.compact .asset-thumb{margin:1px;border-width:1px}.all-assets.compact .cdk-drag-placeholder,.all-assets.compact .cdk-drag-placeholder .asset-thumb{width:50px}.cdk-drag-animating{transition:transform .25s cubic-bezier(0,0,.2,1)}.example-box:last-child{border:none}.all-assets.cdk-drop-list-dragging vdr-dropdown:not(.cdk-drag-placeholder){transition:transform .25s cubic-bezier(0,0,.2,1)}.cdk-drop-list-dragging>*:not(.cdk-drag-placeholder){display:none}\n"] }]
84
+ args: [{ selector: 'vdr-assets', changeDetection: ChangeDetectionStrategy.OnPush, template: "<div class=\"card\" *ngIf=\"!compact; else compactView\">\r\n <div class=\"card-img\">\r\n <div class=\"featured-asset\">\r\n <img\r\n *ngIf=\"featuredAsset\"\r\n [src]=\"featuredAsset | assetPreview:'small'\"\r\n (click)=\"previewAsset(featuredAsset)\"\r\n />\r\n <div class=\"placeholder\" *ngIf=\"!featuredAsset\" (click)=\"selectAssets()\">\r\n <clr-icon shape=\"image\" size=\"128\"></clr-icon>\r\n <div>{{ 'catalog.no-featured-asset' | translate }}</div>\r\n </div>\r\n </div>\r\n </div>\r\n <div class=\"card-block\"><ng-container *ngTemplateOutlet=\"assetList\"></ng-container></div>\r\n <div class=\"card-footer\" *vdrIfPermissions=\"updatePermissions\">\r\n <button class=\"btn\" (click)=\"selectAssets()\">\r\n <clr-icon shape=\"attachment\"></clr-icon>\r\n {{ 'asset.add-asset' | translate }}\r\n </button>\r\n </div>\r\n</div>\r\n\r\n<ng-template #compactView>\r\n <div class=\"featured-asset compact\">\r\n <img\r\n *ngIf=\"featuredAsset\"\r\n [src]=\"featuredAsset | assetPreview:'thumb'\"\r\n (click)=\"previewAsset(featuredAsset)\"\r\n />\r\n\r\n <div class=\"placeholder\" *ngIf=\"!featuredAsset\" (click)=\"selectAssets()\"><clr-icon shape=\"image\" size=\"150\"></clr-icon></div>\r\n </div>\r\n <ng-container *ngTemplateOutlet=\"assetList\"></ng-container>\r\n <button\r\n *vdrIfPermissions=\"updatePermissions\"\r\n class=\"compact-select btn btn-icon btn-sm btn-block\"\r\n [title]=\"'asset.add-asset' | translate\"\r\n (click)=\"selectAssets()\"\r\n >\r\n <clr-icon shape=\"attachment\"></clr-icon>\r\n {{ 'asset.add-asset' | translate }}\r\n </button>\r\n</ng-template>\r\n\r\n<ng-template #assetList>\r\n <div class=\"all-assets\" [class.compact]=\"compact\" cdkDropListGroup>\r\n <div\r\n *ngFor=\"let asset of assets; let index = index\"\r\n class=\"drop-list\"\r\n cdkDropList\r\n cdkDropListOrientation=\"horizontal\"\r\n [cdkDropListData]=\"index\"\r\n [cdkDropListDisabled]=\"!(updatePermissions | hasPermission)\"\r\n (cdkDropListDropped)=\"dropListDropped($event)\"\r\n >\r\n <vdr-dropdown cdkDrag>\r\n <div\r\n class=\"asset-thumb\"\r\n vdrDropdownTrigger\r\n [class.featured]=\"isFeatured(asset)\"\r\n [title]=\"\"\r\n tabindex=\"0\"\r\n >\r\n <img [src]=\"asset | assetPreview:'tiny'\" />\r\n </div>\r\n <vdr-dropdown-menu vdrPosition=\"bottom-right\">\r\n <button type=\"button\" vdrDropdownItem (click)=\"previewAsset(asset)\">\r\n {{ 'asset.preview' | translate }}\r\n </button>\r\n <button\r\n type=\"button\"\r\n [disabled]=\"isFeatured(asset) || !(updatePermissions | hasPermission)\"\r\n vdrDropdownItem\r\n (click)=\"setAsFeatured(asset)\"\r\n >\r\n {{ 'asset.set-as-featured-asset' | translate }}\r\n </button>\r\n <div class=\"dropdown-divider\"></div>\r\n <button\r\n type=\"button\"\r\n class=\"remove-asset\"\r\n vdrDropdownItem\r\n [disabled]=\"!(updatePermissions | hasPermission)\"\r\n (click)=\"removeAsset(asset)\"\r\n >\r\n {{ 'asset.remove-asset' | translate }}\r\n </button>\r\n </vdr-dropdown-menu>\r\n </vdr-dropdown>\r\n </div>\r\n </div>\r\n</ng-template>\r\n", styles: [":host{width:340px;display:block}:host.compact{width:162px}.placeholder{text-align:center;color:var(--color-grey-300)}.featured-asset{text-align:center;background:var(--color-component-bg-200);padding:6px;cursor:pointer}.featured-asset.compact{width:100%;min-height:40px;position:relative;padding:6px}.featured-asset .compact-select{position:absolute;bottom:6px;right:6px;margin:0}.all-assets{display:flex;flex-wrap:wrap}.all-assets .drop-list{min-width:60px}.all-assets .asset-thumb{margin:3px;padding:0;border:2px solid var(--color-component-border-100);cursor:pointer}.all-assets .asset-thumb img{width:50px;height:50px}.all-assets .asset-thumb.featured{border-color:var(--color-primary-500)}.all-assets .remove-asset{color:var(--color-warning-500)}.all-assets.compact .drop-list{min-width:54px}.all-assets.compact .asset-thumb{margin:1px;border-width:1px}.all-assets.compact .cdk-drag-placeholder,.all-assets.compact .cdk-drag-placeholder .asset-thumb{width:50px}.cdk-drag-animating{transition:transform .25s cubic-bezier(0,0,.2,1)}.example-box:last-child{border:none}.all-assets.cdk-drop-list-dragging vdr-dropdown:not(.cdk-drag-placeholder){transition:transform .25s cubic-bezier(0,0,.2,1)}.cdk-drop-list-dragging>*:not(.cdk-drag-placeholder){display:none}\n"] }]
85
85
  }], ctorParameters: function () { return [{ type: i1.ModalService }, { type: i0.ChangeDetectorRef }]; }, propDecorators: { assetsSetter: [{
86
86
  type: Input,
87
87
  args: ['assets']
@@ -1,7 +1,7 @@
1
1
  import { ChangeDetectionStrategy, Component, ContentChild, Input, TemplateRef, } from '@angular/core';
2
2
  import { FormControl } from '@angular/forms';
3
3
  import { BehaviorSubject, combineLatest, of, Subject } from 'rxjs';
4
- import { debounceTime, distinctUntilChanged, map, startWith, switchMap, takeUntil, tap, } from 'rxjs/operators';
4
+ import { catchError, debounceTime, distinctUntilChanged, filter, finalize, map, startWith, switchMap, takeUntil, tap, } from 'rxjs/operators';
5
5
  import * as i0 from "@angular/core";
6
6
  import * as i1 from "@angular/router";
7
7
  import * as i2 from "@vendure/admin-ui/core";
@@ -13,34 +13,64 @@ export class CollectionContentsComponent {
13
13
  this.route = route;
14
14
  this.router = router;
15
15
  this.dataService = dataService;
16
+ this.previewUpdatedFilters = false;
16
17
  this.filterTermControl = new FormControl('');
18
+ this.isLoading = false;
17
19
  this.collectionIdChange$ = new BehaviorSubject('');
20
+ this.parentIdChange$ = new BehaviorSubject('');
21
+ this.filterChanges$ = new BehaviorSubject([]);
18
22
  this.refresh$ = new BehaviorSubject(true);
19
23
  this.destroy$ = new Subject();
20
24
  }
21
25
  ngOnInit() {
22
- this.contentsCurrentPage$ = this.route.paramMap.pipe(map(qpm => qpm.get('contentsPage')), map(page => (!page ? 1 : +page)), startWith(1), distinctUntilChanged());
23
- this.contentsItemsPerPage$ = this.route.paramMap.pipe(map(qpm => qpm.get('contentsPerPage')), map(perPage => (!perPage ? 10 : +perPage)), startWith(10), distinctUntilChanged());
26
+ this.contentsCurrentPage$ = this.route.queryParamMap.pipe(map(qpm => qpm.get('contentsPage')), map(page => (!page ? 1 : +page)), startWith(1), distinctUntilChanged());
27
+ this.contentsItemsPerPage$ = this.route.queryParamMap.pipe(map(qpm => qpm.get('contentsPerPage')), map(perPage => (!perPage ? 10 : +perPage)), startWith(10), distinctUntilChanged());
24
28
  const filterTerm$ = this.filterTermControl.valueChanges.pipe(debounceTime(250), tap(() => this.setContentsPageNumber(1)), startWith(''));
25
- const collection$ = combineLatest(this.collectionIdChange$, this.contentsCurrentPage$, this.contentsItemsPerPage$, filterTerm$, this.refresh$).pipe(takeUntil(this.destroy$), switchMap(([id, currentPage, itemsPerPage, filterTerm]) => {
29
+ const filterChanges$ = this.filterChanges$.asObservable().pipe(filter(() => this.previewUpdatedFilters), tap(() => this.setContentsPageNumber(1)), startWith([]));
30
+ const fetchUpdate$ = combineLatest(this.collectionIdChange$, this.parentIdChange$, this.contentsCurrentPage$, this.contentsItemsPerPage$, filterTerm$, filterChanges$, this.refresh$);
31
+ const collection$ = fetchUpdate$.pipe(takeUntil(this.destroy$), tap(() => (this.isLoading = true)), debounceTime(50), switchMap(([id, parentId, currentPage, itemsPerPage, filterTerm, filters]) => {
26
32
  const take = itemsPerPage;
27
33
  const skip = (currentPage - 1) * itemsPerPage;
28
- if (id) {
34
+ if (filters.length && this.previewUpdatedFilters) {
35
+ const filterClause = filterTerm
36
+ ? { name: { contains: filterTerm } }
37
+ : undefined;
38
+ return this.dataService.collection
39
+ .previewCollectionVariants({
40
+ parentId,
41
+ filters,
42
+ }, {
43
+ take,
44
+ skip,
45
+ filter: filterClause,
46
+ })
47
+ .mapSingle(data => data.previewCollectionVariants)
48
+ .pipe(catchError(() => of({ items: [], totalItems: 0 })));
49
+ }
50
+ else if (id) {
29
51
  return this.dataService.collection
30
52
  .getCollectionContents(id, take, skip, filterTerm)
31
- .mapSingle(data => data.collection);
53
+ .mapSingle(data => data.collection?.productVariants);
32
54
  }
33
55
  else {
34
56
  return of(null);
35
57
  }
36
- }));
37
- this.contents$ = collection$.pipe(map(result => (result ? result.productVariants.items : [])));
38
- this.contentsTotalItems$ = collection$.pipe(map(result => (result ? result.productVariants.totalItems : 0)));
58
+ }), tap(() => (this.isLoading = false)), finalize(() => (this.isLoading = false)));
59
+ this.contents$ = collection$.pipe(map(result => (result ? result.items : [])));
60
+ this.contentsTotalItems$ = collection$.pipe(map(result => (result ? result.totalItems : 0)));
39
61
  }
40
62
  ngOnChanges(changes) {
41
63
  if ('collectionId' in changes) {
42
64
  this.collectionIdChange$.next(changes.collectionId.currentValue);
43
65
  }
66
+ if ('parentId' in changes) {
67
+ this.parentIdChange$.next(changes.parentId.currentValue);
68
+ }
69
+ if ('updatedFilters' in changes) {
70
+ if (this.updatedFilters) {
71
+ this.filterChanges$.next(this.updatedFilters);
72
+ }
73
+ }
44
74
  }
45
75
  ngOnDestroy() {
46
76
  this.destroy$.next();
@@ -56,21 +86,31 @@ export class CollectionContentsComponent {
56
86
  this.refresh$.next(true);
57
87
  }
58
88
  setParam(key, value) {
59
- this.router.navigate(['./', { ...this.route.snapshot.params, [key]: value }], {
89
+ this.router.navigate(['./'], {
60
90
  relativeTo: this.route,
91
+ queryParams: {
92
+ [key]: value,
93
+ },
61
94
  queryParamsHandling: 'merge',
95
+ replaceUrl: true,
62
96
  });
63
97
  }
64
98
  }
65
99
  CollectionContentsComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.2.3", ngImport: i0, type: CollectionContentsComponent, deps: [{ token: i1.ActivatedRoute }, { token: i1.Router }, { token: i2.DataService }], target: i0.ɵɵFactoryTarget.Component });
66
- CollectionContentsComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "13.2.3", type: CollectionContentsComponent, selector: "vdr-collection-contents", inputs: { collectionId: "collectionId" }, queries: [{ propertyName: "headerTemplate", first: true, predicate: TemplateRef, descendants: true, static: true }], usesOnChanges: true, ngImport: i0, template: "<div class=\"contents-header\">\r\n <div class=\"header-title-row\">\r\n <ng-container\r\n *ngTemplateOutlet=\"headerTemplate; context: { $implicit: contentsTotalItems$ | async }\"\r\n ></ng-container>\r\n </div>\r\n <input\r\n type=\"text\"\r\n [placeholder]=\"'catalog.filter-by-name' | translate\"\r\n [formControl]=\"filterTermControl\"\r\n />\r\n</div>\r\n<vdr-data-table\r\n [items]=\"contents$ | async\"\r\n [itemsPerPage]=\"contentsItemsPerPage$ | async\"\r\n [totalItems]=\"contentsTotalItems$ | async\"\r\n [currentPage]=\"contentsCurrentPage$ | async\"\r\n (pageChange)=\"setContentsPageNumber($event)\"\r\n (itemsPerPageChange)=\"setContentsItemsPerPage($event)\"\r\n>\r\n <ng-template let-variant=\"item\">\r\n <td class=\"left align-middle\">{{ variant.name }}</td>\r\n <td class=\"right align-middle\">\r\n <vdr-table-row-action\r\n iconShape=\"edit\"\r\n [label]=\"'common.edit' | translate\"\r\n [linkTo]=\"['/catalog/products', variant.productId, { tab: 'variants' }]\"\r\n ></vdr-table-row-action>\r\n </td>\r\n </ng-template>\r\n</vdr-data-table>\r\n", styles: [".contents-header{background-color:var(--color-component-bg-100);position:sticky;top:0;padding:6px;z-index:1;border-bottom:1px solid var(--color-component-border-200)}.contents-header .header-title-row{display:flex;justify-content:space-between;align-items:center}.contents-header .clr-input{width:100%}:host ::ng-deep table{margin-top:-1px}\n"], components: [{ type: i2.DataTableComponent, selector: "vdr-data-table", inputs: ["items", "itemsPerPage", "currentPage", "totalItems", "allSelected", "isRowSelectedFn", "emptyStateLabel"], outputs: ["allSelectChange", "rowSelectChange", "pageChange", "itemsPerPageChange"] }, { type: i2.TableRowActionComponent, selector: "vdr-table-row-action", inputs: ["linkTo", "label", "iconShape", "disabled"] }], directives: [{ type: i3.NgTemplateOutlet, selector: "[ngTemplateOutlet]", inputs: ["ngTemplateOutletContext", "ngTemplateOutlet"] }, { type: i2.FormFieldControlDirective, selector: "input, textarea, select" }, { type: i4.DefaultValueAccessor, selector: "input:not([type=checkbox])[formControlName],textarea[formControlName],input:not([type=checkbox])[formControl],textarea[formControl],input:not([type=checkbox])[ngModel],textarea[ngModel],[ngDefaultControl]" }, { type: i4.NgControlStatus, selector: "[formControlName],[ngModel],[formControl]" }, { type: i4.FormControlDirective, selector: "[formControl]", inputs: ["formControl", "disabled", "ngModel"], outputs: ["ngModelChange"], exportAs: ["ngForm"] }], pipes: { "async": i3.AsyncPipe, "translate": i5.TranslatePipe }, changeDetection: i0.ChangeDetectionStrategy.OnPush });
100
+ CollectionContentsComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "13.2.3", type: CollectionContentsComponent, selector: "vdr-collection-contents", inputs: { collectionId: "collectionId", parentId: "parentId", updatedFilters: "updatedFilters", previewUpdatedFilters: "previewUpdatedFilters" }, queries: [{ propertyName: "headerTemplate", first: true, predicate: TemplateRef, descendants: true, static: true }], usesOnChanges: true, ngImport: i0, template: "<div class=\"contents-header\">\r\n <div class=\"header-title-row\">\r\n <ng-container\r\n *ngTemplateOutlet=\"headerTemplate; context: { $implicit: contentsTotalItems$ | async }\"\r\n ></ng-container>\r\n </div>\r\n <input\r\n type=\"text\"\r\n [placeholder]=\"'catalog.filter-by-name' | translate\"\r\n [formControl]=\"filterTermControl\"\r\n />\r\n</div>\r\n<div class=\"table-wrapper\">\r\n <div class=\"progress loop\" [class.visible]=\"isLoading\"></div>\r\n <vdr-data-table\r\n [class.loading]=\"isLoading\"\r\n [items]=\"contents$ | async\"\r\n [itemsPerPage]=\"contentsItemsPerPage$ | async\"\r\n [totalItems]=\"contentsTotalItems$ | async\"\r\n [currentPage]=\"contentsCurrentPage$ | async\"\r\n (pageChange)=\"setContentsPageNumber($event)\"\r\n (itemsPerPageChange)=\"setContentsItemsPerPage($event)\"\r\n >\r\n <ng-template let-variant=\"item\">\r\n <td class=\"left align-middle\">{{ variant.name }}</td>\r\n <td class=\"left align-middle\"><small class=\"sku\">{{ variant.sku }}</small></td>\r\n <td class=\"right align-middle\">\r\n <vdr-table-row-action\r\n iconShape=\"edit\"\r\n [label]=\"'common.edit' | translate\"\r\n [linkTo]=\"['/catalog/products', variant.productId, { tab: 'variants' }]\"\r\n ></vdr-table-row-action>\r\n </td>\r\n </ng-template>\r\n </vdr-data-table>\r\n</div>\r\n", styles: [".contents-header{background-color:var(--color-component-bg-100);position:sticky;top:0;padding:6px;z-index:1;border-bottom:1px solid var(--color-component-border-200)}.contents-header .header-title-row{display:flex;justify-content:space-between;align-items:center}.contents-header .clr-input{width:100%}:host{display:block}:host ::ng-deep table{margin-top:-1px}vdr-data-table{opacity:1;transition:opacity .3s}vdr-data-table.loading{opacity:.5}.table-wrapper{position:relative}.progress{position:absolute;top:0;left:0;overflow:hidden;height:6px;opacity:0;transition:opacity .1s}.progress.visible{opacity:1}.sku{color:var(--color-text-200)}\n"], components: [{ type: i2.DataTableComponent, selector: "vdr-data-table", inputs: ["items", "itemsPerPage", "currentPage", "totalItems", "allSelected", "isRowSelectedFn", "emptyStateLabel"], outputs: ["allSelectChange", "rowSelectChange", "pageChange", "itemsPerPageChange"] }, { type: i2.TableRowActionComponent, selector: "vdr-table-row-action", inputs: ["linkTo", "label", "iconShape", "disabled"] }], directives: [{ type: i3.NgTemplateOutlet, selector: "[ngTemplateOutlet]", inputs: ["ngTemplateOutletContext", "ngTemplateOutlet"] }, { type: i2.FormFieldControlDirective, selector: "input, textarea, select" }, { type: i4.DefaultValueAccessor, selector: "input:not([type=checkbox])[formControlName],textarea[formControlName],input:not([type=checkbox])[formControl],textarea[formControl],input:not([type=checkbox])[ngModel],textarea[ngModel],[ngDefaultControl]" }, { type: i4.NgControlStatus, selector: "[formControlName],[ngModel],[formControl]" }, { type: i4.FormControlDirective, selector: "[formControl]", inputs: ["formControl", "disabled", "ngModel"], outputs: ["ngModelChange"], exportAs: ["ngForm"] }], pipes: { "async": i3.AsyncPipe, "translate": i5.TranslatePipe }, changeDetection: i0.ChangeDetectionStrategy.OnPush });
67
101
  i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.2.3", ngImport: i0, type: CollectionContentsComponent, decorators: [{
68
102
  type: Component,
69
- args: [{ selector: 'vdr-collection-contents', changeDetection: ChangeDetectionStrategy.OnPush, template: "<div class=\"contents-header\">\r\n <div class=\"header-title-row\">\r\n <ng-container\r\n *ngTemplateOutlet=\"headerTemplate; context: { $implicit: contentsTotalItems$ | async }\"\r\n ></ng-container>\r\n </div>\r\n <input\r\n type=\"text\"\r\n [placeholder]=\"'catalog.filter-by-name' | translate\"\r\n [formControl]=\"filterTermControl\"\r\n />\r\n</div>\r\n<vdr-data-table\r\n [items]=\"contents$ | async\"\r\n [itemsPerPage]=\"contentsItemsPerPage$ | async\"\r\n [totalItems]=\"contentsTotalItems$ | async\"\r\n [currentPage]=\"contentsCurrentPage$ | async\"\r\n (pageChange)=\"setContentsPageNumber($event)\"\r\n (itemsPerPageChange)=\"setContentsItemsPerPage($event)\"\r\n>\r\n <ng-template let-variant=\"item\">\r\n <td class=\"left align-middle\">{{ variant.name }}</td>\r\n <td class=\"right align-middle\">\r\n <vdr-table-row-action\r\n iconShape=\"edit\"\r\n [label]=\"'common.edit' | translate\"\r\n [linkTo]=\"['/catalog/products', variant.productId, { tab: 'variants' }]\"\r\n ></vdr-table-row-action>\r\n </td>\r\n </ng-template>\r\n</vdr-data-table>\r\n", styles: [".contents-header{background-color:var(--color-component-bg-100);position:sticky;top:0;padding:6px;z-index:1;border-bottom:1px solid var(--color-component-border-200)}.contents-header .header-title-row{display:flex;justify-content:space-between;align-items:center}.contents-header .clr-input{width:100%}:host ::ng-deep table{margin-top:-1px}\n"] }]
103
+ args: [{ selector: 'vdr-collection-contents', changeDetection: ChangeDetectionStrategy.OnPush, template: "<div class=\"contents-header\">\r\n <div class=\"header-title-row\">\r\n <ng-container\r\n *ngTemplateOutlet=\"headerTemplate; context: { $implicit: contentsTotalItems$ | async }\"\r\n ></ng-container>\r\n </div>\r\n <input\r\n type=\"text\"\r\n [placeholder]=\"'catalog.filter-by-name' | translate\"\r\n [formControl]=\"filterTermControl\"\r\n />\r\n</div>\r\n<div class=\"table-wrapper\">\r\n <div class=\"progress loop\" [class.visible]=\"isLoading\"></div>\r\n <vdr-data-table\r\n [class.loading]=\"isLoading\"\r\n [items]=\"contents$ | async\"\r\n [itemsPerPage]=\"contentsItemsPerPage$ | async\"\r\n [totalItems]=\"contentsTotalItems$ | async\"\r\n [currentPage]=\"contentsCurrentPage$ | async\"\r\n (pageChange)=\"setContentsPageNumber($event)\"\r\n (itemsPerPageChange)=\"setContentsItemsPerPage($event)\"\r\n >\r\n <ng-template let-variant=\"item\">\r\n <td class=\"left align-middle\">{{ variant.name }}</td>\r\n <td class=\"left align-middle\"><small class=\"sku\">{{ variant.sku }}</small></td>\r\n <td class=\"right align-middle\">\r\n <vdr-table-row-action\r\n iconShape=\"edit\"\r\n [label]=\"'common.edit' | translate\"\r\n [linkTo]=\"['/catalog/products', variant.productId, { tab: 'variants' }]\"\r\n ></vdr-table-row-action>\r\n </td>\r\n </ng-template>\r\n </vdr-data-table>\r\n</div>\r\n", styles: [".contents-header{background-color:var(--color-component-bg-100);position:sticky;top:0;padding:6px;z-index:1;border-bottom:1px solid var(--color-component-border-200)}.contents-header .header-title-row{display:flex;justify-content:space-between;align-items:center}.contents-header .clr-input{width:100%}:host{display:block}:host ::ng-deep table{margin-top:-1px}vdr-data-table{opacity:1;transition:opacity .3s}vdr-data-table.loading{opacity:.5}.table-wrapper{position:relative}.progress{position:absolute;top:0;left:0;overflow:hidden;height:6px;opacity:0;transition:opacity .1s}.progress.visible{opacity:1}.sku{color:var(--color-text-200)}\n"] }]
70
104
  }], ctorParameters: function () { return [{ type: i1.ActivatedRoute }, { type: i1.Router }, { type: i2.DataService }]; }, propDecorators: { collectionId: [{
71
105
  type: Input
106
+ }], parentId: [{
107
+ type: Input
108
+ }], updatedFilters: [{
109
+ type: Input
110
+ }], previewUpdatedFilters: [{
111
+ type: Input
72
112
  }], headerTemplate: [{
73
113
  type: ContentChild,
74
114
  args: [TemplateRef, { static: true }]
75
115
  }] } });
76
- //# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiY29sbGVjdGlvbi1jb250ZW50cy5jb21wb25lbnQuanMiLCJzb3VyY2VSb290IjoiIiwic291cmNlcyI6WyIuLi8uLi8uLi8uLi8uLi9zcmMvbGliL2NhdGFsb2cvc3JjL2NvbXBvbmVudHMvY29sbGVjdGlvbi1jb250ZW50cy9jb2xsZWN0aW9uLWNvbnRlbnRzLmNvbXBvbmVudC50cyIsIi4uLy4uLy4uLy4uLy4uL3NyYy9saWIvY2F0YWxvZy9zcmMvY29tcG9uZW50cy9jb2xsZWN0aW9uLWNvbnRlbnRzL2NvbGxlY3Rpb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XG4gICAgICAgICAgICBzdGFydFdpdGgoMTApLFxyXG4gICAgICAgICAgICBkaXN0aW5jdFVudGlsQ2hhbmdlZCgpLFxyXG4gICAgICAgICk7XHJcblxyXG4gICAgICAgIGNvbnN0IGZpbHRlclRlcm0kID0gdGhpcy5maWx0ZXJUZXJtQ29udHJvbC52YWx1ZUNoYW5nZXMucGlwZShcclxuICAgICAgICAgICAgZGVib3VuY2VUaW1lKDI1MCksXHJcbiAgICAgICAgICAgIHRhcCgoKSA9PiB0aGlzLnNldENvbnRlbnRzUGFnZU51bWJlcigxKSksXHJcbiAgICAgICAgICAgIHN0YXJ0V2l0aCgnJyksXHJcbiAgICAgICAgKTtcclxuXHJcbiAgICAgICAgY29uc3QgY29sbGVjdGlvbiQgPSBjb21iaW5lTGF0ZXN0KFxyXG4gICAgICAgICAgICB0aGlzLmNvbGxlY3Rpb25JZENoYW5nZSQsXHJcbiAgICAgICAgICAgIHRoaXMuY29udGVudHNDdXJyZW50UGFnZSQsXHJcbiAgICAgICAgICAgIHRoaXMuY29udGVudHNJdGVtc1BlclBhZ2UkLFxyXG4gICAgICAgICAgICBmaWx0ZXJUZXJtJCxcclxuICAgICAgICAgICAgdGhpcy5yZWZyZXNoJCxcclxuICAgICAgICApLnBpcGUoXHJcbiAgICAgICAgICAgIHRha2VVbnRpbCh0aGlzLmRlc3Ryb3kkKSxcclxuICAgICAgICAgICAgc3dpdGNoTWFwKChbaWQsIGN1cnJlbnRQYWdlLCBpdGVtc1BlclBhZ2UsIGZpbHRlclRlcm1dKSA9PiB7XHJcbiAgICAgICAgICAgICAgICBjb25zdCB0YWtlID0gaXRlbXNQZXJQYWdlO1xyXG4gICAgICAgICAgICAgICAgY29uc3Qgc2tpcCA9IChjdXJyZW50UGFnZSAtIDEpICogaXRlbXNQZXJQYWdlO1xyXG4gICAgICAgICAgICAgICAgaWYgKGlkKSB7XHJcbiAgICAgICAgICAgICAgICAgICAgcmV0dXJuIHRoaXMuZGF0YVNlcnZpY2UuY29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lID8gMTAgOiArcGVyUGFnZSkpLFxyXG4gICAgICAgICAgICBzdGFydFdpdGgoMTApLFxyXG4gICAgICAgICAgICBkaXN0aW5jdFVudGlsQ2hhbmdlZCgpLFxyXG4gICAgICAgICk7XHJcblxyXG4gICAgICAgIGNvbnN0IGZpbHRlclRlcm0kID0gdGhpcy5maWx0ZXJUZXJtQ29udHJvbC52YWx1ZUNoYW5nZXMucGlwZShcclxuICAgICAgICAgICAgZGVib3VuY2VUaW1lKDI1MCksXHJcbiAgICAgICAgICAgIHRhcCgoKSA9PiB0aGlzLnNldENvbnRlbnRzUGFnZU51bWJlcigxKSksXHJcbiAgICAgICAgICAgIHN0YXJ0V2l0aCgnJyksXHJcbiAgICAgICAgKTtcclxuXHJcbiAgICAgICAgY29uc3QgZmlsdGVyQ2hhbmdlcyQgPSB0aGlzLmZpbHRlckNoYW5nZXMkLmFzT2JzZXJ2YWJsZSgpLnBpcGUoXHJcbiAgICAgICAgICAgIGZpbHRlcigoKSA9PiB0aGlzLnByZXZpZXdVcGRhdGVkRmlsdGVycyksXHJcbiAgICAgICAgICAgIHRhcCgoKSA9PiB0aGlzLnNldENvbnRlbnRzUGFnZU51bWJlcigxKSksXHJcbiAgICAgICAgICAgIHN0YXJ0V2l0aChbXSksXHJcbiAgICAgICAgKTtcclxuXHJcbiAgICAgICAgY29uc3QgZmV0Y2hVcGRhdGUkID0gY29tYmluZUxhdGVzdChcclxuICAgICAgICAgICAgdGhpcy5jb2xsZWN0aW9uSWRDaGFuZ2UkLFxyXG4gICAgICAgICAgICB0aGlzLnBhcmVudElkQ2hhbmdlJCxcclxuICAgICAgICAgICAgdGhpcy5jb250ZW50c0N1cnJlbnRQYWdlJCxcclxuICAgICAgICAgICAgdGhpcy5jb250ZW50c0l0ZW1zUGVyUGFnZSQsXHJcbiAgICAgICAgICAgIGZpbHRlclRlcm0kLFxyXG4gICAgICAgICAgICBmaWx0ZXJDaGFuZ2VzJCxcclxuICAgICAgICAgICAgdGhpcy5yZWZyZXNoJCxcclxuICAgICAgICApO1xyXG5cclxuICAgICAgICBjb25zdCBjb2xsZWN0aW9uJCA9IGZldGNoVXBkYXRlJC5waXBlKFxyXG4gICAgICAgICAgICB0YWtlVW50aWwodGhpcy5kZXN0cm95JCksXHJcbiAgICAgICAgICAgIHRhcCgoKSA9PiAodGhpcy5pc0xvYWRpbmcgPSB0cnVlKSksXHJcbiAgICAgICAgICAgIGRlYm91bmNlVGltZSg1MCksXHJcbiAgICAgICAgICAgIHN3aXRjaE1hcCgoW2lkLCBwYXJlbnRJZCwgY3VycmVudFBhZ2UsIGl0ZW1zUGVyUGFnZSwgZmlsdGVyVGVybSwgZmlsdGVyc10pID0+IHtcclxuICAgICAgICAgICAgICAgIGNvbnN0IHRha2UgPSBpdGVtc1BlclBhZ2U7XHJcbiAgICAgICAgICAgICAgICBjb25zdCBza2lwID0gKGN1cnJlbnRQYWdlIC0gMSkgKiBpdGVtc1BlclBhZ2U7XHJcbiAgICAgICAgICAgICAgICBpZiAoZmlsdGVycy5sZW5ndGggJiYgdGhpcy5wcmV2aWV3VXBkYXRlZEZpbHRlcnMpIHtcclxuICAgICAgICAgICAgICAgICAgICBjb25zdCBmaWx0ZXJDbGF1c2UgPSBmaWx0ZXJUZXJtXHJcbiAgICAgICAgICAgICAgICAgICAgICAgID8gKHsgbmFtZTogeyBjb250YWluczogZmlsdGVyVGVybSB9IH0gYXMgQ29sbGVjdGlvbkZpbHRlclBhcmFtZXRlcilcclxuICAgICAgICAgICAgICAgICAgICAgICAgOiB1bmRlZmluZWQ7XHJcbiAgICAgICAgICAgICAgICAgICAgcmV0dXJuIHRoaXMuZGF0YVNlcnZpY2UuY29sbGVjdGlvblxyXG4gICAgICAgICAgICAgICAgICAgICAgICAucHJldmlld0NvbGxlY3Rpb25WYXJpYW50cyhcclxuICAgICAgICAgICAgICAgICAgICAgICAgICAgIHtcclxuICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICBwYXJlbnRJZCxcclxuICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICBmaWx0ZXJzLFxyXG4gICAgICAgICAgICAgICAgICAgICAgICAgICAgfSxcclxuICAgICAgICAgICAgICAgICAgICAgICAgICAgIHtcclxuICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICB0YWtlLFxyXG4gICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIHNraXAsXHJcbiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgZmlsdGVyOiBmaWx0ZXJDbGF1c2UsXHJcbiAgICAgICAgICAgICAgICAgICAgICAgICAgICB9LFxyXG4gICAgICAgICAgICAgICAgICAgICAgICApXHJcbiAgICAgICAgICAgICAgICAgICAgICAgIC5tYXBTaW5nbGUoZGF0YSA9PiBkYXRhLnByZXZpZXdDb2xsZWN0aW9uVmFyaWFudHMpXHJcbiAgICAgICAgICAgICAgICAgICAgICAgIC5waXBlKGNhdGNoRXJyb3IoKCkgPT4gb2YoeyBpdGVtczogW10sIHRvdGFsSXRlbXM6IDAgfSkpKTtcclxuICAgICAgICAgICAgICAgIH0gZWxzZSBpZiAoaWQpIHtcclxuICAgICAgICAgICAgICAgICAgICByZXR1cm4gdGhpcy5kYXRhU2VydmljZS5jb2xsZWN0aW9uXHJcbiAgICAgICAgICAgICAgICAgICAgICAgIC5nZXRDb2xsZWN0aW9uQ29udGVudHMoaWQsIHRha2UsIHNraXAsIGZpbHRlclRlcm0pXHJcbiAgICAgICAgICAgICAgICAgICAgICAgIC5tYXBTaW5nbGUoZGF0YSA9PiBkYXRhLmNvbGxlY3Rpb24/LnByb2R1Y3RWYXJpYW50cyk7XHJcbiAgICAgICAgICAgICAgICB9IGVsc2Uge1xyXG4gICAgICAgICAgICAgICAgICAgIHJldHVybiBvZihudWxsKTtcclxuICAgICAgICAgICAgICAgIH1cclxuICAgICAgICAgICAgfSksXHJcbiAgICAgICAgICAgIHRhcCgoKSA9PiAodGhpcy5pc0xvYWRpbmcgPSBmYWxzZSkpLFxyXG4gICAgICAgICAgICBm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G4gICAgICAgIHRoaXMuZGVzdHJveSQuY29tcGxldGUoKTtcclxuICAgIH1cclxuXHJcbiAgICBzZXRDb250ZW50c1BhZ2VOdW1iZXIocGFnZTogbnVtYmVyKSB7XHJcbiAgICAgICAgdGhpcy5zZXRQYXJhbSgnY29udGVudHNQYWdlJywgcGFnZSk7XHJcbiAgICB9XHJcblxyXG4gICAgc2V0Q29udGVudHNJdGVtc1BlclBhZ2UocGVyUGFnZTogbnVtYmVyKSB7XHJcbiAgICAgICAgdGhpcy5zZXRQYXJhbSgnY29udGVudHNQZXJQYWdlJywgcGVyUGFnZSk7XHJcbiAgICB9XHJcblxyXG4gICAgcmVmcmVzaCgpIHtcclxuICAgICAgICB0aGlzLnJlZnJlc2gkLm5leHQodHJ1ZSk7XHJcbiAgICB9XHJcblxyXG4gICAgcHJpdmF0ZSBzZXRQYXJhbShrZXk6IHN0cmluZywgdmFsdWU6IGFueSkge1xyXG4gICAgICAgIHRoaXMucm91dGVyLm5hdmlnYXRlKFsnLi8nXSwge1xyXG4gICAgICAgICAgICByZWxhdGl2ZVRvOiB0aGlzLnJvdXRlLFxyXG4gICAgICAgICAgICBxdWVyeVBhcmFtczoge1xyXG4gICAgICAgICAgICAgICAgW2tleV06IHZhbHVlLFxyXG4gICAgICAgICAgICB9LFxyXG4gICAgICAgICAgICBxdWVyeVBhcmFtc0hhbmRsaW5nOiAnbWVyZ2UnLFxyXG4gICAgICAgICAgICByZXBsYWNlVXJsOiB0cnVlLFxyXG4gICAgICAgIH0pO1xyXG4gICAgfVxyXG59XHJcbiIsIjxkaXYgY2xhc3M9XCJjb250ZW50cy1oZWFkZXJcIj5cclxuICAgIDxkaXYgY2xhc3M9XCJoZWFkZXItdGl0bGUtcm93XCI+XHJcbiAgICAgICAgPG5nLWNvbnRhaW5lclxyXG4gICAgICAgICAgICAqbmdUZW1wbGF0ZU91dGxldD1cImhlYWRlclRlbXBsYXRlOyBjb250ZXh0OiB7ICRpbXBsaWNpdDogY29udGVudHNUb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