@vendure/admin-ui 1.8.4 → 1.9.0

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 (84) hide show
  1. package/bundles/vendure-admin-ui-catalog.umd.js +53 -101
  2. package/bundles/vendure-admin-ui-catalog.umd.js.map +1 -1
  3. package/bundles/vendure-admin-ui-core.umd.js +115 -54
  4. package/bundles/vendure-admin-ui-core.umd.js.map +1 -1
  5. package/bundles/vendure-admin-ui-customer.umd.js +52 -2
  6. package/bundles/vendure-admin-ui-customer.umd.js.map +1 -1
  7. package/bundles/vendure-admin-ui-login.umd.js +40 -8
  8. package/bundles/vendure-admin-ui-login.umd.js.map +1 -1
  9. package/bundles/vendure-admin-ui-order.umd.js +52 -3
  10. package/bundles/vendure-admin-ui-order.umd.js.map +1 -1
  11. package/catalog/components/apply-facet-dialog/apply-facet-dialog.component.d.ts +1 -2
  12. package/catalog/components/bulk-add-facet-values-dialog/bulk-add-facet-values-dialog.component.d.ts +0 -1
  13. package/catalog/components/product-detail/product-detail.component.d.ts +2 -7
  14. package/catalog/components/product-variants-list/product-variants-list.component.d.ts +11 -11
  15. package/catalog/providers/product-detail/product-detail.service.d.ts +1 -2
  16. package/catalog/vendure-admin-ui-catalog.metadata.json +1 -1
  17. package/core/common/generated-types.d.ts +59 -0
  18. package/core/common/version.d.ts +1 -1
  19. package/core/data/definitions/facet-definitions.d.ts +1 -0
  20. package/core/data/providers/facet-data.service.d.ts +5 -1
  21. package/core/providers/custom-history-entry-component/history-entry-component-types.d.ts +81 -0
  22. package/core/providers/custom-history-entry-component/history-entry-component.service.d.ts +16 -0
  23. package/core/public_api.d.ts +2 -1
  24. package/core/shared/components/facet-value-selector/facet-value-selector.component.d.ts +17 -17
  25. package/core/shared/dynamic-form-inputs/facet-value-form-input/facet-value-form-input.component.d.ts +3 -11
  26. package/core/shared/dynamic-form-inputs/register-dynamic-input-components.d.ts +1 -2
  27. package/core/vendure-admin-ui-core.metadata.json +1 -1
  28. package/customer/components/customer-detail/customer-detail.component.d.ts +3 -3
  29. package/customer/components/customer-history/customer-history-entry-host.component.d.ts +16 -0
  30. package/customer/components/customer-history/customer-history.component.d.ts +19 -3
  31. package/customer/public_api.d.ts +1 -0
  32. package/customer/vendure-admin-ui-customer.metadata.json +1 -1
  33. package/esm2015/catalog/components/apply-facet-dialog/apply-facet-dialog.component.js +2 -2
  34. package/esm2015/catalog/components/bulk-add-facet-values-dialog/bulk-add-facet-values-dialog.component.js +2 -3
  35. package/esm2015/catalog/components/product-detail/product-detail.component.js +16 -47
  36. package/esm2015/catalog/components/product-list/product-list-bulk-actions.js +4 -7
  37. package/esm2015/catalog/components/product-variants-list/product-variants-list.component.js +38 -30
  38. package/esm2015/catalog/providers/product-detail/product-detail.service.js +1 -4
  39. package/esm2015/core/common/generated-types.js +1 -1
  40. package/esm2015/core/common/introspection-result.js +2 -1
  41. package/esm2015/core/common/version.js +2 -2
  42. package/esm2015/core/data/definitions/facet-definitions.js +12 -1
  43. package/esm2015/core/data/providers/facet-data.service.js +5 -2
  44. package/esm2015/core/providers/custom-history-entry-component/history-entry-component-types.js +2 -0
  45. package/esm2015/core/providers/custom-history-entry-component/history-entry-component.service.js +39 -0
  46. package/esm2015/core/public_api.js +3 -2
  47. package/esm2015/core/shared/components/facet-value-selector/facet-value-selector.component.js +52 -22
  48. package/esm2015/core/shared/components/form-field/form-field.component.js +2 -2
  49. package/esm2015/core/shared/components/timeline-entry/timeline-entry.component.js +2 -2
  50. package/esm2015/core/shared/dynamic-form-inputs/facet-value-form-input/facet-value-form-input.component.js +3 -15
  51. package/esm2015/customer/components/customer-detail/customer-detail.component.js +1 -1
  52. package/esm2015/customer/components/customer-history/customer-history-entry-host.component.js +51 -0
  53. package/esm2015/customer/components/customer-history/customer-history.component.js +12 -4
  54. package/esm2015/customer/customer.module.js +3 -1
  55. package/esm2015/customer/public_api.js +2 -1
  56. package/esm2015/login/components/login/login.component.js +37 -5
  57. package/esm2015/order/components/order-detail/order-detail.component.js +1 -1
  58. package/esm2015/order/components/order-history/order-history-entry-host.component.js +51 -0
  59. package/esm2015/order/components/order-history/order-history.component.js +12 -5
  60. package/esm2015/order/order.module.js +6 -4
  61. package/esm2015/order/public_api.js +2 -1
  62. package/fesm2015/vendure-admin-ui-catalog.js +54 -85
  63. package/fesm2015/vendure-admin-ui-catalog.js.map +1 -1
  64. package/fesm2015/vendure-admin-ui-core.js +106 -39
  65. package/fesm2015/vendure-admin-ui-core.js.map +1 -1
  66. package/fesm2015/vendure-admin-ui-customer.js +63 -5
  67. package/fesm2015/vendure-admin-ui-customer.js.map +1 -1
  68. package/fesm2015/vendure-admin-ui-login.js +36 -4
  69. package/fesm2015/vendure-admin-ui-login.js.map +1 -1
  70. package/fesm2015/vendure-admin-ui-order.js +63 -6
  71. package/fesm2015/vendure-admin-ui-order.js.map +1 -1
  72. package/login/components/login/login.component.d.ts +11 -1
  73. package/login/vendure-admin-ui-login.metadata.json +1 -1
  74. package/order/components/order-detail/order-detail.component.d.ts +3 -3
  75. package/order/components/order-history/order-history-entry-host.component.d.ts +16 -0
  76. package/order/components/order-history/order-history.component.d.ts +18 -3
  77. package/order/public_api.d.ts +1 -0
  78. package/order/vendure-admin-ui-order.metadata.json +1 -1
  79. package/package.json +2 -2
  80. package/static/i18n-messages/de.json +3 -1
  81. package/static/i18n-messages/en.json +3 -1
  82. package/static/styles/_variables.scss +1 -0
  83. package/core/common/utilities/flatten-facet-values.d.ts +0 -2
  84. package/esm2015/core/common/utilities/flatten-facet-values.js +0 -4
@@ -274,6 +274,7 @@ export declare type BooleanListOperators = {
274
274
  /** Operators for filtering on a Boolean field */
275
275
  export declare type BooleanOperators = {
276
276
  eq?: Maybe<Scalars['Boolean']>;
277
+ isNull?: Maybe<Scalars['Boolean']>;
277
278
  };
278
279
  /** Returned if an attempting to cancel lines from an Order which is still active */
279
280
  export declare type CancelActiveOrderError = ErrorResult & {
@@ -1241,6 +1242,7 @@ export declare type DateOperators = {
1241
1242
  before?: Maybe<Scalars['DateTime']>;
1242
1243
  after?: Maybe<Scalars['DateTime']>;
1243
1244
  between?: Maybe<DateRange>;
1245
+ isNull?: Maybe<Scalars['Boolean']>;
1244
1246
  };
1245
1247
  export declare type DateRange = {
1246
1248
  start: Scalars['DateTime'];
@@ -1446,6 +1448,31 @@ export declare type FacetValueFilterInput = {
1446
1448
  and?: Maybe<Scalars['ID']>;
1447
1449
  or?: Maybe<Array<Scalars['ID']>>;
1448
1450
  };
1451
+ export declare type FacetValueFilterParameter = {
1452
+ id?: Maybe<IdOperators>;
1453
+ createdAt?: Maybe<DateOperators>;
1454
+ updatedAt?: Maybe<DateOperators>;
1455
+ languageCode?: Maybe<StringOperators>;
1456
+ name?: Maybe<StringOperators>;
1457
+ code?: Maybe<StringOperators>;
1458
+ };
1459
+ export declare type FacetValueList = PaginatedList & {
1460
+ __typename?: 'FacetValueList';
1461
+ items: Array<FacetValue>;
1462
+ totalItems: Scalars['Int'];
1463
+ };
1464
+ export declare type FacetValueListOptions = {
1465
+ /** Skips the first n results, for use in pagination */
1466
+ skip?: Maybe<Scalars['Int']>;
1467
+ /** Takes n results, for use in pagination */
1468
+ take?: Maybe<Scalars['Int']>;
1469
+ /** Specifies which properties to sort the results by */
1470
+ sort?: Maybe<FacetValueSortParameter>;
1471
+ /** Allows the results to be filtered */
1472
+ filter?: Maybe<FacetValueFilterParameter>;
1473
+ /** Specifies whether multiple "filter" arguments should be combines with a logical AND or OR operation. Defaults to AND. */
1474
+ filterOperator?: Maybe<LogicalOperator>;
1475
+ };
1449
1476
  /**
1450
1477
  * Which FacetValues are present in the products returned
1451
1478
  * by the search, and in what quantity.
@@ -1455,6 +1482,13 @@ export declare type FacetValueResult = {
1455
1482
  facetValue: FacetValue;
1456
1483
  count: Scalars['Int'];
1457
1484
  };
1485
+ export declare type FacetValueSortParameter = {
1486
+ id?: Maybe<SortOrder>;
1487
+ createdAt?: Maybe<SortOrder>;
1488
+ updatedAt?: Maybe<SortOrder>;
1489
+ name?: Maybe<SortOrder>;
1490
+ code?: Maybe<SortOrder>;
1491
+ };
1458
1492
  export declare type FacetValueTranslation = {
1459
1493
  __typename?: 'FacetValueTranslation';
1460
1494
  id: Scalars['ID'];
@@ -1606,6 +1640,7 @@ export declare type IdOperators = {
1606
1640
  notEq?: Maybe<Scalars['String']>;
1607
1641
  in?: Maybe<Array<Scalars['String']>>;
1608
1642
  notIn?: Maybe<Array<Scalars['String']>>;
1643
+ isNull?: Maybe<Scalars['Boolean']>;
1609
1644
  };
1610
1645
  export declare type ImportInfo = {
1611
1646
  __typename?: 'ImportInfo';
@@ -2920,6 +2955,7 @@ export declare type NumberOperators = {
2920
2955
  gt?: Maybe<Scalars['Float']>;
2921
2956
  gte?: Maybe<Scalars['Float']>;
2922
2957
  between?: Maybe<NumberRange>;
2958
+ isNull?: Maybe<Scalars['Boolean']>;
2923
2959
  };
2924
2960
  export declare type NumberRange = {
2925
2961
  start: Scalars['Float'];
@@ -3856,6 +3892,7 @@ export declare type Query = {
3856
3892
  /** Returns a list of eligible shipping methods for the draft Order */
3857
3893
  eligibleShippingMethodsForDraftOrder: Array<ShippingMethodQuote>;
3858
3894
  facet?: Maybe<Facet>;
3895
+ facetValues: FacetValueList;
3859
3896
  facets: FacetList;
3860
3897
  fulfillmentHandlers: Array<ConfigurableOperationDefinition>;
3861
3898
  globalSettings: GlobalSettings;
@@ -3955,6 +3992,9 @@ export declare type QueryEligibleShippingMethodsForDraftOrderArgs = {
3955
3992
  export declare type QueryFacetArgs = {
3956
3993
  id: Scalars['ID'];
3957
3994
  };
3995
+ export declare type QueryFacetValuesArgs = {
3996
+ options?: Maybe<FacetValueListOptions>;
3997
+ };
3958
3998
  export declare type QueryFacetsArgs = {
3959
3999
  options?: Maybe<FacetListOptions>;
3960
4000
  };
@@ -4458,6 +4498,7 @@ export declare type StringOperators = {
4458
4498
  in?: Maybe<Array<Scalars['String']>>;
4459
4499
  notIn?: Maybe<Array<Scalars['String']>>;
4460
4500
  regex?: Maybe<Scalars['String']>;
4501
+ isNull?: Maybe<Scalars['Boolean']>;
4461
4502
  };
4462
4503
  /** Indicates that an operation succeeded, where we do not want to return any more specific information. */
4463
4504
  export declare type Success = {
@@ -5700,6 +5741,18 @@ export declare type GetFacetListQuery = {
5700
5741
  } & FacetWithValuesFragment)>;
5701
5742
  });
5702
5743
  };
5744
+ export declare type GetFacetValueListQueryVariables = Exact<{
5745
+ options?: Maybe<FacetValueListOptions>;
5746
+ }>;
5747
+ export declare type GetFacetValueListQuery = {
5748
+ facetValues: ({
5749
+ __typename?: 'FacetValueList';
5750
+ } & Pick<FacetValueList, 'totalItems'> & {
5751
+ items: Array<({
5752
+ __typename?: 'FacetValue';
5753
+ } & FacetValueFragment)>;
5754
+ });
5755
+ };
5703
5756
  export declare type GetFacetWithValuesQueryVariables = Exact<{
5704
5757
  id: Scalars['ID'];
5705
5758
  }>;
@@ -8698,6 +8751,12 @@ export declare namespace GetFacetList {
8698
8751
  type Facets = (NonNullable<GetFacetListQuery['facets']>);
8699
8752
  type Items = NonNullable<(NonNullable<(NonNullable<GetFacetListQuery['facets']>)['items']>)[number]>;
8700
8753
  }
8754
+ export declare namespace GetFacetValueList {
8755
+ type Variables = GetFacetValueListQueryVariables;
8756
+ type Query = GetFacetValueListQuery;
8757
+ type FacetValues = (NonNullable<GetFacetValueListQuery['facetValues']>);
8758
+ type Items = NonNullable<(NonNullable<(NonNullable<GetFacetValueListQuery['facetValues']>)['items']>)[number]>;
8759
+ }
8701
8760
  export declare namespace GetFacetWithValues {
8702
8761
  type Variables = GetFacetWithValuesQueryVariables;
8703
8762
  type Query = GetFacetWithValuesQuery;
@@ -1 +1 @@
1
- export declare const ADMIN_UI_VERSION = "1.8.4";
1
+ export declare const ADMIN_UI_VERSION = "1.9.0";
@@ -8,6 +8,7 @@ export declare const CREATE_FACET_VALUES: import("graphql").DocumentNode;
8
8
  export declare const UPDATE_FACET_VALUES: import("graphql").DocumentNode;
9
9
  export declare const DELETE_FACET_VALUES: import("graphql").DocumentNode;
10
10
  export declare const GET_FACET_LIST: import("graphql").DocumentNode;
11
+ export declare const GET_FACET_VALUE_LIST: import("graphql").DocumentNode;
11
12
  export declare const GET_FACET_WITH_VALUES: import("graphql").DocumentNode;
12
13
  export declare const ASSIGN_FACETS_TO_CHANNEL: import("graphql").DocumentNode;
13
14
  export declare const REMOVE_FACETS_FROM_CHANNEL: import("graphql").DocumentNode;
@@ -1,4 +1,5 @@
1
- import { AssignFacetsToChannelInput, CreateFacetInput, CreateFacetValueInput, RemoveFacetsFromChannelInput, UpdateFacetInput, UpdateFacetValueInput } from '../../common/generated-types';
1
+ import { WatchQueryFetchPolicy } from '@apollo/client/core';
2
+ import { AssignFacetsToChannelInput, CreateFacetInput, CreateFacetValueInput, FacetValueListOptions, GetFacetValueListQuery, RemoveFacetsFromChannelInput, UpdateFacetInput, UpdateFacetValueInput } from '../../common/generated-types';
2
3
  import { BaseDataService } from './base-data.service';
3
4
  export declare class FacetDataService {
4
5
  private baseDataService;
@@ -6,6 +7,9 @@ export declare class FacetDataService {
6
7
  getFacets(take?: number, skip?: number): import("../query-result").QueryResult<import("../../common/generated-types").GetFacetListQuery, import("../../common/generated-types").Exact<{
7
8
  options?: import("../../common/generated-types").Maybe<import("../../common/generated-types").FacetListOptions> | undefined;
8
9
  }>>;
10
+ getFacetValues(options: FacetValueListOptions, fetchPolicy?: WatchQueryFetchPolicy): import("../query-result").QueryResult<GetFacetValueListQuery, import("../../common/generated-types").Exact<{
11
+ options?: import("../../common/generated-types").Maybe<FacetValueListOptions> | undefined;
12
+ }>>;
9
13
  getAllFacets(): import("../query-result").QueryResult<import("../../common/generated-types").GetFacetListQuery, import("../../common/generated-types").Exact<{
10
14
  options?: import("../../common/generated-types").Maybe<import("../../common/generated-types").FacetListOptions> | undefined;
11
15
  }>>;
@@ -0,0 +1,81 @@
1
+ import { Type } from '@angular/core';
2
+ import { CustomerFragment, GetOrderHistoryQuery, OrderDetailFragment } from '../../common/generated-types';
3
+ import { TimelineDisplayType } from '../../shared/components/timeline-entry/timeline-entry.component';
4
+ export declare type TimelineHistoryEntry = NonNullable<GetOrderHistoryQuery['order']>['history']['items'][number];
5
+ /**
6
+ * @description
7
+ * This interface should be implemented by components intended to display a history entry in the
8
+ * Order or Customer history timeline. If the component needs access to the Order or Customer object itself,
9
+ * you should implement {@link OrderHistoryEntryComponent} or {@link CustomerHistoryEntryComponent} respectively.
10
+ *
11
+ * @since 1.9.0
12
+ * @docsCategory custom-history-entry-components
13
+ */
14
+ export interface HistoryEntryComponent {
15
+ /**
16
+ * @description
17
+ * The HistoryEntry data.
18
+ */
19
+ entry: TimelineHistoryEntry;
20
+ /**
21
+ * @description
22
+ * Defines whether this entry is highlighted with a "success", "error" etc. color.
23
+ */
24
+ getDisplayType: (entry: TimelineHistoryEntry) => TimelineDisplayType;
25
+ /**
26
+ * @description
27
+ * Featured entries are always expanded. Non-featured entries start of collapsed and can be clicked
28
+ * to expand.
29
+ */
30
+ isFeatured: (entry: TimelineHistoryEntry) => boolean;
31
+ /**
32
+ * @description
33
+ * Returns the name of the person who did this action. For example, it could be the Customer's name
34
+ * or "Administrator".
35
+ */
36
+ getName?: (entry: TimelineHistoryEntry) => string | undefined;
37
+ /**
38
+ * @description
39
+ * Optional Clarity icon shape to display with the entry. Examples: `'note'`, `['success-standard', 'is-solid']`
40
+ */
41
+ getIconShape?: (entry: TimelineHistoryEntry) => string | string[] | undefined;
42
+ }
43
+ /**
44
+ * @description
45
+ * Used to implement a {@link HistoryEntryComponent} which requires access to the Order object.
46
+ *
47
+ * @since 1.9.0
48
+ * @docsCategory custom-history-entry-components
49
+ */
50
+ export interface OrderHistoryEntryComponent extends HistoryEntryComponent {
51
+ order: OrderDetailFragment;
52
+ }
53
+ /**
54
+ * @description
55
+ * Used to implement a {@link HistoryEntryComponent} which requires access to the Customer object.
56
+ *
57
+ * @since 1.9.0
58
+ * @docsCategory custom-history-entry-components
59
+ */
60
+ export interface CustomerHistoryEntryComponent extends HistoryEntryComponent {
61
+ customer: CustomerFragment;
62
+ }
63
+ /**
64
+ * @description
65
+ * Configuration for registering a custom {@link HistoryEntryComponent}.
66
+ *
67
+ * @since 1.9.0
68
+ * @docsCategory custom-history-entry-components
69
+ */
70
+ export interface HistoryEntryConfig {
71
+ /**
72
+ * @description
73
+ * The type should correspond to the custom HistoryEntryType string.
74
+ */
75
+ type: string;
76
+ /**
77
+ * @description
78
+ * The component to be rendered for this history entry type.
79
+ */
80
+ component: Type<HistoryEntryComponent>;
81
+ }
@@ -0,0 +1,16 @@
1
+ import { Provider, Type } from '@angular/core';
2
+ import { HistoryEntryComponent, HistoryEntryConfig } from './history-entry-component-types';
3
+ /**
4
+ * @description
5
+ * Registers a {@link HistoryEntryComponent} for displaying history entries in the Order/Customer
6
+ * history timeline.
7
+ *
8
+ * @since 1.9.0
9
+ * @docsCategory custom-history-entry-components
10
+ */
11
+ export declare function registerHistoryEntryComponent(config: HistoryEntryConfig): Provider;
12
+ export declare class HistoryEntryComponentService {
13
+ private customEntryComponents;
14
+ registerComponent(config: HistoryEntryConfig): void;
15
+ getComponent(type: string): Type<HistoryEntryComponent> | undefined;
16
+ }
@@ -15,7 +15,6 @@ export * from './common/utilities/bulk-action-utils';
15
15
  export * from './common/utilities/configurable-operation-utils';
16
16
  export * from './common/utilities/create-updated-translatable';
17
17
  export * from './common/utilities/find-translation';
18
- export * from './common/utilities/flatten-facet-values';
19
18
  export * from './common/utilities/get-default-ui-language';
20
19
  export * from './common/utilities/interpolate-description';
21
20
  export * from './common/utilities/selection-manager';
@@ -77,6 +76,8 @@ export * from './providers/component-registry/component-registry.service';
77
76
  export * from './providers/custom-detail-component/custom-detail-component-types';
78
77
  export * from './providers/custom-detail-component/custom-detail-component.service';
79
78
  export * from './providers/custom-field-component/custom-field-component.service';
79
+ export * from './providers/custom-history-entry-component/history-entry-component-types';
80
+ export * from './providers/custom-history-entry-component/history-entry-component.service';
80
81
  export * from './providers/dashboard-widget/dashboard-widget-types';
81
82
  export * from './providers/dashboard-widget/dashboard-widget.service';
82
83
  export * from './providers/dashboard-widget/register-dashboard-widget';
@@ -1,13 +1,8 @@
1
- import { EventEmitter, OnInit } from '@angular/core';
1
+ import { ChangeDetectorRef, EventEmitter, OnDestroy, OnInit } from '@angular/core';
2
2
  import { ControlValueAccessor } from '@angular/forms';
3
- import { FacetValue, FacetWithValues } from '../../../common/generated-types';
3
+ import { Observable, Subject } from 'rxjs';
4
+ import { FacetValue, FacetValueFragment } from '../../../common/generated-types';
4
5
  import { DataService } from '../../../data/providers/data.service';
5
- export declare type FacetValueSeletorItem = {
6
- name: string;
7
- facetName: string;
8
- id: string;
9
- value: FacetValue.Fragment;
10
- };
11
6
  /**
12
7
  * @description
13
8
  * A form control for selecting facet values.
@@ -30,25 +25,30 @@ export declare type FacetValueSeletorItem = {
30
25
  * ```
31
26
  * @docsCategory components
32
27
  */
33
- export declare class FacetValueSelectorComponent implements OnInit, ControlValueAccessor {
28
+ export declare class FacetValueSelectorComponent implements OnInit, OnDestroy, ControlValueAccessor {
34
29
  private dataService;
35
- selectedValuesChange: EventEmitter<import("../../../common/generated-types").FacetValueFragment[]>;
36
- facets: FacetWithValues.Fragment[];
30
+ private changeDetectorRef;
31
+ selectedValuesChange: EventEmitter<FacetValueFragment[]>;
37
32
  readonly: boolean;
38
- transformControlValueAccessorValue: (value: FacetValueSeletorItem[]) => any[];
33
+ transformControlValueAccessorValue: (value: FacetValueFragment[]) => any[];
34
+ searchInput$: Subject<string>;
35
+ searchLoading: boolean;
36
+ searchResults$: Observable<FacetValueFragment[]>;
37
+ selectedIds$: Subject<string[]>;
39
38
  private ngSelect;
40
- facetValues: FacetValueSeletorItem[];
41
39
  onChangeFn: (val: any) => void;
42
40
  onTouchFn: () => void;
43
41
  disabled: boolean;
44
- value: Array<string | FacetValue.Fragment>;
45
- constructor(dataService: DataService);
42
+ value: Array<string | FacetValueFragment>;
43
+ private subscription;
44
+ constructor(dataService: DataService, changeDetectorRef: ChangeDetectorRef);
46
45
  ngOnInit(): void;
47
- onChange(selected: FacetValueSeletorItem[]): void;
46
+ private initSearchResults;
47
+ ngOnDestroy(): void;
48
+ onChange(selected: FacetValueFragment[]): void;
48
49
  registerOnChange(fn: any): void;
49
50
  registerOnTouched(fn: any): void;
50
51
  setDisabledState(isDisabled: boolean): void;
51
52
  focus(): void;
52
53
  writeValue(obj: string | FacetValue.Fragment[] | Array<string | number> | null): void;
53
- private toSelectorItem;
54
54
  }
@@ -1,11 +1,7 @@
1
- import { OnInit } from '@angular/core';
2
1
  import { FormControl } from '@angular/forms';
3
2
  import { DefaultFormComponentId } from '@vendure/common/lib/shared-types';
4
- import { Observable } from 'rxjs';
5
3
  import { FormInputComponent, InputComponentConfig } from '../../../common/component-registry-types';
6
- import { FacetWithValues } from '../../../common/generated-types';
7
- import { DataService } from '../../../data/providers/data.service';
8
- import { FacetValueSeletorItem } from '../../components/facet-value-selector/facet-value-selector.component';
4
+ import { FacetValueFragment } from '../../../common/generated-types';
9
5
  /**
10
6
  * @description
11
7
  * Allows the selection of multiple FacetValues via an autocomplete select input.
@@ -14,15 +10,11 @@ import { FacetValueSeletorItem } from '../../components/facet-value-selector/fac
14
10
  * @docsCategory custom-input-components
15
11
  * @docsPage default-inputs
16
12
  */
17
- export declare class FacetValueFormInputComponent implements FormInputComponent, OnInit {
18
- private dataService;
13
+ export declare class FacetValueFormInputComponent implements FormInputComponent {
19
14
  static readonly id: DefaultFormComponentId;
20
15
  readonly isListInput = true;
21
16
  readonly: boolean;
22
17
  formControl: FormControl;
23
- facets$: Observable<FacetWithValues.Fragment[]>;
24
18
  config: InputComponentConfig;
25
- constructor(dataService: DataService);
26
- ngOnInit(): void;
27
- valueTransformFn: (values: FacetValueSeletorItem[]) => string | FacetValueSeletorItem[];
19
+ valueTransformFn: (values: FacetValueFragment[]) => string | FacetValueFragment[];
28
20
  }
@@ -6,12 +6,11 @@ import { JsonEditorFormInputComponent } from './code-editor-form-input/json-edit
6
6
  import { CombinationModeFormInputComponent } from './combination-mode-form-input/combination-mode-form-input.component';
7
7
  import { CurrencyFormInputComponent } from './currency-form-input/currency-form-input.component';
8
8
  import { CustomerGroupFormInputComponent } from './customer-group-form-input/customer-group-form-input.component';
9
- import { FacetValueFormInputComponent } from './facet-value-form-input/facet-value-form-input.component';
10
9
  import { PasswordFormInputComponent } from './password-form-input/password-form-input.component';
11
10
  import { ProductMultiSelectorFormInputComponent } from './product-multi-selector-form-input/product-multi-selector-form-input.component';
12
11
  import { ProductSelectorFormInputComponent } from './product-selector-form-input/product-selector-form-input.component';
13
12
  import { SelectFormInputComponent } from './select-form-input/select-form-input.component';
14
- export declare const defaultFormInputs: (typeof HtmlEditorFormInputComponent | typeof ProductSelectorFormInputComponent | typeof CustomerGroupFormInputComponent | typeof PasswordFormInputComponent | typeof CurrencyFormInputComponent | typeof SelectFormInputComponent | typeof FacetValueFormInputComponent | typeof JsonEditorFormInputComponent | typeof ProductMultiSelectorFormInputComponent | typeof CombinationModeFormInputComponent)[];
13
+ export declare const defaultFormInputs: (typeof HtmlEditorFormInputComponent | typeof ProductSelectorFormInputComponent | typeof CustomerGroupFormInputComponent | typeof PasswordFormInputComponent | typeof CurrencyFormInputComponent | typeof SelectFormInputComponent | typeof JsonEditorFormInputComponent | typeof ProductMultiSelectorFormInputComponent | typeof CombinationModeFormInputComponent)[];
15
14
  /**
16
15
  * @description
17
16
  * Registers a custom FormInputComponent which can be used to control the argument inputs