@vendure/admin-ui 2.0.0-next.1 → 2.0.0-next.12
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/generate-product-variants/generate-product-variants.component.d.ts +3 -3
- package/catalog/components/option-value-input/option-value-input.component.d.ts +21 -9
- package/catalog/components/product-variants-editor/product-variants-editor.component.d.ts +22 -12
- 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 +368 -128
- package/core/common/utilities/configurable-operation-utils.d.ts +4 -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/definitions/order-definitions.d.ts +2 -0
- package/core/data/definitions/product-definitions.d.ts +1 -0
- package/core/data/providers/collection-data.service.d.ts +4 -0
- package/core/data/providers/order-data.service.d.ts +1 -0
- package/core/data/providers/product-data.service.d.ts +1 -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 +6 -0
- 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/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 +32 -27
- 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 +70 -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/generate-product-variants/generate-product-variants.component.mjs +12 -4
- package/esm2020/catalog/components/option-value-input/option-value-input.component.mjs +65 -11
- 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 +110 -10
- package/esm2020/catalog/components/product-variants-list/product-variants-list.component.mjs +9 -3
- 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 +30 -1
- package/esm2020/core/common/introspection-result.mjs +9 -1
- package/esm2020/core/common/utilities/configurable-operation-utils.mjs +32 -10
- 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 +18 -1
- package/esm2020/core/data/definitions/order-definitions.mjs +445 -429
- package/esm2020/core/data/definitions/product-definitions.mjs +743 -735
- package/esm2020/core/data/definitions/shared-definitions.mjs +29 -28
- package/esm2020/core/data/providers/collection-data.service.mjs +5 -2
- package/esm2020/core/data/providers/order-data.service.mjs +7 -2
- package/esm2020/core/data/providers/product-data.service.mjs +5 -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 +7 -1
- 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/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/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 +25 -5
- 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 +7 -3
- package/esm2020/order/components/fulfillment-detail/fulfillment-detail.component.mjs +8 -17
- package/esm2020/order/components/line-fulfillment/line-fulfillment.component.mjs +7 -21
- 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 +78 -38
- 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-payment-card/order-payment-card.component.mjs +2 -2
- 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/fesm2015/vendure-admin-ui-catalog.mjs +396 -187
- package/fesm2015/vendure-admin-ui-catalog.mjs.map +1 -1
- package/fesm2015/vendure-admin-ui-core.mjs +3782 -3229
- 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 +193 -111
- package/fesm2015/vendure-admin-ui-order.mjs.map +1 -1
- package/fesm2015/vendure-admin-ui-settings.mjs +3 -3
- package/fesm2020/vendure-admin-ui-catalog.mjs +387 -189
- package/fesm2020/vendure-admin-ui-catalog.mjs.map +1 -1
- package/fesm2020/vendure-admin-ui-core.mjs +3771 -3221
- 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 +189 -109
- package/fesm2020/vendure-admin-ui-order.mjs.map +1 -1
- package/fesm2020/vendure-admin-ui-settings.mjs +3 -3
- 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 +19 -3
- package/static/i18n-messages/de.json +22 -3
- package/static/i18n-messages/en.json +20 -3
- package/static/i18n-messages/es.json +19 -3
- package/static/i18n-messages/fr.json +19 -3
- package/static/i18n-messages/it.json +19 -3
- package/static/i18n-messages/pl.json +19 -3
- package/static/i18n-messages/pt_BR.json +19 -3
- package/static/i18n-messages/pt_PT.json +19 -3
- package/static/i18n-messages/ru.json +19 -3
- package/static/i18n-messages/uk.json +19 -3
- package/static/i18n-messages/zh_Hans.json +19 -3
- package/static/i18n-messages/zh_Hant.json +19 -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 +10 -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
|
@@ -24,13 +24,15 @@ export declare function configurableDefinitionToInstance(def: ConfigurableOperat
|
|
|
24
24
|
* ```
|
|
25
25
|
* {
|
|
26
26
|
* code: 'my-operation',
|
|
27
|
-
*
|
|
27
|
+
* arguments: [
|
|
28
28
|
* { name: 'someProperty', value: 'foo' }
|
|
29
29
|
* ]
|
|
30
30
|
* }
|
|
31
31
|
* ```
|
|
32
32
|
*/
|
|
33
|
-
export declare function toConfigurableOperationInput(operation: ConfigurableOperation, formValueOperations:
|
|
33
|
+
export declare function toConfigurableOperationInput(operation: ConfigurableOperation, formValueOperations: {
|
|
34
|
+
args: Record<string, any>;
|
|
35
|
+
}): ConfigurableOperationInput;
|
|
34
36
|
export declare function configurableOperationValueIsValid(def?: ConfigurableOperationDefinition, value?: {
|
|
35
37
|
code: string;
|
|
36
38
|
args: {
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
export interface SelectionManagerOptions<T> {
|
|
2
|
+
multiSelect: boolean;
|
|
3
|
+
itemsAreEqual: (a: T, b: T) => boolean;
|
|
4
|
+
additiveMode: boolean;
|
|
5
|
+
}
|
|
6
|
+
/**
|
|
7
|
+
* @description
|
|
8
|
+
* A helper class used to manage selection of list items. Supports multiple selection via
|
|
9
|
+
* cmd/ctrl/shift key.
|
|
10
|
+
*/
|
|
11
|
+
export declare class SelectionManager<T> {
|
|
12
|
+
private options;
|
|
13
|
+
constructor(options: SelectionManagerOptions<T>);
|
|
14
|
+
get selection(): T[];
|
|
15
|
+
private _selection;
|
|
16
|
+
private items;
|
|
17
|
+
setMultiSelect(isMultiSelect: boolean): void;
|
|
18
|
+
setCurrentItems(items: T[]): void;
|
|
19
|
+
toggleSelection(item: T, event?: MouseEvent): void;
|
|
20
|
+
selectMultiple(items: T[]): void;
|
|
21
|
+
isSelected(item: T): boolean;
|
|
22
|
+
lastSelected(): T;
|
|
23
|
+
}
|
package/core/common/version.d.ts
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
export declare const ADMIN_UI_VERSION = "2.0.0-next.
|
|
1
|
+
export declare const ADMIN_UI_VERSION = "2.0.0-next.12";
|
|
@@ -18,6 +18,7 @@ export declare class AppShellComponent implements OnInit {
|
|
|
18
18
|
userName$: Observable<string>;
|
|
19
19
|
uiLanguageAndLocale$: Observable<[LanguageCode, string | undefined]>;
|
|
20
20
|
availableLanguages: LanguageCode[];
|
|
21
|
+
hideVendureBranding: boolean | undefined;
|
|
21
22
|
constructor(authService: AuthService, dataService: DataService, router: Router, i18nService: I18nService, modalService: ModalService, localStorageService: LocalStorageService);
|
|
22
23
|
ngOnInit(): void;
|
|
23
24
|
selectUiLanguage(): void;
|
|
@@ -7,3 +7,4 @@ export declare const UPDATE_COLLECTION: import("apollo-angular").TypedDocumentNo
|
|
|
7
7
|
export declare const MOVE_COLLECTION: import("apollo-angular").TypedDocumentNode<unknown, unknown>;
|
|
8
8
|
export declare const DELETE_COLLECTION: import("apollo-angular").TypedDocumentNode<unknown, unknown>;
|
|
9
9
|
export declare const GET_COLLECTION_CONTENTS: import("apollo-angular").TypedDocumentNode<unknown, unknown>;
|
|
10
|
+
export declare const PREVIEW_COLLECTION_CONTENTS: import("apollo-angular").TypedDocumentNode<unknown, unknown>;
|
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
export declare const DISCOUNT_FRAGMENT: import("apollo-angular").TypedDocumentNode<unknown, unknown>;
|
|
2
|
+
export declare const PAYMENT_FRAGMENT: import("apollo-angular").TypedDocumentNode<unknown, unknown>;
|
|
2
3
|
export declare const REFUND_FRAGMENT: import("apollo-angular").TypedDocumentNode<unknown, unknown>;
|
|
3
4
|
export declare const ORDER_ADDRESS_FRAGMENT: import("apollo-angular").TypedDocumentNode<unknown, unknown>;
|
|
4
5
|
export declare const ORDER_FRAGMENT: import("apollo-angular").TypedDocumentNode<unknown, unknown>;
|
|
@@ -8,6 +9,7 @@ export declare const ORDER_DETAIL_FRAGMENT: import("apollo-angular").TypedDocume
|
|
|
8
9
|
export declare const GET_ORDERS_LIST: import("apollo-angular").TypedDocumentNode<unknown, unknown>;
|
|
9
10
|
export declare const GET_ORDER: import("apollo-angular").TypedDocumentNode<unknown, unknown>;
|
|
10
11
|
export declare const SETTLE_PAYMENT: import("apollo-angular").TypedDocumentNode<unknown, unknown>;
|
|
12
|
+
export declare const CANCEL_PAYMENT: import("apollo-angular").TypedDocumentNode<unknown, unknown>;
|
|
11
13
|
export declare const TRANSITION_PAYMENT_TO_STATE: import("apollo-angular").TypedDocumentNode<unknown, unknown>;
|
|
12
14
|
export declare const CREATE_FULFILLMENT: import("apollo-angular").TypedDocumentNode<unknown, unknown>;
|
|
13
15
|
export declare const CANCEL_ORDER: import("apollo-angular").TypedDocumentNode<unknown, unknown>;
|
|
@@ -28,6 +28,7 @@ export declare const SEARCH_PRODUCTS: import("apollo-angular").TypedDocumentNode
|
|
|
28
28
|
export declare const PRODUCT_SELECTOR_SEARCH: import("apollo-angular").TypedDocumentNode<unknown, unknown>;
|
|
29
29
|
export declare const UPDATE_PRODUCT_OPTION_GROUP: import("apollo-angular").TypedDocumentNode<unknown, unknown>;
|
|
30
30
|
export declare const UPDATE_PRODUCT_OPTION: import("apollo-angular").TypedDocumentNode<unknown, unknown>;
|
|
31
|
+
export declare const DELETE_PRODUCT_OPTION: import("apollo-angular").TypedDocumentNode<unknown, unknown>;
|
|
31
32
|
export declare const DELETE_PRODUCT_VARIANT: import("apollo-angular").TypedDocumentNode<unknown, unknown>;
|
|
32
33
|
export declare const GET_PRODUCT_VARIANT_OPTIONS: import("apollo-angular").TypedDocumentNode<unknown, unknown>;
|
|
33
34
|
export declare const ASSIGN_PRODUCTS_TO_CHANNEL: import("apollo-angular").TypedDocumentNode<unknown, unknown>;
|
|
@@ -14,6 +14,10 @@ export declare class CollectionDataService {
|
|
|
14
14
|
updateCollection(input: Codegen.UpdateCollectionInput): import("rxjs").Observable<Codegen.UpdateCollectionMutation>;
|
|
15
15
|
moveCollection(inputs: Codegen.MoveCollectionInput[]): import("rxjs").Observable<Codegen.MoveCollectionMutation[]>;
|
|
16
16
|
deleteCollection(id: string): import("rxjs").Observable<Codegen.DeleteCollectionMutation>;
|
|
17
|
+
previewCollectionVariants(input: Codegen.PreviewCollectionVariantsInput, options: Codegen.ProductVariantListOptions): import("@vendure/admin-ui/core").QueryResult<Codegen.PreviewCollectionContentsQuery, Codegen.Exact<{
|
|
18
|
+
input: Codegen.PreviewCollectionVariantsInput;
|
|
19
|
+
options?: Codegen.InputMaybe<Codegen.ProductVariantListOptions> | undefined;
|
|
20
|
+
}>>;
|
|
17
21
|
getCollectionContents(id: string, take?: number, skip?: number, filterTerm?: string): import("@vendure/admin-ui/core").QueryResult<Codegen.GetCollectionContentsQuery, Codegen.Exact<{
|
|
18
22
|
id: string;
|
|
19
23
|
options?: Codegen.InputMaybe<Codegen.ProductVariantListOptions> | undefined;
|
|
@@ -14,6 +14,7 @@ export declare class OrderDataService {
|
|
|
14
14
|
options?: Codegen.InputMaybe<Codegen.HistoryEntryListOptions> | undefined;
|
|
15
15
|
}>>;
|
|
16
16
|
settlePayment(id: string): import("rxjs").Observable<Codegen.SettlePaymentMutation>;
|
|
17
|
+
cancelPayment(id: string): import("rxjs").Observable<Codegen.CancelPaymentMutation>;
|
|
17
18
|
transitionPaymentToState(id: string, state: string): import("rxjs").Observable<Codegen.TransitionPaymentToStateMutation>;
|
|
18
19
|
createFulfillment(input: Codegen.FulfillOrderInput): import("rxjs").Observable<Codegen.CreateFulfillmentMutation>;
|
|
19
20
|
transitionFulfillmentToState(id: string, state: string): import("rxjs").Observable<Codegen.TransitionFulfillmentToStateMutation>;
|
|
@@ -49,6 +49,7 @@ export declare class ProductDataService {
|
|
|
49
49
|
createProductOptionGroups(productOptionGroup: Codegen.CreateProductOptionGroupInput): import("rxjs").Observable<Codegen.CreateProductOptionGroupMutation>;
|
|
50
50
|
addOptionGroupToProduct(variables: Codegen.AddOptionGroupToProductMutationVariables): import("rxjs").Observable<Codegen.AddOptionGroupToProductMutation>;
|
|
51
51
|
addOptionToGroup(input: Codegen.CreateProductOptionInput): import("rxjs").Observable<Codegen.AddOptionToGroupMutation>;
|
|
52
|
+
deleteProductOption(id: string): import("rxjs").Observable<Codegen.DeleteProductOptionMutation>;
|
|
52
53
|
removeOptionGroupFromProduct(variables: Codegen.RemoveOptionGroupFromProductMutationVariables): import("rxjs").Observable<Codegen.RemoveOptionGroupFromProductMutation>;
|
|
53
54
|
updateProductOption(input: Codegen.UpdateProductOptionInput): import("rxjs").Observable<Codegen.UpdateProductOptionMutation>;
|
|
54
55
|
updateProductOptionGroup(input: Codegen.UpdateProductOptionGroupInput): import("rxjs").Observable<Codegen.UpdateProductOptionGroupMutation>;
|
|
@@ -3,7 +3,7 @@ import { BaseDataService } from './base-data.service';
|
|
|
3
3
|
export declare class PromotionDataService {
|
|
4
4
|
private baseDataService;
|
|
5
5
|
constructor(baseDataService: BaseDataService);
|
|
6
|
-
getPromotions(take?: number, skip?: number): import("@vendure/admin-ui/core").QueryResult<Codegen.GetPromotionListQuery, Codegen.Exact<{
|
|
6
|
+
getPromotions(take?: number, skip?: number, filter?: Codegen.PromotionFilterParameter): import("@vendure/admin-ui/core").QueryResult<Codegen.GetPromotionListQuery, Codegen.Exact<{
|
|
7
7
|
options?: Codegen.InputMaybe<Codegen.PromotionListOptions> | undefined;
|
|
8
8
|
}>>;
|
|
9
9
|
getPromotion(id: string): import("@vendure/admin-ui/core").QueryResult<Codegen.GetPromotionQuery, Codegen.Exact<{
|
|
@@ -11,6 +11,7 @@ export declare type LocalStorageTypeMap = {
|
|
|
11
11
|
orderListLastCustomFilters: any;
|
|
12
12
|
dashboardWidgetLayout: WidgetLayoutDefinition;
|
|
13
13
|
activeTheme: string;
|
|
14
|
+
livePreviewCollectionContents: boolean;
|
|
14
15
|
};
|
|
15
16
|
export declare type LocalStorageLocationBasedTypeMap = {
|
|
16
17
|
shippingTestOrder: any;
|
package/core/public_api.d.ts
CHANGED
|
@@ -17,6 +17,7 @@ export * from './common/utilities/find-translation';
|
|
|
17
17
|
export * from './common/utilities/flatten-facet-values';
|
|
18
18
|
export * from './common/utilities/get-default-ui-language';
|
|
19
19
|
export * from './common/utilities/interpolate-description';
|
|
20
|
+
export * from './common/utilities/selection-manager';
|
|
20
21
|
export * from './common/utilities/string-to-color';
|
|
21
22
|
export * from './common/version';
|
|
22
23
|
export * from './components/app-shell/app-shell.component';
|
|
@@ -146,6 +147,8 @@ export * from './shared/components/modal-dialog/modal-dialog.component';
|
|
|
146
147
|
export * from './shared/components/object-tree/object-tree.component';
|
|
147
148
|
export * from './shared/components/order-state-label/order-state-label.component';
|
|
148
149
|
export * from './shared/components/pagination-controls/pagination-controls.component';
|
|
150
|
+
export * from './shared/components/product-multi-selector-dialog/product-multi-selector-dialog.component';
|
|
151
|
+
export * from './shared/components/product-search-input/product-search-input.component';
|
|
149
152
|
export * from './shared/components/product-variant-selector/product-variant-selector.component';
|
|
150
153
|
export * from './shared/components/rich-text-editor/external-image-dialog/external-image-dialog.component';
|
|
151
154
|
export * from './shared/components/rich-text-editor/link-dialog/link-dialog.component';
|
|
@@ -176,6 +179,7 @@ export * from './shared/directives/if-multichannel.directive';
|
|
|
176
179
|
export * from './shared/directives/if-permissions.directive';
|
|
177
180
|
export * from './shared/dynamic-form-inputs/boolean-form-input/boolean-form-input.component';
|
|
178
181
|
export * from './shared/dynamic-form-inputs/code-editor-form-input/json-editor-form-input.component';
|
|
182
|
+
export * from './shared/dynamic-form-inputs/combination-mode-form-input/combination-mode-form-input.component';
|
|
179
183
|
export * from './shared/dynamic-form-inputs/currency-form-input/currency-form-input.component';
|
|
180
184
|
export * from './shared/dynamic-form-inputs/customer-group-form-input/customer-group-form-input.component';
|
|
181
185
|
export * from './shared/dynamic-form-inputs/date-form-input/date-form-input.component';
|
|
@@ -183,10 +187,12 @@ export * from './shared/dynamic-form-inputs/dynamic-form-input/dynamic-form-inpu
|
|
|
183
187
|
export * from './shared/dynamic-form-inputs/facet-value-form-input/facet-value-form-input.component';
|
|
184
188
|
export * from './shared/dynamic-form-inputs/number-form-input/number-form-input.component';
|
|
185
189
|
export * from './shared/dynamic-form-inputs/password-form-input/password-form-input.component';
|
|
190
|
+
export * from './shared/dynamic-form-inputs/product-multi-selector-form-input/product-multi-selector-form-input.component';
|
|
186
191
|
export * from './shared/dynamic-form-inputs/product-selector-form-input/product-selector-form-input.component';
|
|
187
192
|
export * from './shared/dynamic-form-inputs/register-dynamic-input-components';
|
|
188
193
|
export * from './shared/dynamic-form-inputs/relation-form-input/asset/relation-asset-input.component';
|
|
189
194
|
export * from './shared/dynamic-form-inputs/relation-form-input/customer/relation-customer-input.component';
|
|
195
|
+
export * from './shared/dynamic-form-inputs/relation-form-input/generic/relation-generic-input.component';
|
|
190
196
|
export * from './shared/dynamic-form-inputs/relation-form-input/product/relation-product-input.component';
|
|
191
197
|
export * from './shared/dynamic-form-inputs/relation-form-input/product-variant/relation-product-variant-input.component';
|
|
192
198
|
export * from './shared/dynamic-form-inputs/relation-form-input/relation-card/relation-card.component';
|
|
@@ -1,5 +1,6 @@
|
|
|
1
|
-
import { EventEmitter, OnChanges } from '@angular/core';
|
|
1
|
+
import { EventEmitter, OnChanges, SimpleChanges } from '@angular/core';
|
|
2
2
|
import { ModalService } from '../../../providers/modal/modal.service';
|
|
3
|
+
import { SelectionManager } from '../../../common/utilities/selection-manager';
|
|
3
4
|
import { AssetLike } from './asset-gallery.types';
|
|
4
5
|
import * as i0 from "@angular/core";
|
|
5
6
|
export declare class AssetGalleryComponent implements OnChanges {
|
|
@@ -58,9 +59,32 @@ export declare class AssetGalleryComponent implements OnChanges {
|
|
|
58
59
|
y: number;
|
|
59
60
|
} | null | undefined;
|
|
60
61
|
}[]>;
|
|
61
|
-
|
|
62
|
+
selectionManager: SelectionManager<{
|
|
63
|
+
__typename?: "Asset" | undefined;
|
|
64
|
+
id: string;
|
|
65
|
+
createdAt: any;
|
|
66
|
+
updatedAt: any;
|
|
67
|
+
name: string;
|
|
68
|
+
fileSize: number;
|
|
69
|
+
mimeType: string;
|
|
70
|
+
type: import("@vendure/admin-ui/core").AssetType;
|
|
71
|
+
preview: string;
|
|
72
|
+
source: string;
|
|
73
|
+
width: number;
|
|
74
|
+
height: number;
|
|
75
|
+
tags: {
|
|
76
|
+
__typename?: "Tag" | undefined;
|
|
77
|
+
id: string;
|
|
78
|
+
value: string;
|
|
79
|
+
}[];
|
|
80
|
+
focalPoint?: {
|
|
81
|
+
__typename?: "Coordinate" | undefined;
|
|
82
|
+
x: number;
|
|
83
|
+
y: number;
|
|
84
|
+
} | null | undefined;
|
|
85
|
+
}>;
|
|
62
86
|
constructor(modalService: ModalService);
|
|
63
|
-
ngOnChanges(): void;
|
|
87
|
+
ngOnChanges(changes: SimpleChanges): void;
|
|
64
88
|
toggleSelection(asset: AssetLike, event?: MouseEvent): void;
|
|
65
89
|
selectMultiple(assets: AssetLike[]): void;
|
|
66
90
|
isSelected(asset: AssetLike): boolean;
|
|
@@ -1,15 +1,17 @@
|
|
|
1
|
-
import { EventEmitter, OnChanges, OnDestroy, SimpleChanges } from '@angular/core';
|
|
1
|
+
import { EventEmitter, OnChanges, OnDestroy, OnInit, SimpleChanges } from '@angular/core';
|
|
2
2
|
import { AbstractControl, ControlValueAccessor, FormGroup, ValidationErrors, Validator } from '@angular/forms';
|
|
3
|
+
import { Observable } from 'rxjs';
|
|
3
4
|
import { ConfigArg, ConfigArgDefinition, ConfigurableOperation, ConfigurableOperationDefinition } from '../../../common/generated-types';
|
|
4
5
|
import * as i0 from "@angular/core";
|
|
5
6
|
/**
|
|
6
7
|
* A form input which renders a card with the internal form fields of the given ConfigurableOperation.
|
|
7
8
|
*/
|
|
8
|
-
export declare class ConfigurableInputComponent implements OnChanges, OnDestroy, ControlValueAccessor, Validator {
|
|
9
|
+
export declare class ConfigurableInputComponent implements OnInit, OnChanges, OnDestroy, ControlValueAccessor, Validator {
|
|
9
10
|
operation?: ConfigurableOperation;
|
|
10
11
|
operationDefinition?: ConfigurableOperationDefinition;
|
|
11
12
|
readonly: boolean;
|
|
12
13
|
removable: boolean;
|
|
14
|
+
position: number;
|
|
13
15
|
remove: EventEmitter<ConfigurableOperation>;
|
|
14
16
|
argValues: {
|
|
15
17
|
[name: string]: any;
|
|
@@ -17,8 +19,11 @@ export declare class ConfigurableInputComponent implements OnChanges, OnDestroy,
|
|
|
17
19
|
onChange: (val: any) => void;
|
|
18
20
|
onTouch: () => void;
|
|
19
21
|
form: FormGroup;
|
|
22
|
+
positionChange$: Observable<number>;
|
|
23
|
+
private positionChangeSubject;
|
|
20
24
|
private subscription;
|
|
21
25
|
interpolateDescription(): string;
|
|
26
|
+
ngOnInit(): void;
|
|
22
27
|
ngOnChanges(changes: SimpleChanges): void;
|
|
23
28
|
ngOnDestroy(): void;
|
|
24
29
|
registerOnChange(fn: any): void;
|
|
@@ -30,5 +35,5 @@ export declare class ConfigurableInputComponent implements OnChanges, OnDestroy,
|
|
|
30
35
|
private createForm;
|
|
31
36
|
validate(c: AbstractControl): ValidationErrors | null;
|
|
32
37
|
static ɵfac: i0.ɵɵFactoryDeclaration<ConfigurableInputComponent, never>;
|
|
33
|
-
static ɵcmp: i0.ɵɵComponentDeclaration<ConfigurableInputComponent, "vdr-configurable-input", never, { "operation": "operation"; "operationDefinition": "operationDefinition"; "readonly": "readonly"; "removable": "removable"; }, { "remove": "remove"; }, never, never>;
|
|
38
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<ConfigurableInputComponent, "vdr-configurable-input", never, { "operation": "operation"; "operationDefinition": "operationDefinition"; "readonly": "readonly"; "removable": "removable"; "position": "position"; }, { "remove": "remove"; }, never, never>;
|
|
34
39
|
}
|
|
@@ -1,6 +1,8 @@
|
|
|
1
|
+
import { OnInit } from '@angular/core';
|
|
1
2
|
import { FormGroup } from '@angular/forms';
|
|
3
|
+
import { Observable } from 'rxjs';
|
|
2
4
|
import { InputComponentConfig } from '../../../common/component-registry-types';
|
|
3
|
-
import { CustomFieldConfig, CustomFieldsFragment } from '../../../common/generated-types';
|
|
5
|
+
import { CustomFieldConfig, CustomFieldsFragment, LanguageCode } from '../../../common/generated-types';
|
|
4
6
|
import { DataService } from '../../../data/providers/data.service';
|
|
5
7
|
import { CustomFieldComponentService, CustomFieldEntityName } from '../../../providers/custom-field-component/custom-field-component.service';
|
|
6
8
|
import * as i0 from "@angular/core";
|
|
@@ -8,7 +10,7 @@ import * as i0 from "@angular/core";
|
|
|
8
10
|
* This component renders the appropriate type of form input control based
|
|
9
11
|
* on the "type" property of the provided CustomFieldConfig.
|
|
10
12
|
*/
|
|
11
|
-
export declare class CustomFieldControlComponent {
|
|
13
|
+
export declare class CustomFieldControlComponent implements OnInit {
|
|
12
14
|
private dataService;
|
|
13
15
|
private customFieldComponentService;
|
|
14
16
|
entityName: CustomFieldEntityName;
|
|
@@ -20,7 +22,9 @@ export declare class CustomFieldControlComponent {
|
|
|
20
22
|
hasCustomControl: boolean;
|
|
21
23
|
private customComponentPlaceholder;
|
|
22
24
|
private customComponentFactory;
|
|
25
|
+
uiLanguage$: Observable<LanguageCode>;
|
|
23
26
|
constructor(dataService: DataService, customFieldComponentService: CustomFieldComponentService);
|
|
27
|
+
ngOnInit(): void;
|
|
24
28
|
getFieldDefinition(): CustomFieldConfig & {
|
|
25
29
|
ui?: InputComponentConfig;
|
|
26
30
|
};
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { AfterContentInit, EventEmitter, QueryList, TemplateRef } from '@angular/core';
|
|
1
|
+
import { AfterContentInit, EventEmitter, OnChanges, QueryList, SimpleChanges, TemplateRef } from '@angular/core';
|
|
2
2
|
import { DataTableColumnComponent } from './data-table-column.component';
|
|
3
3
|
import * as i0 from "@angular/core";
|
|
4
4
|
/**
|
|
@@ -60,7 +60,7 @@ import * as i0 from "@angular/core";
|
|
|
60
60
|
*
|
|
61
61
|
* @docsCategory components
|
|
62
62
|
*/
|
|
63
|
-
export declare class DataTableComponent<T> implements AfterContentInit {
|
|
63
|
+
export declare class DataTableComponent<T> implements AfterContentInit, OnChanges {
|
|
64
64
|
items: T[];
|
|
65
65
|
itemsPerPage: number;
|
|
66
66
|
currentPage: number;
|
|
@@ -75,8 +75,11 @@ export declare class DataTableComponent<T> implements AfterContentInit {
|
|
|
75
75
|
columns: QueryList<DataTableColumnComponent>;
|
|
76
76
|
templateRefs: QueryList<TemplateRef<any>>;
|
|
77
77
|
rowTemplate: TemplateRef<any>;
|
|
78
|
+
currentStart: number;
|
|
79
|
+
currentEnd: number;
|
|
78
80
|
ngAfterContentInit(): void;
|
|
79
81
|
trackByFn(index: number, item: any): any;
|
|
82
|
+
ngOnChanges(changes: SimpleChanges): void;
|
|
80
83
|
static ɵfac: i0.ɵɵFactoryDeclaration<DataTableComponent<any>, never>;
|
|
81
84
|
static ɵcmp: i0.ɵɵComponentDeclaration<DataTableComponent<any>, "vdr-data-table", never, { "items": "items"; "itemsPerPage": "itemsPerPage"; "currentPage": "currentPage"; "totalItems": "totalItems"; "allSelected": "allSelected"; "isRowSelectedFn": "isRowSelectedFn"; "emptyStateLabel": "emptyStateLabel"; }, { "allSelectChange": "allSelectChange"; "rowSelectChange": "rowSelectChange"; "pageChange": "pageChange"; "itemsPerPageChange": "itemsPerPageChange"; }, ["columns", "templateRefs"], never>;
|
|
82
85
|
}
|
|
@@ -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 {
|
|
@@ -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">;
|