@vendure/admin-ui 2.0.0-next.0 → 2.0.0-next.11
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/catalog/catalog.module.d.ts +10 -11
- package/catalog/components/collection-contents/collection-contents.component.d.ts +10 -2
- package/catalog/components/collection-detail/collection-detail.component.d.ts +13 -4
- package/catalog/components/collection-list/collection-list.component.d.ts +2 -0
- package/catalog/components/collection-tree/array-to-tree.d.ts +1 -1
- package/catalog/components/collection-tree/collection-tree-node.component.d.ts +6 -2
- package/catalog/components/collection-tree/collection-tree.component.d.ts +2 -1
- package/catalog/components/product-variants-editor/product-variants-editor.component.d.ts +13 -10
- package/catalog/components/product-variants-list/product-variants-list.component.d.ts +1 -0
- package/catalog/public_api.d.ts +0 -1
- package/core/common/generated-types.d.ts +136 -2
- package/core/common/utilities/selection-manager.d.ts +23 -0
- package/core/common/version.d.ts +1 -1
- package/core/components/app-shell/app-shell.component.d.ts +1 -0
- package/core/data/definitions/collection-definitions.d.ts +1 -0
- package/core/data/providers/collection-data.service.d.ts +4 -0
- package/core/data/providers/promotion-data.service.d.ts +1 -1
- package/core/providers/local-storage/local-storage.service.d.ts +1 -0
- package/core/public_api.d.ts +7 -1
- package/core/shared/components/asset-gallery/asset-gallery.component.d.ts +27 -3
- package/core/shared/components/configurable-input/configurable-input.component.d.ts +8 -3
- package/core/shared/components/custom-field-control/custom-field-control.component.d.ts +6 -2
- package/core/shared/components/data-table/data-table.component.d.ts +5 -2
- package/core/shared/components/facet-value-selector/facet-value-selector.component.d.ts +3 -2
- package/core/shared/components/object-tree/object-tree.component.d.ts +3 -3
- package/core/shared/components/product-multi-selector-dialog/product-multi-selector-dialog.component.d.ts +38 -0
- package/{catalog → core/shared}/components/product-search-input/product-search-input.component.d.ts +1 -1
- package/core/shared/components/{product-selector/product-selector.component.d.ts → product-variant-selector/product-variant-selector.component.d.ts} +4 -4
- package/core/shared/components/select-toggle/select-toggle.component.d.ts +2 -1
- package/core/shared/dynamic-form-inputs/combination-mode-form-input/combination-mode-form-input.component.d.ts +28 -0
- package/core/shared/dynamic-form-inputs/facet-value-form-input/facet-value-form-input.component.d.ts +2 -0
- package/core/shared/dynamic-form-inputs/product-multi-selector-form-input/product-multi-selector-form-input.component.d.ts +23 -0
- package/core/shared/dynamic-form-inputs/register-dynamic-input-components.d.ts +4 -1
- package/core/shared/dynamic-form-inputs/relation-form-input/asset/relation-asset-input.component.d.ts +6 -3
- package/core/shared/dynamic-form-inputs/relation-form-input/generic/relation-generic-input.component.d.ts +18 -0
- package/core/shared/dynamic-form-inputs/select-form-input/select-form-input.component.d.ts +10 -2
- package/core/shared/pipes/custom-field-label.pipe.d.ts +4 -10
- package/core/shared/shared.module.d.ts +33 -28
- package/customer/components/customer-group-list/customer-group-list.component.d.ts +6 -4
- package/esm2020/catalog/catalog.module.mjs +1 -5
- package/esm2020/catalog/components/apply-facet-dialog/apply-facet-dialog.component.mjs +1 -1
- package/esm2020/catalog/components/assets/assets.component.mjs +2 -2
- package/esm2020/catalog/components/collection-contents/collection-contents.component.mjs +61 -13
- package/esm2020/catalog/components/collection-detail/collection-detail.component.mjs +72 -32
- package/esm2020/catalog/components/collection-list/collection-list.component.mjs +30 -5
- package/esm2020/catalog/components/collection-tree/array-to-tree.mjs +3 -3
- package/esm2020/catalog/components/collection-tree/collection-tree-node.component.mjs +29 -10
- package/esm2020/catalog/components/collection-tree/collection-tree.component.mjs +6 -3
- package/esm2020/catalog/components/facet-detail/facet-detail.component.mjs +2 -2
- package/esm2020/catalog/components/product-detail/product-detail.component.mjs +2 -2
- package/esm2020/catalog/components/product-list/product-list.component.mjs +7 -8
- package/esm2020/catalog/components/product-variants-editor/product-variants-editor.component.mjs +8 -3
- package/esm2020/catalog/components/product-variants-list/product-variants-list.component.mjs +9 -3
- package/esm2020/catalog/providers/routing/collection-resolver.mjs +2 -1
- package/esm2020/catalog/public_api.mjs +1 -2
- package/esm2020/core/app.component.module.mjs +1 -1
- package/esm2020/core/common/base-detail.component.mjs +1 -1
- package/esm2020/core/common/deactivate-aware.mjs +1 -1
- package/esm2020/core/common/generated-types.mjs +29 -1
- package/esm2020/core/common/introspection-result.mjs +255 -183
- package/esm2020/core/common/utilities/configurable-operation-utils.mjs +23 -4
- package/esm2020/core/common/utilities/selection-manager.mjs +64 -0
- package/esm2020/core/common/version.mjs +2 -2
- package/esm2020/core/components/app-shell/app-shell.component.mjs +6 -5
- package/esm2020/core/components/main-nav/main-nav.component.mjs +3 -3
- package/esm2020/core/core.module.mjs +1 -1
- package/esm2020/core/data/definitions/collection-definitions.mjs +19 -1
- package/esm2020/core/data/definitions/customer-definitions.mjs +241 -241
- package/esm2020/core/data/definitions/order-definitions.mjs +431 -429
- package/esm2020/core/data/definitions/shared-definitions.mjs +29 -28
- package/esm2020/core/data/providers/collection-data.service.mjs +7 -2
- package/esm2020/core/data/providers/promotion-data.service.mjs +3 -2
- package/esm2020/core/providers/local-storage/local-storage.service.mjs +1 -1
- package/esm2020/core/public_api.mjs +8 -2
- package/esm2020/core/shared/components/address-form/address-form.component.mjs +3 -3
- package/esm2020/core/shared/components/asset-gallery/asset-gallery.component.mjs +33 -50
- package/esm2020/core/shared/components/asset-preview/asset-preview.component.mjs +4 -4
- package/esm2020/core/shared/components/configurable-input/configurable-input.component.mjs +22 -10
- package/esm2020/core/shared/components/custom-field-control/custom-field-control.component.mjs +10 -4
- package/esm2020/core/shared/components/data-table/data-table.component.mjs +10 -3
- package/esm2020/core/shared/components/facet-value-selector/facet-value-selector.component.mjs +7 -3
- package/esm2020/core/shared/components/formatted-address/formatted-address.component.mjs +3 -3
- package/esm2020/core/shared/components/help-tooltip/help-tooltip.component.mjs +2 -2
- package/esm2020/core/shared/components/object-tree/object-tree.component.mjs +4 -4
- package/esm2020/core/shared/components/product-multi-selector-dialog/product-multi-selector-dialog.component.mjs +135 -0
- package/esm2020/core/shared/components/product-search-input/product-search-input.component.mjs +108 -0
- package/esm2020/core/shared/components/product-variant-selector/product-variant-selector.component.mjs +62 -0
- package/esm2020/core/shared/components/rich-text-editor/rich-text-editor.component.mjs +2 -2
- package/esm2020/core/shared/components/select-toggle/select-toggle.component.mjs +6 -3
- package/esm2020/core/shared/dynamic-form-inputs/combination-mode-form-input/combination-mode-form-input.component.mjs +45 -0
- package/esm2020/core/shared/dynamic-form-inputs/facet-value-form-input/facet-value-form-input.component.mjs +12 -3
- package/esm2020/core/shared/dynamic-form-inputs/product-multi-selector-form-input/product-multi-selector-form-input.component.mjs +48 -0
- package/esm2020/core/shared/dynamic-form-inputs/product-selector-form-input/product-selector-form-input.component.mjs +4 -4
- package/esm2020/core/shared/dynamic-form-inputs/register-dynamic-input-components.mjs +5 -1
- package/esm2020/core/shared/dynamic-form-inputs/relation-form-input/asset/relation-asset-input.component.mjs +11 -9
- package/esm2020/core/shared/dynamic-form-inputs/relation-form-input/generic/relation-generic-input.component.mjs +54 -0
- package/esm2020/core/shared/dynamic-form-inputs/relation-form-input/relation-form-input.component.mjs +5 -4
- package/esm2020/core/shared/dynamic-form-inputs/select-form-input/select-form-input.component.mjs +21 -11
- package/esm2020/core/shared/pipes/custom-field-label.pipe.mjs +7 -19
- package/esm2020/core/shared/shared.module.mjs +29 -9
- package/esm2020/customer/components/customer-group-list/customer-group-list.component.mjs +29 -15
- package/esm2020/dashboard/components/dashboard/dashboard.component.mjs +2 -2
- package/esm2020/dashboard/components/dashboard-widget/dashboard-widget.component.mjs +2 -2
- package/esm2020/dashboard/widgets/order-summary-widget/order-summary-widget.component.mjs +2 -2
- package/esm2020/login/components/login/login.component.mjs +3 -3
- package/esm2020/marketing/components/promotion-detail/promotion-detail.component.mjs +3 -3
- package/esm2020/order/components/cancel-order-dialog/cancel-order-dialog.component.mjs +8 -4
- package/esm2020/order/components/fulfill-order-dialog/fulfill-order-dialog.component.mjs +1 -1
- package/esm2020/order/components/order-custom-fields-card/order-custom-fields-card.component.mjs +30 -6
- package/esm2020/order/components/order-detail/order-detail.component.mjs +31 -19
- package/esm2020/order/components/order-editor/order-editor.component.mjs +26 -10
- package/esm2020/order/components/order-list/order-list.component.mjs +23 -16
- package/esm2020/order/components/order-table/order-table.component.mjs +11 -3
- package/esm2020/order/components/refund-order-dialog/refund-order-dialog.component.mjs +8 -4
- package/esm2020/settings/components/payment-method-detail/payment-method-detail.component.mjs +1 -1
- package/esm2020/settings/components/permission-grid/permission-grid.component.mjs +1 -1
- package/esm2020/settings/components/shipping-method-detail/shipping-method-detail.component.mjs +1 -1
- package/esm2020/settings/components/test-order-builder/test-order-builder.component.mjs +3 -3
- package/fesm2015/vendure-admin-ui-catalog.mjs +218 -170
- package/fesm2015/vendure-admin-ui-catalog.mjs.map +1 -1
- package/fesm2015/vendure-admin-ui-core.mjs +3008 -2422
- package/fesm2015/vendure-admin-ui-core.mjs.map +1 -1
- package/fesm2015/vendure-admin-ui-customer.mjs +29 -17
- package/fesm2015/vendure-admin-ui-customer.mjs.map +1 -1
- package/fesm2015/vendure-admin-ui-dashboard.mjs +5 -5
- package/fesm2015/vendure-admin-ui-dashboard.mjs.map +1 -1
- package/fesm2015/vendure-admin-ui-login.mjs +2 -2
- package/fesm2015/vendure-admin-ui-login.mjs.map +1 -1
- package/fesm2015/vendure-admin-ui-marketing.mjs +2 -2
- package/fesm2015/vendure-admin-ui-marketing.mjs.map +1 -1
- package/fesm2015/vendure-admin-ui-order.mjs +125 -53
- package/fesm2015/vendure-admin-ui-order.mjs.map +1 -1
- package/fesm2015/vendure-admin-ui-settings.mjs +5 -5
- package/fesm2015/vendure-admin-ui-settings.mjs.map +1 -1
- package/fesm2020/vendure-admin-ui-catalog.mjs +216 -172
- package/fesm2020/vendure-admin-ui-catalog.mjs.map +1 -1
- package/fesm2020/vendure-admin-ui-core.mjs +2998 -2415
- package/fesm2020/vendure-admin-ui-core.mjs.map +1 -1
- package/fesm2020/vendure-admin-ui-customer.mjs +29 -17
- package/fesm2020/vendure-admin-ui-customer.mjs.map +1 -1
- package/fesm2020/vendure-admin-ui-dashboard.mjs +5 -5
- package/fesm2020/vendure-admin-ui-dashboard.mjs.map +1 -1
- package/fesm2020/vendure-admin-ui-login.mjs +2 -2
- package/fesm2020/vendure-admin-ui-login.mjs.map +1 -1
- package/fesm2020/vendure-admin-ui-marketing.mjs +2 -2
- package/fesm2020/vendure-admin-ui-marketing.mjs.map +1 -1
- package/fesm2020/vendure-admin-ui-order.mjs +123 -52
- package/fesm2020/vendure-admin-ui-order.mjs.map +1 -1
- package/fesm2020/vendure-admin-ui-settings.mjs +5 -5
- package/fesm2020/vendure-admin-ui-settings.mjs.map +1 -1
- package/order/components/order-custom-fields-card/order-custom-fields-card.component.d.ts +4 -2
- package/order/components/order-editor/order-editor.component.d.ts +8 -2
- package/order/components/order-list/order-list.component.d.ts +1 -0
- package/order/components/order-table/order-table.component.d.ts +1 -0
- package/package.json +2 -2
- package/static/i18n-messages/cs.json +21 -3
- package/static/i18n-messages/de.json +21 -3
- package/static/i18n-messages/en.json +20 -2
- package/static/i18n-messages/es.json +21 -3
- package/static/i18n-messages/fr.json +21 -3
- package/static/i18n-messages/it.json +21 -3
- package/static/i18n-messages/pl.json +21 -3
- package/static/i18n-messages/pt_BR.json +21 -3
- package/static/i18n-messages/pt_PT.json +21 -3
- package/static/i18n-messages/ru.json +21 -3
- package/static/i18n-messages/uk.json +21 -3
- package/static/i18n-messages/zh_Hans.json +21 -3
- package/static/i18n-messages/zh_Hant.json +21 -3
- package/static/styles/_variables.scss +3 -0
- package/static/styles/global/_forms.scss +4 -5
- package/static/styles/global/_overrides.scss +10 -0
- package/static/styles/global/_sass-overrides.scss +3 -0
- package/static/styles/global/_utilities.scss +9 -0
- package/static/styles/styles.scss +1 -0
- package/static/styles/theme/default.scss +13 -1
- package/static/styles/ui-extension-theme.scss +1 -0
- package/static/theme.min.css +1 -1
- package/static/vendure-ui-config.json +25 -10
- package/esm2020/catalog/components/product-search-input/product-search-input.component.mjs +0 -107
- package/esm2020/core/shared/components/product-selector/product-selector.component.mjs +0 -62
|
@@ -36,12 +36,13 @@ export declare class FacetValueSelectorComponent implements OnInit, ControlValue
|
|
|
36
36
|
selectedValuesChange: EventEmitter<FacetValueFragment[]>;
|
|
37
37
|
facets: FacetWithValuesFragment[];
|
|
38
38
|
readonly: boolean;
|
|
39
|
+
transformControlValueAccessorValue: (value: FacetValueSeletorItem[]) => any[];
|
|
39
40
|
private ngSelect;
|
|
40
41
|
facetValues: FacetValueSeletorItem[];
|
|
41
42
|
onChangeFn: (val: any) => void;
|
|
42
43
|
onTouchFn: () => void;
|
|
43
44
|
disabled: boolean;
|
|
44
|
-
value: string
|
|
45
|
+
value: Array<string | FacetValueFragment>;
|
|
45
46
|
constructor(dataService: DataService);
|
|
46
47
|
ngOnInit(): void;
|
|
47
48
|
onChange(selected: FacetValueSeletorItem[]): void;
|
|
@@ -52,5 +53,5 @@ export declare class FacetValueSelectorComponent implements OnInit, ControlValue
|
|
|
52
53
|
writeValue(obj: string | FacetValueFragment[] | Array<string | number> | null): void;
|
|
53
54
|
private toSelectorItem;
|
|
54
55
|
static ɵfac: i0.ɵɵFactoryDeclaration<FacetValueSelectorComponent, never>;
|
|
55
|
-
static ɵcmp: i0.ɵɵComponentDeclaration<FacetValueSelectorComponent, "vdr-facet-value-selector", never, { "facets": "facets"; "readonly": "readonly"; }, { "selectedValuesChange": "selectedValuesChange"; }, never, never>;
|
|
56
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<FacetValueSelectorComponent, "vdr-facet-value-selector", never, { "facets": "facets"; "readonly": "readonly"; "transformControlValueAccessorValue": "transformControlValueAccessorValue"; }, { "selectedValuesChange": "selectedValuesChange"; }, never, never>;
|
|
56
57
|
}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { OnChanges } from '@angular/core';
|
|
2
2
|
import * as i0 from "@angular/core";
|
|
3
3
|
/**
|
|
4
4
|
* @description
|
|
@@ -11,7 +11,7 @@ import * as i0 from "@angular/core";
|
|
|
11
11
|
*
|
|
12
12
|
* @docsCategory components
|
|
13
13
|
*/
|
|
14
|
-
export declare class ObjectTreeComponent implements
|
|
14
|
+
export declare class ObjectTreeComponent implements OnChanges {
|
|
15
15
|
value: {
|
|
16
16
|
[key: string]: any;
|
|
17
17
|
} | string;
|
|
@@ -24,7 +24,7 @@ export declare class ObjectTreeComponent implements OnInit {
|
|
|
24
24
|
value: any;
|
|
25
25
|
}>;
|
|
26
26
|
constructor(parent: ObjectTreeComponent);
|
|
27
|
-
|
|
27
|
+
ngOnChanges(): void;
|
|
28
28
|
isObject(value: any): boolean;
|
|
29
29
|
private getEntries;
|
|
30
30
|
static ɵfac: i0.ɵɵFactoryDeclaration<ObjectTreeComponent, [{ optional: true; skipSelf: true; }]>;
|
|
@@ -0,0 +1,38 @@
|
|
|
1
|
+
import { ChangeDetectorRef, OnInit } from '@angular/core';
|
|
2
|
+
import { PaginationInstance } from 'ngx-pagination';
|
|
3
|
+
import { BehaviorSubject, Observable } from 'rxjs';
|
|
4
|
+
import { SearchProductsQuery } from '../../../common/generated-types';
|
|
5
|
+
import { SelectionManager } from '../../../common/utilities/selection-manager';
|
|
6
|
+
import { DataService } from '../../../data/providers/data.service';
|
|
7
|
+
import { Dialog } from '../../../providers/modal/modal.types';
|
|
8
|
+
import * as i0 from "@angular/core";
|
|
9
|
+
export declare type SearchItem = SearchProductsQuery['search']['items'][number];
|
|
10
|
+
export declare class ProductMultiSelectorDialogComponent implements OnInit, Dialog<SearchItem[]> {
|
|
11
|
+
private dataService;
|
|
12
|
+
private changeDetector;
|
|
13
|
+
mode: 'product' | 'variant';
|
|
14
|
+
initialSelectionIds: string[];
|
|
15
|
+
items$: Observable<SearchItem[]>;
|
|
16
|
+
facetValues$: Observable<SearchProductsQuery['search']['facetValues']>;
|
|
17
|
+
searchTerm$: BehaviorSubject<string>;
|
|
18
|
+
searchFacetValueIds$: BehaviorSubject<string[]>;
|
|
19
|
+
paginationConfig: PaginationInstance;
|
|
20
|
+
selectionManager: SelectionManager<SearchItem>;
|
|
21
|
+
resolveWith: (result?: SearchItem[]) => void;
|
|
22
|
+
private paginationConfig$;
|
|
23
|
+
constructor(dataService: DataService, changeDetector: ChangeDetectorRef);
|
|
24
|
+
ngOnInit(): void;
|
|
25
|
+
trackByFn(index: number, item: SearchItem): string;
|
|
26
|
+
setSearchTerm(term: string): void;
|
|
27
|
+
setFacetValueIds(ids: string[]): void;
|
|
28
|
+
toggleSelection(item: SearchItem, event: MouseEvent): void;
|
|
29
|
+
clearSelection(): void;
|
|
30
|
+
isSelected(item: SearchItem): boolean;
|
|
31
|
+
entityInfoClick(event: MouseEvent): void;
|
|
32
|
+
pageChange(page: number): void;
|
|
33
|
+
itemsPerPageChange(itemsPerPage: number): void;
|
|
34
|
+
select(): void;
|
|
35
|
+
cancel(): void;
|
|
36
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<ProductMultiSelectorDialogComponent, never>;
|
|
37
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<ProductMultiSelectorDialogComponent, "vdr-product-multi-selector-dialog", never, {}, {}, never, never>;
|
|
38
|
+
}
|
package/{catalog → core/shared}/components/product-search-input/product-search-input.component.d.ts
RENAMED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { EventEmitter } from '@angular/core';
|
|
2
|
-
import { SearchProductsQuery } from '
|
|
2
|
+
import { SearchProductsQuery } from '../../../common/generated-types';
|
|
3
3
|
import * as i0 from "@angular/core";
|
|
4
4
|
declare type FacetValueResult = SearchProductsQuery['search']['facetValues'][number];
|
|
5
5
|
export declare class ProductSearchInputComponent {
|
|
@@ -9,13 +9,13 @@ import * as i0 from "@angular/core";
|
|
|
9
9
|
*
|
|
10
10
|
* @example
|
|
11
11
|
* ```HTML
|
|
12
|
-
* <vdr-product-selector
|
|
12
|
+
* <vdr-product-variant-selector
|
|
13
13
|
* (productSelected)="selectResult($event)"></vdr-product-selector>
|
|
14
14
|
* ```
|
|
15
15
|
*
|
|
16
16
|
* @docsCategory components
|
|
17
17
|
*/
|
|
18
|
-
export declare class
|
|
18
|
+
export declare class ProductVariantSelectorComponent implements OnInit {
|
|
19
19
|
private dataService;
|
|
20
20
|
searchInput$: Subject<string>;
|
|
21
21
|
searchLoading: boolean;
|
|
@@ -53,6 +53,6 @@ export declare class ProductSelectorComponent implements OnInit {
|
|
|
53
53
|
ngOnInit(): void;
|
|
54
54
|
private initSearchResults;
|
|
55
55
|
selectResult(product?: ProductSelectorSearchQuery['search']['items'][number]): void;
|
|
56
|
-
static ɵfac: i0.ɵɵFactoryDeclaration<
|
|
57
|
-
static ɵcmp: i0.ɵɵComponentDeclaration<
|
|
56
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<ProductVariantSelectorComponent, never>;
|
|
57
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<ProductVariantSelectorComponent, "vdr-product-variant-selector", never, {}, { "productSelected": "productSelected"; }, never, never>;
|
|
58
58
|
}
|
|
@@ -6,9 +6,10 @@ import * as i0 from "@angular/core";
|
|
|
6
6
|
export declare class SelectToggleComponent {
|
|
7
7
|
size: 'small' | 'large';
|
|
8
8
|
selected: boolean;
|
|
9
|
+
hiddenWhenOff: boolean;
|
|
9
10
|
disabled: boolean;
|
|
10
11
|
label: string | undefined;
|
|
11
12
|
selectedChange: EventEmitter<boolean>;
|
|
12
13
|
static ɵfac: i0.ɵɵFactoryDeclaration<SelectToggleComponent, never>;
|
|
13
|
-
static ɵcmp: i0.ɵɵComponentDeclaration<SelectToggleComponent, "vdr-select-toggle", never, { "size": "size"; "selected": "selected"; "disabled": "disabled"; "label": "label"; }, { "selectedChange": "selectedChange"; }, never, never>;
|
|
14
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<SelectToggleComponent, "vdr-select-toggle", never, { "size": "size"; "selected": "selected"; "hiddenWhenOff": "hiddenWhenOff"; "disabled": "disabled"; "label": "label"; }, { "selectedChange": "selectedChange"; }, never, never>;
|
|
14
15
|
}
|
|
@@ -0,0 +1,28 @@
|
|
|
1
|
+
import { OnInit } from '@angular/core';
|
|
2
|
+
import { FormControl } from '@angular/forms';
|
|
3
|
+
import { DefaultFormComponentConfig, DefaultFormComponentId } from '@vendure/common/lib/shared-types';
|
|
4
|
+
import { Observable } from 'rxjs';
|
|
5
|
+
import { FormInputComponent } from '../../../common/component-registry-types';
|
|
6
|
+
import { ConfigurableInputComponent } from '../../components/configurable-input/configurable-input.component';
|
|
7
|
+
import * as i0 from "@angular/core";
|
|
8
|
+
/**
|
|
9
|
+
* @description
|
|
10
|
+
* A special input used to display the "Combination mode" AND/OR toggle.
|
|
11
|
+
*
|
|
12
|
+
* @docsCategory custom-input-components
|
|
13
|
+
* @docsPage default-inputs
|
|
14
|
+
*/
|
|
15
|
+
export declare class CombinationModeFormInputComponent implements FormInputComponent, OnInit {
|
|
16
|
+
private configurableInputComponent;
|
|
17
|
+
static readonly id: DefaultFormComponentId;
|
|
18
|
+
readonly: boolean;
|
|
19
|
+
formControl: FormControl;
|
|
20
|
+
config: DefaultFormComponentConfig<'combination-mode-form-input'>;
|
|
21
|
+
selectable$: Observable<boolean>;
|
|
22
|
+
constructor(configurableInputComponent: ConfigurableInputComponent);
|
|
23
|
+
ngOnInit(): void;
|
|
24
|
+
setCombinationModeAnd(): void;
|
|
25
|
+
setCombinationModeOr(): void;
|
|
26
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<CombinationModeFormInputComponent, [{ optional: true; }]>;
|
|
27
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<CombinationModeFormInputComponent, "vdr-combination-mode-form-input", never, {}, {}, never, never>;
|
|
28
|
+
}
|
package/core/shared/dynamic-form-inputs/facet-value-form-input/facet-value-form-input.component.d.ts
CHANGED
|
@@ -5,6 +5,7 @@ import { Observable } from 'rxjs';
|
|
|
5
5
|
import { FormInputComponent, InputComponentConfig } from '../../../common/component-registry-types';
|
|
6
6
|
import { FacetWithValuesFragment } from '../../../common/generated-types';
|
|
7
7
|
import { DataService } from '../../../data/providers/data.service';
|
|
8
|
+
import { FacetValueSeletorItem } from '../../components/facet-value-selector/facet-value-selector.component';
|
|
8
9
|
import * as i0 from "@angular/core";
|
|
9
10
|
/**
|
|
10
11
|
* @description
|
|
@@ -24,6 +25,7 @@ export declare class FacetValueFormInputComponent implements FormInputComponent,
|
|
|
24
25
|
config: InputComponentConfig;
|
|
25
26
|
constructor(dataService: DataService);
|
|
26
27
|
ngOnInit(): void;
|
|
28
|
+
valueTransformFn: (values: FacetValueSeletorItem[]) => string | FacetValueSeletorItem[];
|
|
27
29
|
static ɵfac: i0.ɵɵFactoryDeclaration<FacetValueFormInputComponent, never>;
|
|
28
30
|
static ɵcmp: i0.ɵɵComponentDeclaration<FacetValueFormInputComponent, "vdr-facet-value-form-input", never, {}, {}, never, never>;
|
|
29
31
|
}
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
import { ChangeDetectorRef, OnInit } from '@angular/core';
|
|
2
|
+
import { FormControl } from '@angular/forms';
|
|
3
|
+
import { DefaultFormComponentConfig, DefaultFormComponentId } from '@vendure/common/lib/shared-types';
|
|
4
|
+
import { FormInputComponent } from '../../../common/component-registry-types';
|
|
5
|
+
import { DataService } from '../../../data/providers/data.service';
|
|
6
|
+
import { ModalService } from '../../../providers/modal/modal.service';
|
|
7
|
+
import * as i0 from "@angular/core";
|
|
8
|
+
export declare class ProductMultiSelectorFormInputComponent implements OnInit, FormInputComponent {
|
|
9
|
+
private modalService;
|
|
10
|
+
private dataService;
|
|
11
|
+
private changeDetector;
|
|
12
|
+
config: DefaultFormComponentConfig<'product-multi-form-input'>;
|
|
13
|
+
formControl: FormControl;
|
|
14
|
+
readonly: boolean;
|
|
15
|
+
mode: 'product' | 'variant';
|
|
16
|
+
readonly isListInput = true;
|
|
17
|
+
static readonly id: DefaultFormComponentId;
|
|
18
|
+
constructor(modalService: ModalService, dataService: DataService, changeDetector: ChangeDetectorRef);
|
|
19
|
+
ngOnInit(): void;
|
|
20
|
+
select(): void;
|
|
21
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<ProductMultiSelectorFormInputComponent, never>;
|
|
22
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<ProductMultiSelectorFormInputComponent, "vdr-product-multi-selector-form-input", never, { "config": "config"; "formControl": "formControl"; "readonly": "readonly"; }, {}, never, never>;
|
|
23
|
+
}
|
|
@@ -2,12 +2,15 @@ import { FactoryProvider, Type } from '@angular/core';
|
|
|
2
2
|
import { FormInputComponent } from '../../common/component-registry-types';
|
|
3
3
|
import { CustomFieldControl, CustomFieldEntityName } from '../../providers/custom-field-component/custom-field-component.service';
|
|
4
4
|
import { JsonEditorFormInputComponent } from './code-editor-form-input/json-editor-form-input.component';
|
|
5
|
+
import { CombinationModeFormInputComponent } from './combination-mode-form-input/combination-mode-form-input.component';
|
|
5
6
|
import { CurrencyFormInputComponent } from './currency-form-input/currency-form-input.component';
|
|
6
7
|
import { CustomerGroupFormInputComponent } from './customer-group-form-input/customer-group-form-input.component';
|
|
7
8
|
import { FacetValueFormInputComponent } from './facet-value-form-input/facet-value-form-input.component';
|
|
8
9
|
import { PasswordFormInputComponent } from './password-form-input/password-form-input.component';
|
|
10
|
+
import { ProductMultiSelectorFormInputComponent } from './product-multi-selector-form-input/product-multi-selector-form-input.component';
|
|
9
11
|
import { ProductSelectorFormInputComponent } from './product-selector-form-input/product-selector-form-input.component';
|
|
10
|
-
|
|
12
|
+
import { SelectFormInputComponent } from './select-form-input/select-form-input.component';
|
|
13
|
+
export declare const defaultFormInputs: (typeof JsonEditorFormInputComponent | typeof CombinationModeFormInputComponent | typeof CurrencyFormInputComponent | typeof CustomerGroupFormInputComponent | typeof FacetValueFormInputComponent | typeof PasswordFormInputComponent | typeof ProductMultiSelectorFormInputComponent | typeof ProductSelectorFormInputComponent | typeof SelectFormInputComponent)[];
|
|
11
14
|
/**
|
|
12
15
|
* @description
|
|
13
16
|
* Registers a custom FormInputComponent which can be used to control the argument inputs
|
|
@@ -1,15 +1,18 @@
|
|
|
1
1
|
import { OnInit } from '@angular/core';
|
|
2
2
|
import { FormControl } from '@angular/forms';
|
|
3
|
+
import { DefaultFormComponentId } from '@vendure/common/lib/shared-types';
|
|
3
4
|
import { Observable } from 'rxjs';
|
|
5
|
+
import { FormInputComponent } from '../../../../common/component-registry-types';
|
|
4
6
|
import { GetAssetQuery, RelationCustomFieldConfig } from '../../../../common/generated-types';
|
|
5
7
|
import { DataService } from '../../../../data/providers/data.service';
|
|
6
8
|
import { ModalService } from '../../../../providers/modal/modal.service';
|
|
7
9
|
import * as i0 from "@angular/core";
|
|
8
|
-
export declare class RelationAssetInputComponent implements OnInit {
|
|
10
|
+
export declare class RelationAssetInputComponent implements FormInputComponent, OnInit {
|
|
9
11
|
private modalService;
|
|
10
12
|
private dataService;
|
|
13
|
+
static readonly id: DefaultFormComponentId;
|
|
11
14
|
readonly: boolean;
|
|
12
|
-
|
|
15
|
+
formControl: FormControl;
|
|
13
16
|
config: RelationCustomFieldConfig;
|
|
14
17
|
asset$: Observable<GetAssetQuery['asset'] | undefined>;
|
|
15
18
|
constructor(modalService: ModalService, dataService: DataService);
|
|
@@ -18,5 +21,5 @@ export declare class RelationAssetInputComponent implements OnInit {
|
|
|
18
21
|
remove(): void;
|
|
19
22
|
previewAsset(asset: NonNullable<GetAssetQuery['asset']>): void;
|
|
20
23
|
static ɵfac: i0.ɵɵFactoryDeclaration<RelationAssetInputComponent, never>;
|
|
21
|
-
static ɵcmp: i0.ɵɵComponentDeclaration<RelationAssetInputComponent, "vdr-relation-asset-input", never, { "readonly": "readonly"; "
|
|
24
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<RelationAssetInputComponent, "vdr-relation-asset-input", never, { "readonly": "readonly"; "formControl": "parentFormControl"; "config": "config"; }, {}, never, never>;
|
|
22
25
|
}
|
|
@@ -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
|
+
}
|
|
@@ -1,7 +1,10 @@
|
|
|
1
|
+
import { OnInit } from '@angular/core';
|
|
1
2
|
import { FormControl } from '@angular/forms';
|
|
2
3
|
import { DefaultFormComponentConfig, DefaultFormComponentId } from '@vendure/common/lib/shared-types';
|
|
4
|
+
import { Observable } from 'rxjs';
|
|
3
5
|
import { FormInputComponent } from '../../../common/component-registry-types';
|
|
4
|
-
import { CustomFieldConfigFragment } from '../../../common/generated-types';
|
|
6
|
+
import { CustomFieldConfigFragment, LanguageCode } from '../../../common/generated-types';
|
|
7
|
+
import { DataService } from '../../../data/providers/data.service';
|
|
5
8
|
import * as i0 from "@angular/core";
|
|
6
9
|
/**
|
|
7
10
|
* @description
|
|
@@ -11,12 +14,17 @@ import * as i0 from "@angular/core";
|
|
|
11
14
|
* @docsCategory custom-input-components
|
|
12
15
|
* @docsPage default-inputs
|
|
13
16
|
*/
|
|
14
|
-
export declare class SelectFormInputComponent implements FormInputComponent {
|
|
17
|
+
export declare class SelectFormInputComponent implements FormInputComponent, OnInit {
|
|
18
|
+
private dataService;
|
|
15
19
|
static readonly id: DefaultFormComponentId;
|
|
16
20
|
readonly: boolean;
|
|
17
21
|
formControl: FormControl;
|
|
18
22
|
config: DefaultFormComponentConfig<'select-form-input'> & CustomFieldConfigFragment;
|
|
23
|
+
uiLanguage$: Observable<LanguageCode>;
|
|
19
24
|
get options(): any;
|
|
25
|
+
constructor(dataService: DataService);
|
|
26
|
+
ngOnInit(): void;
|
|
27
|
+
trackByFn(index: number, item: any): any;
|
|
20
28
|
static ɵfac: i0.ɵɵFactoryDeclaration<SelectFormInputComponent, never>;
|
|
21
29
|
static ɵcmp: i0.ɵɵComponentDeclaration<SelectFormInputComponent, "vdr-select-form-input", never, { "readonly": "readonly"; }, {}, never, never>;
|
|
22
30
|
}
|
|
@@ -1,18 +1,12 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import { CustomFieldConfig, StringFieldOption } from '../../common/generated-types';
|
|
3
|
-
import { DataService } from '../../data/providers/data.service';
|
|
1
|
+
import { PipeTransform } from '@angular/core';
|
|
2
|
+
import { CustomFieldConfig, LanguageCode, StringFieldOption } from '../../common/generated-types';
|
|
4
3
|
import * as i0 from "@angular/core";
|
|
5
4
|
/**
|
|
6
5
|
* Displays a localized label for a CustomField or StringFieldOption, falling back to the
|
|
7
6
|
* name/value if none are defined.
|
|
8
7
|
*/
|
|
9
|
-
export declare class CustomFieldLabelPipe implements PipeTransform
|
|
10
|
-
|
|
11
|
-
private readonly subscription;
|
|
12
|
-
private uiLanguageCode;
|
|
13
|
-
constructor(dataService: DataService);
|
|
14
|
-
transform(value: CustomFieldConfig | StringFieldOption): string;
|
|
15
|
-
ngOnDestroy(): void;
|
|
8
|
+
export declare class CustomFieldLabelPipe implements PipeTransform {
|
|
9
|
+
transform(value: CustomFieldConfig | StringFieldOption, uiLanguageCode: LanguageCode | null): string;
|
|
16
10
|
private isCustomFieldConfig;
|
|
17
11
|
static ɵfac: i0.ɵɵFactoryDeclaration<CustomFieldLabelPipe, never>;
|
|
18
12
|
static ɵpipe: i0.ɵɵPipeDeclaration<CustomFieldLabelPipe, "customFieldLabel">;
|
|
@@ -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";
|
|
@@ -90,34 +90,39 @@ import * as i85 from "./components/tabbed-custom-fields/tabbed-custom-fields.com
|
|
|
90
90
|
import * as i86 from "./components/ui-extension-point/ui-extension-point.component";
|
|
91
91
|
import * as i87 from "./components/custom-detail-component-host/custom-detail-component-host.component";
|
|
92
92
|
import * as i88 from "./components/asset-preview-links/asset-preview-links.component";
|
|
93
|
-
import * as i89 from "./
|
|
94
|
-
import * as i90 from "./
|
|
95
|
-
import * as i91 from "./dynamic-form-inputs/
|
|
96
|
-
import * as i92 from "./dynamic-form-inputs/
|
|
97
|
-
import * as i93 from "./dynamic-form-inputs/
|
|
98
|
-
import * as i94 from "./dynamic-form-inputs/
|
|
99
|
-
import * as i95 from "./dynamic-form-inputs/
|
|
100
|
-
import * as i96 from "./dynamic-form-inputs/
|
|
101
|
-
import * as i97 from "./dynamic-form-inputs/
|
|
102
|
-
import * as i98 from "./dynamic-form-inputs/
|
|
103
|
-
import * as i99 from "./dynamic-form-inputs/
|
|
104
|
-
import * as i100 from "./dynamic-form-inputs/relation-form-input/
|
|
105
|
-
import * as i101 from "./dynamic-form-inputs/relation-form-input/
|
|
106
|
-
import * as i102 from "./dynamic-form-inputs/relation-form-input/
|
|
107
|
-
import * as i103 from "./dynamic-form-inputs/
|
|
108
|
-
import * as i104 from "./dynamic-form-inputs/
|
|
109
|
-
import * as i105 from "./dynamic-form-inputs/
|
|
110
|
-
import * as i106 from "
|
|
111
|
-
import * as i107 from "
|
|
112
|
-
import * as i108 from "
|
|
113
|
-
import * as i109 from "
|
|
114
|
-
import * as i110 from "
|
|
115
|
-
import * as i111 from "
|
|
116
|
-
import * as i112 from "@
|
|
117
|
-
import * as i113 from "@angular/
|
|
118
|
-
import * as i114 from "@angular/
|
|
93
|
+
import * as i89 from "./components/product-multi-selector-dialog/product-multi-selector-dialog.component";
|
|
94
|
+
import * as i90 from "./components/product-search-input/product-search-input.component";
|
|
95
|
+
import * as i91 from "./dynamic-form-inputs/text-form-input/text-form-input.component";
|
|
96
|
+
import * as i92 from "./dynamic-form-inputs/password-form-input/password-form-input.component";
|
|
97
|
+
import * as i93 from "./dynamic-form-inputs/number-form-input/number-form-input.component";
|
|
98
|
+
import * as i94 from "./dynamic-form-inputs/date-form-input/date-form-input.component";
|
|
99
|
+
import * as i95 from "./dynamic-form-inputs/currency-form-input/currency-form-input.component";
|
|
100
|
+
import * as i96 from "./dynamic-form-inputs/boolean-form-input/boolean-form-input.component";
|
|
101
|
+
import * as i97 from "./dynamic-form-inputs/select-form-input/select-form-input.component";
|
|
102
|
+
import * as i98 from "./dynamic-form-inputs/facet-value-form-input/facet-value-form-input.component";
|
|
103
|
+
import * as i99 from "./dynamic-form-inputs/dynamic-form-input/dynamic-form-input.component";
|
|
104
|
+
import * as i100 from "./dynamic-form-inputs/relation-form-input/relation-form-input.component";
|
|
105
|
+
import * as i101 from "./dynamic-form-inputs/relation-form-input/asset/relation-asset-input.component";
|
|
106
|
+
import * as i102 from "./dynamic-form-inputs/relation-form-input/product/relation-product-input.component";
|
|
107
|
+
import * as i103 from "./dynamic-form-inputs/relation-form-input/product-variant/relation-product-variant-input.component";
|
|
108
|
+
import * as i104 from "./dynamic-form-inputs/relation-form-input/customer/relation-customer-input.component";
|
|
109
|
+
import * as i105 from "./dynamic-form-inputs/relation-form-input/generic/relation-generic-input.component";
|
|
110
|
+
import * as i106 from "./dynamic-form-inputs/textarea-form-input/textarea-form-input.component";
|
|
111
|
+
import * as i107 from "./dynamic-form-inputs/rich-text-form-input/rich-text-form-input.component";
|
|
112
|
+
import * as i108 from "./dynamic-form-inputs/code-editor-form-input/json-editor-form-input.component";
|
|
113
|
+
import * as i109 from "./dynamic-form-inputs/product-multi-selector-form-input/product-multi-selector-form-input.component";
|
|
114
|
+
import * as i110 from "./dynamic-form-inputs/combination-mode-form-input/combination-mode-form-input.component";
|
|
115
|
+
import * as i111 from "@clr/angular";
|
|
116
|
+
import * as i112 from "@angular/common";
|
|
117
|
+
import * as i113 from "@angular/forms";
|
|
118
|
+
import * as i114 from "@angular/router";
|
|
119
|
+
import * as i115 from "@ng-select/ng-select";
|
|
120
|
+
import * as i116 from "ngx-pagination";
|
|
121
|
+
import * as i117 from "@ngx-translate/core";
|
|
122
|
+
import * as i118 from "@angular/cdk/overlay";
|
|
123
|
+
import * as i119 from "@angular/cdk/drag-drop";
|
|
119
124
|
export declare class SharedModule {
|
|
120
125
|
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.
|
|
126
|
+
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.ProductMultiSelectorDialogComponent, typeof i90.ProductSearchInputComponent, typeof i91.TextFormInputComponent, typeof i92.PasswordFormInputComponent, typeof i93.NumberFormInputComponent, typeof i94.DateFormInputComponent, typeof i95.CurrencyFormInputComponent, typeof i96.BooleanFormInputComponent, typeof i97.SelectFormInputComponent, typeof i98.FacetValueFormInputComponent, typeof i99.DynamicFormInputComponent, typeof i100.RelationFormInputComponent, typeof i101.RelationAssetInputComponent, typeof i102.RelationProductInputComponent, typeof i103.RelationProductVariantInputComponent, typeof i104.RelationCustomerInputComponent, typeof i83.RelationCardPreviewDirective, typeof i83.RelationCardDetailDirective, typeof i82.RelationSelectorDialogComponent, typeof i105.RelationGenericInputComponent, typeof i106.TextareaFormInputComponent, typeof i107.RichTextFormInputComponent, typeof i108.JsonEditorFormInputComponent, typeof i109.ProductMultiSelectorFormInputComponent, typeof i110.CombinationModeFormInputComponent], [typeof i111.ClarityModule, typeof i112.CommonModule, typeof i113.FormsModule, typeof i113.ReactiveFormsModule, typeof i114.RouterModule, typeof i115.NgSelectModule, typeof i116.NgxPaginationModule, typeof i117.TranslateModule, typeof i118.OverlayModule, typeof i119.DragDropModule], [typeof i111.ClarityModule, typeof i112.CommonModule, typeof i113.FormsModule, typeof i113.ReactiveFormsModule, typeof i114.RouterModule, typeof i115.NgSelectModule, typeof i116.NgxPaginationModule, typeof i117.TranslateModule, typeof i118.OverlayModule, typeof i119.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.ProductMultiSelectorDialogComponent, typeof i90.ProductSearchInputComponent, typeof i91.TextFormInputComponent, typeof i92.PasswordFormInputComponent, typeof i93.NumberFormInputComponent, typeof i94.DateFormInputComponent, typeof i95.CurrencyFormInputComponent, typeof i96.BooleanFormInputComponent, typeof i97.SelectFormInputComponent, typeof i98.FacetValueFormInputComponent, typeof i99.DynamicFormInputComponent, typeof i100.RelationFormInputComponent, typeof i101.RelationAssetInputComponent, typeof i102.RelationProductInputComponent, typeof i103.RelationProductVariantInputComponent, typeof i104.RelationCustomerInputComponent, typeof i83.RelationCardPreviewDirective, typeof i83.RelationCardDetailDirective, typeof i82.RelationSelectorDialogComponent, typeof i105.RelationGenericInputComponent, typeof i106.TextareaFormInputComponent, typeof i107.RichTextFormInputComponent, typeof i108.JsonEditorFormInputComponent, typeof i109.ProductMultiSelectorFormInputComponent, typeof i110.CombinationModeFormInputComponent]>;
|
|
122
127
|
static ɵinj: i0.ɵɵInjectorDeclaration<SharedModule>;
|
|
123
128
|
}
|
|
@@ -1,17 +1,19 @@
|
|
|
1
1
|
import { OnInit } from '@angular/core';
|
|
2
|
+
import { FormControl } from '@angular/forms';
|
|
2
3
|
import { ActivatedRoute, Router } from '@angular/router';
|
|
3
|
-
import { DataService, GetCustomerGroupsQuery, GetCustomerGroupWithCustomersQuery, ItemOf, ModalService, NotificationService } from '@vendure/admin-ui/core';
|
|
4
|
+
import { BaseListComponent, DataService, GetCustomerGroupsQuery, GetCustomerGroupWithCustomersQuery, ItemOf, ModalService, NotificationService } from '@vendure/admin-ui/core';
|
|
4
5
|
import { BehaviorSubject, Observable } from 'rxjs';
|
|
5
6
|
import { CustomerGroupMemberFetchParams } from '../customer-group-member-list/customer-group-member-list.component';
|
|
6
7
|
import * as i0 from "@angular/core";
|
|
7
|
-
export declare class CustomerGroupListComponent implements OnInit {
|
|
8
|
+
export declare class CustomerGroupListComponent extends BaseListComponent<GetCustomerGroupsQuery, GetCustomerGroupsQuery['customerGroups']['items'][number]> implements OnInit {
|
|
8
9
|
private dataService;
|
|
9
10
|
private notificationService;
|
|
10
11
|
private modalService;
|
|
11
12
|
route: ActivatedRoute;
|
|
12
|
-
|
|
13
|
+
protected router: Router;
|
|
14
|
+
searchTerm: FormControl;
|
|
13
15
|
activeGroup$: Observable<ItemOf<GetCustomerGroupsQuery, 'customerGroups'> | undefined>;
|
|
14
|
-
|
|
16
|
+
activeGroupId: string | undefined;
|
|
15
17
|
listIsEmpty$: Observable<boolean>;
|
|
16
18
|
members$: Observable<NonNullable<GetCustomerGroupWithCustomersQuery['customerGroup']>['customers']['items']>;
|
|
17
19
|
membersTotal$: Observable<number>;
|
|
@@ -20,7 +20,6 @@ import { OptionValueInputComponent } from './components/option-value-input/optio
|
|
|
20
20
|
import { ProductDetailComponent } from './components/product-detail/product-detail.component';
|
|
21
21
|
import { ProductListComponent } from './components/product-list/product-list.component';
|
|
22
22
|
import { ProductOptionsEditorComponent } from './components/product-options-editor/product-options-editor.component';
|
|
23
|
-
import { ProductSearchInputComponent } from './components/product-search-input/product-search-input.component';
|
|
24
23
|
import { ProductVariantsEditorComponent } from './components/product-variants-editor/product-variants-editor.component';
|
|
25
24
|
import { ProductVariantsListComponent } from './components/product-variants-list/product-variants-list.component';
|
|
26
25
|
import { ProductVariantsTableComponent } from './components/product-variants-table/product-variants-table.component';
|
|
@@ -45,7 +44,6 @@ const CATALOG_COMPONENTS = [
|
|
|
45
44
|
CollectionTreeNodeComponent,
|
|
46
45
|
CollectionContentsComponent,
|
|
47
46
|
ProductVariantsTableComponent,
|
|
48
|
-
ProductSearchInputComponent,
|
|
49
47
|
OptionValueInputComponent,
|
|
50
48
|
UpdateProductOptionDialogComponent,
|
|
51
49
|
ProductVariantsEditorComponent,
|
|
@@ -73,7 +71,6 @@ CatalogModule.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "12.0.0", version:
|
|
|
73
71
|
CollectionTreeNodeComponent,
|
|
74
72
|
CollectionContentsComponent,
|
|
75
73
|
ProductVariantsTableComponent,
|
|
76
|
-
ProductSearchInputComponent,
|
|
77
74
|
OptionValueInputComponent,
|
|
78
75
|
UpdateProductOptionDialogComponent,
|
|
79
76
|
ProductVariantsEditorComponent,
|
|
@@ -96,7 +93,6 @@ CatalogModule.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "12.0.0", version:
|
|
|
96
93
|
CollectionTreeNodeComponent,
|
|
97
94
|
CollectionContentsComponent,
|
|
98
95
|
ProductVariantsTableComponent,
|
|
99
|
-
ProductSearchInputComponent,
|
|
100
96
|
OptionValueInputComponent,
|
|
101
97
|
UpdateProductOptionDialogComponent,
|
|
102
98
|
ProductVariantsEditorComponent,
|
|
@@ -113,4 +109,4 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.2.3", ngImpor
|
|
|
113
109
|
declarations: [...CATALOG_COMPONENTS],
|
|
114
110
|
}]
|
|
115
111
|
}] });
|
|
116
|
-
//# sourceMappingURL=data:application/json;base64,
|
|
112
|
+
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiY2F0YWxvZy5tb2R1bGUuanMiLCJzb3VyY2VSb290IjoiIiwic291cmNlcyI6WyIuLi8uLi8uLi9zcmMvbGliL2NhdGFsb2cvc3JjL2NhdGFsb2cubW9kdWxlLnRzIl0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiJBQUFBLE9BQU8sRUFBRSxRQUFRLEVBQUUsTUFBTSxlQUFlLENBQUM7QUFDekMsT0FBTyxFQUFFLFlBQVksRUFBRSxNQUFNLGlCQUFpQixDQUFDO0FBQy9DLE9BQU8sRUFBRSxZQUFZLEVBQUUsTUFBTSx3QkFBd0IsQ0FBQztBQUV0RCxPQUFPLEVBQUUsYUFBYSxFQUFFLE1BQU0sa0JBQWtCLENBQUM7QUFDakQsT0FBTyxFQUFFLHlCQUF5QixFQUFFLE1BQU0sOERBQThELENBQUM7QUFDekcsT0FBTyxFQUFFLG9CQUFvQixFQUFFLE1BQU0sa0RBQWtELENBQUM7QUFDeEYsT0FBTyxFQUFFLGtCQUFrQixFQUFFLE1BQU0sOENBQThDLENBQUM7QUFDbEYsT0FBTyxFQUFFLGVBQWUsRUFBRSxNQUFNLHNDQUFzQyxDQUFDO0FBQ3ZFLE9BQU8sRUFBRSxzQ0FBc0MsRUFBRSxNQUFNLDRGQUE0RixDQUFDO0FBQ3BKLE9BQU8sRUFBRSwyQkFBMkIsRUFBRSxNQUFNLGdFQUFnRSxDQUFDO0FBQzdHLE9BQU8sRUFBRSx5QkFBeUIsRUFBRSxNQUFNLDREQUE0RCxDQUFDO0FBQ3ZHLE9BQU8sRUFBRSx1QkFBdUIsRUFBRSxNQUFNLHdEQUF3RCxDQUFDO0FBQ2pHLE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TkVOVFNdLFxyXG4gICAgZGVjbGFyYXRpb25zOiBbLi4uQ0FUQUxPR19DT01QT05FTlRTXSxcclxufSlcclxuZXhwb3J0IGNsYXNzIENhdGFsb2dNb2R1bGUge31cclxuIl19
|
|
@@ -19,7 +19,7 @@ export class ApplyFacetDialogComponent {
|
|
|
19
19
|
}
|
|
20
20
|
}
|
|
21
21
|
ApplyFacetDialogComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.2.3", ngImport: i0, type: ApplyFacetDialogComponent, deps: [{ token: i0.ChangeDetectorRef }], target: i0.ɵɵFactoryTarget.Component });
|
|
22
|
-
ApplyFacetDialogComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "13.2.3", type: ApplyFacetDialogComponent, selector: "vdr-apply-facet-dialog", viewQueries: [{ propertyName: "selector", first: true, predicate: FacetValueSelectorComponent, descendants: true }], ngImport: i0, template: "<ng-template vdrDialogTitle>{{ 'catalog.add-facets' | translate }}</ng-template>\r\n\r\n<vdr-facet-value-selector\r\n [facets]=\"facets\"\r\n (selectedValuesChange)=\"selectedValues = $event\"\r\n></vdr-facet-value-selector>\r\n\r\n<ng-template vdrDialogButtons>\r\n <button type=\"button\" class=\"btn\" (click)=\"cancel()\">{{ 'common.cancel' | translate }}</button>\r\n <button\r\n type=\"submit\"\r\n (click)=\"selectValues()\"\r\n [disabled]=\"selectedValues.length === 0\"\r\n class=\"btn btn-primary\"\r\n >\r\n {{ 'catalog.add-facets' | translate }}\r\n </button>\r\n</ng-template>\r\n", styles: [""], components: [{ type: i1.FacetValueSelectorComponent, selector: "vdr-facet-value-selector", inputs: ["facets", "readonly"], outputs: ["selectedValuesChange"] }], directives: [{ type: i1.DialogTitleDirective, selector: "[vdrDialogTitle]" }, { type: i1.DialogButtonsDirective, selector: "[vdrDialogButtons]" }], pipes: { "translate": i2.TranslatePipe }, changeDetection: i0.ChangeDetectionStrategy.OnPush });
|
|
22
|
+
ApplyFacetDialogComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "13.2.3", type: ApplyFacetDialogComponent, selector: "vdr-apply-facet-dialog", viewQueries: [{ propertyName: "selector", first: true, predicate: FacetValueSelectorComponent, descendants: true }], ngImport: i0, template: "<ng-template vdrDialogTitle>{{ 'catalog.add-facets' | translate }}</ng-template>\r\n\r\n<vdr-facet-value-selector\r\n [facets]=\"facets\"\r\n (selectedValuesChange)=\"selectedValues = $event\"\r\n></vdr-facet-value-selector>\r\n\r\n<ng-template vdrDialogButtons>\r\n <button type=\"button\" class=\"btn\" (click)=\"cancel()\">{{ 'common.cancel' | translate }}</button>\r\n <button\r\n type=\"submit\"\r\n (click)=\"selectValues()\"\r\n [disabled]=\"selectedValues.length === 0\"\r\n class=\"btn btn-primary\"\r\n >\r\n {{ 'catalog.add-facets' | translate }}\r\n </button>\r\n</ng-template>\r\n", styles: [""], components: [{ type: i1.FacetValueSelectorComponent, selector: "vdr-facet-value-selector", inputs: ["facets", "readonly", "transformControlValueAccessorValue"], outputs: ["selectedValuesChange"] }], directives: [{ type: i1.DialogTitleDirective, selector: "[vdrDialogTitle]" }, { type: i1.DialogButtonsDirective, selector: "[vdrDialogButtons]" }], pipes: { "translate": i2.TranslatePipe }, changeDetection: i0.ChangeDetectionStrategy.OnPush });
|
|
23
23
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.2.3", ngImport: i0, type: ApplyFacetDialogComponent, decorators: [{
|
|
24
24
|
type: Component,
|
|
25
25
|
args: [{ selector: 'vdr-apply-facet-dialog', changeDetection: ChangeDetectionStrategy.OnPush, template: "<ng-template vdrDialogTitle>{{ 'catalog.add-facets' | translate }}</ng-template>\r\n\r\n<vdr-facet-value-selector\r\n [facets]=\"facets\"\r\n (selectedValuesChange)=\"selectedValues = $event\"\r\n></vdr-facet-value-selector>\r\n\r\n<ng-template vdrDialogButtons>\r\n <button type=\"button\" class=\"btn\" (click)=\"cancel()\">{{ 'common.cancel' | translate }}</button>\r\n <button\r\n type=\"submit\"\r\n (click)=\"selectValues()\"\r\n [disabled]=\"selectedValues.length === 0\"\r\n class=\"btn btn-primary\"\r\n >\r\n {{ 'catalog.add-facets' | translate }}\r\n </button>\r\n</ng-template>\r\n", styles: [""] }]
|