@vendure/admin-ui 1.7.4 → 1.8.1
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/bundles/vendure-admin-ui-catalog.umd.js +902 -74
- package/bundles/vendure-admin-ui-catalog.umd.js.map +1 -1
- package/bundles/vendure-admin-ui-core.umd.js +2392 -820
- package/bundles/vendure-admin-ui-core.umd.js.map +1 -1
- package/bundles/vendure-admin-ui-customer.umd.js +4 -3
- package/bundles/vendure-admin-ui-customer.umd.js.map +1 -1
- package/bundles/vendure-admin-ui-dashboard.umd.js +3 -1
- package/bundles/vendure-admin-ui-dashboard.umd.js.map +1 -1
- package/bundles/vendure-admin-ui-order.umd.js +781 -175
- package/bundles/vendure-admin-ui-order.umd.js.map +1 -1
- package/bundles/vendure-admin-ui-settings.umd.js +5 -4
- package/bundles/vendure-admin-ui-settings.umd.js.map +1 -1
- package/bundles/vendure-admin-ui-system.umd.js +1 -1
- package/catalog/catalog.module.d.ts +3 -0
- package/catalog/components/assign-to-channel-dialog/assign-to-channel-dialog.component.d.ts +17 -0
- package/catalog/components/bulk-add-facet-values-dialog/bulk-add-facet-values-dialog.component.d.ts +38 -0
- package/catalog/components/bulk-add-facet-values-dialog/bulk-add-facet-values-dialog.graphql.d.ts +4 -0
- package/catalog/components/collection-list/collection-list-bulk-actions.d.ts +6 -0
- package/catalog/components/collection-list/collection-list.component.d.ts +7 -5
- package/catalog/components/collection-tree/collection-tree-node.component.d.ts +8 -4
- package/catalog/components/collection-tree/collection-tree.component.d.ts +2 -1
- package/catalog/components/facet-list/facet-list-bulk-actions.d.ts +5 -0
- package/catalog/components/facet-list/facet-list.component.d.ts +2 -1
- package/catalog/components/product-list/product-list-bulk-actions.d.ts +6 -0
- package/catalog/components/product-list/product-list.component.d.ts +2 -1
- package/catalog/public_api.d.ts +6 -0
- package/catalog/vendure-admin-ui-catalog.metadata.json +1 -1
- package/core/common/component-registry-types.d.ts +1 -1
- package/core/common/generated-types.d.ts +609 -3
- package/core/common/utilities/bulk-action-utils.d.ts +19 -0
- package/core/common/utilities/selection-manager.d.ts +7 -0
- package/core/common/version.d.ts +1 -1
- package/core/data/definitions/collection-definitions.d.ts +3 -0
- package/core/data/definitions/facet-definitions.d.ts +3 -0
- package/core/data/definitions/order-definitions.d.ts +12 -0
- package/core/data/definitions/product-definitions.d.ts +1 -0
- package/core/data/providers/collection-data.service.d.ts +4 -1
- package/core/data/providers/facet-data.service.d.ts +4 -1
- package/core/data/providers/order-data.service.d.ts +18 -1
- package/core/data/providers/product-data.service.d.ts +1 -0
- package/core/providers/bulk-action-registry/bulk-action-registry.service.d.ts +6 -0
- package/core/providers/bulk-action-registry/bulk-action-types.d.ts +149 -0
- package/core/providers/bulk-action-registry/register-bulk-action.d.ts +53 -0
- package/core/providers/modal/modal.service.d.ts +2 -0
- package/core/providers/nav-builder/nav-builder-types.d.ts +1 -0
- package/core/public_api.d.ts +18 -1
- package/core/shared/components/asset-gallery/asset-gallery.component.d.ts +3 -3
- package/core/shared/components/bulk-action-menu/bulk-action-menu.component.d.ts +29 -0
- package/core/shared/components/data-table/data-table.component.d.ts +26 -7
- package/core/shared/components/dropdown/dropdown-menu.component.d.ts +1 -0
- package/core/shared/components/radio-card/radio-card-fieldset.component.d.ts +21 -0
- package/core/shared/components/radio-card/radio-card.component.d.ts +19 -0
- package/core/shared/components/rich-text-editor/prosemirror/context-menu/context-menu.component.d.ts +28 -0
- package/core/shared/components/rich-text-editor/prosemirror/context-menu/context-menu.service.d.ts +31 -0
- package/core/shared/components/rich-text-editor/prosemirror/custom-nodes.d.ts +4 -0
- package/core/shared/components/rich-text-editor/prosemirror/inputrules.d.ts +5 -5
- package/core/shared/components/rich-text-editor/prosemirror/menu/links.d.ts +1 -1
- package/core/shared/components/rich-text-editor/prosemirror/menu/menu-common.d.ts +12 -0
- package/core/shared/components/rich-text-editor/prosemirror/menu/menu-plugin.d.ts +9 -0
- package/core/shared/components/rich-text-editor/prosemirror/menu/sub-menu-with-icon.d.ts +14 -0
- package/core/shared/components/rich-text-editor/prosemirror/plugins/image-plugin.d.ts +7 -0
- package/core/shared/components/rich-text-editor/prosemirror/plugins/link-select-plugin.d.ts +1 -1
- package/core/shared/components/rich-text-editor/prosemirror/plugins/raw-editor-plugin.d.ts +7 -0
- package/core/shared/components/rich-text-editor/prosemirror/plugins/tables-plugin.d.ts +13 -0
- package/core/shared/components/rich-text-editor/prosemirror/prosemirror.service.d.ts +7 -3
- package/core/shared/components/rich-text-editor/prosemirror/types.d.ts +0 -2
- package/core/shared/components/rich-text-editor/raw-html-dialog/raw-html-dialog.component.d.ts +18 -0
- package/core/shared/components/rich-text-editor/rich-text-editor.component.d.ts +6 -2
- package/core/shared/dynamic-form-inputs/code-editor-form-input/base-code-editor-form-input.component.d.ts +27 -0
- package/core/shared/dynamic-form-inputs/code-editor-form-input/html-editor-form-input.component.d.ts +19 -0
- package/core/shared/dynamic-form-inputs/code-editor-form-input/json-editor-form-input.component.d.ts +5 -17
- package/core/shared/dynamic-form-inputs/register-dynamic-input-components.d.ts +2 -1
- package/core/vendure-admin-ui-core.metadata.json +1 -1
- package/customer/components/customer-group-member-list/customer-group-member-list.component.d.ts +11 -4
- package/customer/vendure-admin-ui-customer.metadata.json +1 -1
- package/esm2015/catalog/catalog.module.js +25 -2
- package/esm2015/catalog/components/assign-products-to-channel-dialog/assign-products-to-channel-dialog.component.js +4 -1
- package/esm2015/catalog/components/assign-to-channel-dialog/assign-to-channel-dialog.component.js +51 -0
- package/esm2015/catalog/components/bulk-add-facet-values-dialog/bulk-add-facet-values-dialog.component.js +89 -0
- package/esm2015/catalog/components/bulk-add-facet-values-dialog/bulk-add-facet-values-dialog.graphql.js +69 -0
- package/esm2015/catalog/components/collection-detail/collection-detail.component.js +3 -3
- package/esm2015/catalog/components/collection-list/collection-list-bulk-actions.js +147 -0
- package/esm2015/catalog/components/collection-list/collection-list.component.js +17 -8
- package/esm2015/catalog/components/collection-tree/collection-tree-node.component.js +16 -7
- package/esm2015/catalog/components/collection-tree/collection-tree.component.js +3 -2
- package/esm2015/catalog/components/facet-list/facet-list-bulk-actions.js +208 -0
- package/esm2015/catalog/components/facet-list/facet-list.component.js +13 -4
- package/esm2015/catalog/components/product-detail/product-detail.component.js +35 -23
- package/esm2015/catalog/components/product-list/product-list-bulk-actions.js +173 -0
- package/esm2015/catalog/components/product-list/product-list.component.js +10 -5
- package/esm2015/catalog/components/product-variants-list/product-variants-list.component.js +2 -2
- package/esm2015/catalog/providers/routing/collection-resolver.js +2 -1
- package/esm2015/catalog/public_api.js +7 -1
- package/esm2015/core/common/component-registry-types.js +1 -1
- package/esm2015/core/common/generated-types.js +5 -1
- package/esm2015/core/common/introspection-result.js +296 -191
- package/esm2015/core/common/utilities/bulk-action-utils.js +44 -0
- package/esm2015/core/common/utilities/selection-manager.js +33 -1
- package/esm2015/core/common/version.js +2 -2
- package/esm2015/core/components/breadcrumb/breadcrumb.component.js +1 -1
- package/esm2015/core/data/definitions/collection-definitions.js +30 -1
- package/esm2015/core/data/definitions/facet-definitions.js +31 -1
- package/esm2015/core/data/definitions/order-definitions.js +114 -1
- package/esm2015/core/data/definitions/product-definitions.js +15 -1
- package/esm2015/core/data/providers/collection-data.service.js +17 -2
- package/esm2015/core/data/providers/customer-data.service.js +8 -4
- package/esm2015/core/data/providers/facet-data.service.js +18 -2
- package/esm2015/core/data/providers/order-data.service.js +38 -2
- package/esm2015/core/data/providers/product-data.service.js +7 -2
- package/esm2015/core/data/utils/remove-readonly-custom-fields.js +5 -1
- package/esm2015/core/providers/bulk-action-registry/bulk-action-registry.service.js +27 -0
- package/esm2015/core/providers/bulk-action-registry/bulk-action-types.js +2 -0
- package/esm2015/core/providers/bulk-action-registry/register-bulk-action.js +63 -0
- package/esm2015/core/providers/dashboard-widget/dashboard-widget.service.js +1 -4
- package/esm2015/core/providers/modal/modal.service.js +2 -1
- package/esm2015/core/providers/nav-builder/nav-builder-types.js +1 -1
- package/esm2015/core/public_api.js +19 -2
- package/esm2015/core/shared/components/action-bar/action-bar.component.js +4 -8
- package/esm2015/core/shared/components/asset-gallery/asset-gallery.component.js +2 -2
- package/esm2015/core/shared/components/bulk-action-menu/bulk-action-menu.component.js +99 -0
- package/esm2015/core/shared/components/data-table/data-table.component.js +64 -15
- package/esm2015/core/shared/components/dropdown/dropdown-menu.component.js +4 -3
- package/esm2015/core/shared/components/facet-value-selector/facet-value-selector.component.js +2 -2
- package/esm2015/core/shared/components/language-selector/language-selector.component.js +2 -2
- package/esm2015/core/shared/components/order-state-label/order-state-label.component.js +2 -1
- package/esm2015/core/shared/components/product-search-input/product-search-input.component.js +1 -1
- package/esm2015/core/shared/components/product-selector/product-selector.component.js +1 -1
- package/esm2015/core/shared/components/radio-card/radio-card-fieldset.component.js +57 -0
- package/esm2015/core/shared/components/radio-card/radio-card.component.js +54 -0
- package/esm2015/core/shared/components/rich-text-editor/external-image-dialog/external-image-dialog.component.js +2 -2
- package/esm2015/core/shared/components/rich-text-editor/prosemirror/context-menu/context-menu.component.js +140 -0
- package/esm2015/core/shared/components/rich-text-editor/prosemirror/context-menu/context-menu.service.js +45 -0
- package/esm2015/core/shared/components/rich-text-editor/prosemirror/custom-nodes.js +60 -0
- package/esm2015/core/shared/components/rich-text-editor/prosemirror/menu/links.js +4 -4
- package/esm2015/core/shared/components/rich-text-editor/prosemirror/menu/menu-common.js +23 -1
- package/esm2015/core/shared/components/rich-text-editor/prosemirror/menu/menu-plugin.js +12 -0
- package/esm2015/core/shared/components/rich-text-editor/prosemirror/menu/menu.js +73 -18
- package/esm2015/core/shared/components/rich-text-editor/prosemirror/menu/sub-menu-with-icon.js +16 -0
- package/esm2015/core/shared/components/rich-text-editor/prosemirror/plugins/image-plugin.js +100 -0
- package/esm2015/core/shared/components/rich-text-editor/prosemirror/plugins/raw-editor-plugin.js +97 -0
- package/esm2015/core/shared/components/rich-text-editor/prosemirror/plugins/tables-plugin.js +166 -0
- package/esm2015/core/shared/components/rich-text-editor/prosemirror/prosemirror.service.js +47 -17
- package/esm2015/core/shared/components/rich-text-editor/prosemirror/types.js +1 -1
- package/esm2015/core/shared/components/rich-text-editor/raw-html-dialog/raw-html-dialog.component.js +57 -0
- package/esm2015/core/shared/components/rich-text-editor/rich-text-editor.component.js +20 -9
- package/esm2015/core/shared/components/simple-dialog/simple-dialog.component.js +2 -2
- package/esm2015/core/shared/dynamic-form-inputs/code-editor-form-input/base-code-editor-form-input.component.js +59 -0
- package/esm2015/core/shared/dynamic-form-inputs/code-editor-form-input/html-editor-form-input.component.js +66 -0
- package/esm2015/core/shared/dynamic-form-inputs/code-editor-form-input/json-editor-form-input.component.js +47 -84
- package/esm2015/core/shared/dynamic-form-inputs/dynamic-form-input/dynamic-form-input.component.js +3 -3
- package/esm2015/core/shared/dynamic-form-inputs/register-dynamic-input-components.js +3 -1
- package/esm2015/core/shared/pipes/state-i18n-token.pipe.js +2 -1
- package/esm2015/core/shared/shared.module.js +13 -1
- package/esm2015/customer/components/customer-group-list/customer-group-list.component.js +2 -2
- package/esm2015/customer/components/customer-group-member-list/customer-group-member-list.component.js +6 -6
- package/esm2015/customer/components/customer-list/customer-list.component.js +2 -2
- package/esm2015/dashboard/dashboard.module.js +6 -2
- package/esm2015/order/components/coupon-code-selector/coupon-code-selector.component.js +42 -0
- package/esm2015/order/components/draft-order-detail/draft-order-detail.component.js +195 -0
- package/esm2015/order/components/draft-order-variant-selector/draft-order-variant-selector.component.js +59 -0
- package/esm2015/order/components/order-detail/order-detail.component.js +2 -2
- package/esm2015/order/components/order-editor/order-editor.component.js +5 -11
- package/esm2015/order/components/order-list/order-list.component.js +20 -4
- package/esm2015/order/components/order-table/order-table.component.js +16 -5
- package/esm2015/order/components/select-address-dialog/select-address-dialog.component.js +91 -0
- package/esm2015/order/components/select-address-dialog/select-address-dialog.graphql.js +14 -0
- package/esm2015/order/components/select-customer-dialog/select-customer-dialog.component.js +59 -0
- package/esm2015/order/components/select-shipping-method-dialog/select-shipping-method-dialog.component.js +30 -0
- package/esm2015/order/order.module.js +13 -1
- package/esm2015/order/order.routes.js +26 -7
- package/esm2015/order/providers/routing/order-resolver.js +29 -12
- package/esm2015/order/providers/routing/order.guard.js +41 -0
- package/esm2015/order/public_api.js +9 -1
- package/esm2015/settings/components/country-list/country-list.component.js +2 -2
- package/esm2015/settings/components/profile/profile.component.js +2 -2
- package/esm2015/settings/components/zone-list/zone-list.component.js +2 -2
- package/esm2015/settings/components/zone-member-list/zone-member-list.component.js +2 -2
- package/esm2015/system/components/health-check/health-check.component.js +1 -1
- package/fesm2015/vendure-admin-ui-catalog.js +835 -61
- package/fesm2015/vendure-admin-ui-catalog.js.map +1 -1
- package/fesm2015/vendure-admin-ui-core.js +3122 -1514
- package/fesm2015/vendure-admin-ui-core.js.map +1 -1
- package/fesm2015/vendure-admin-ui-customer.js +7 -7
- package/fesm2015/vendure-admin-ui-customer.js.map +1 -1
- package/fesm2015/vendure-admin-ui-dashboard.js +5 -1
- package/fesm2015/vendure-admin-ui-dashboard.js.map +1 -1
- package/fesm2015/vendure-admin-ui-order.js +780 -232
- package/fesm2015/vendure-admin-ui-order.js.map +1 -1
- package/fesm2015/vendure-admin-ui-settings.js +4 -4
- package/fesm2015/vendure-admin-ui-settings.js.map +1 -1
- package/fesm2015/vendure-admin-ui-system.js +1 -1
- package/order/components/coupon-code-selector/coupon-code-selector.component.d.ts +18 -0
- package/order/components/draft-order-detail/draft-order-detail.component.d.ts +49 -0
- package/order/components/draft-order-variant-selector/draft-order-variant-selector.component.d.ts +21 -0
- package/order/components/order-editor/order-editor.component.d.ts +1 -6
- package/order/components/order-list/order-list.component.d.ts +1 -0
- package/order/components/order-table/order-table.component.d.ts +11 -2
- package/order/components/select-address-dialog/select-address-dialog.component.d.ts +24 -0
- package/order/components/select-address-dialog/select-address-dialog.graphql.d.ts +1 -0
- package/order/components/select-customer-dialog/select-customer-dialog.component.d.ts +22 -0
- package/order/components/select-shipping-method-dialog/select-shipping-method-dialog.component.d.ts +16 -0
- package/order/providers/routing/order-resolver.d.ts +8 -5
- package/order/providers/routing/order.guard.d.ts +9 -0
- package/order/public_api.d.ts +8 -0
- package/order/vendure-admin-ui-order.metadata.json +1 -1
- package/package.json +13 -12
- package/settings/components/zone-member-list/zone-member-list.component.d.ts +3 -1
- package/settings/vendure-admin-ui-settings.metadata.json +1 -1
- package/static/i18n-messages/cs.json +33 -0
- package/static/i18n-messages/de.json +33 -0
- package/static/i18n-messages/en.json +36 -4
- package/static/i18n-messages/es.json +33 -0
- package/static/i18n-messages/fr.json +33 -0
- package/static/i18n-messages/it.json +33 -0
- package/static/i18n-messages/pl.json +33 -0
- package/static/i18n-messages/pt_BR.json +33 -0
- package/static/i18n-messages/pt_PT.json +33 -0
- package/static/i18n-messages/ru.json +33 -0
- package/static/i18n-messages/uk.json +33 -0
- package/static/i18n-messages/zh_Hans.json +33 -0
- package/static/i18n-messages/zh_Hant.json +33 -0
- package/static/styles/global/_forms.scss +4 -2
- package/static/styles/global/_overrides.scss +1 -1
- package/static/styles/global/_utilities.scss +4 -0
- package/static/theme.min.css +1 -1
- package/system/vendure-admin-ui-system.metadata.json +1 -1
- package/core/shared/components/rich-text-editor/prosemirror/menu/images.d.ts +0 -4
- package/esm2015/core/shared/components/rich-text-editor/prosemirror/menu/images.js +0 -36
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
import { DataService } from '../../data/providers/data.service';
|
|
2
|
+
/**
|
|
3
|
+
* @description
|
|
4
|
+
* Resolves to an object containing the Channel code of the given channelId, or if no channelId
|
|
5
|
+
* is supplied, the code of the activeChannel.
|
|
6
|
+
*/
|
|
7
|
+
export declare function getChannelCodeFromUserStatus(dataService: DataService, channelId?: string): Promise<{
|
|
8
|
+
channelCode: string;
|
|
9
|
+
}>;
|
|
10
|
+
/**
|
|
11
|
+
* @description
|
|
12
|
+
* Resolves to `true` if multiple Channels are set up.
|
|
13
|
+
*/
|
|
14
|
+
export declare function isMultiChannel(dataService: DataService): Promise<boolean>;
|
|
15
|
+
/**
|
|
16
|
+
* @description
|
|
17
|
+
* Resolves to `true` if the current active Channel is not the default Channel.
|
|
18
|
+
*/
|
|
19
|
+
export declare function currentChannelIsNotDefault(dataService: DataService): Promise<boolean>;
|
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
import { Observable } from 'rxjs';
|
|
1
2
|
export interface SelectionManagerOptions<T> {
|
|
2
3
|
multiSelect: boolean;
|
|
3
4
|
itemsAreEqual: (a: T, b: T) => boolean;
|
|
@@ -12,12 +13,18 @@ export declare class SelectionManager<T> {
|
|
|
12
13
|
private options;
|
|
13
14
|
constructor(options: SelectionManagerOptions<T>);
|
|
14
15
|
get selection(): T[];
|
|
16
|
+
selectionChanges$: Observable<T[]>;
|
|
15
17
|
private _selection;
|
|
16
18
|
private items;
|
|
19
|
+
private selectionChangesSubject;
|
|
17
20
|
setMultiSelect(isMultiSelect: boolean): void;
|
|
18
21
|
setCurrentItems(items: T[]): void;
|
|
19
22
|
toggleSelection(item: T, event?: MouseEvent): void;
|
|
20
23
|
selectMultiple(items: T[]): void;
|
|
24
|
+
clearSelection(): void;
|
|
21
25
|
isSelected(item: T): boolean;
|
|
26
|
+
areAllCurrentItemsSelected(): boolean;
|
|
27
|
+
toggleSelectAll(): void;
|
|
22
28
|
lastSelected(): T;
|
|
29
|
+
private invokeOnSelectionChangeHandler;
|
|
23
30
|
}
|
package/core/common/version.d.ts
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
export declare const ADMIN_UI_VERSION = "1.
|
|
1
|
+
export declare const ADMIN_UI_VERSION = "1.8.1";
|
|
@@ -6,5 +6,8 @@ export declare const CREATE_COLLECTION: import("graphql").DocumentNode;
|
|
|
6
6
|
export declare const UPDATE_COLLECTION: import("graphql").DocumentNode;
|
|
7
7
|
export declare const MOVE_COLLECTION: import("graphql").DocumentNode;
|
|
8
8
|
export declare const DELETE_COLLECTION: import("graphql").DocumentNode;
|
|
9
|
+
export declare const DELETE_COLLECTIONS: import("graphql").DocumentNode;
|
|
9
10
|
export declare const GET_COLLECTION_CONTENTS: import("graphql").DocumentNode;
|
|
10
11
|
export declare const PREVIEW_COLLECTION_CONTENTS: import("graphql").DocumentNode;
|
|
12
|
+
export declare const ASSIGN_COLLECTIONS_TO_CHANNEL: import("graphql").DocumentNode;
|
|
13
|
+
export declare const REMOVE_COLLECTIONS_FROM_CHANNEL: import("graphql").DocumentNode;
|
|
@@ -3,8 +3,11 @@ export declare const FACET_WITH_VALUES_FRAGMENT: import("graphql").DocumentNode;
|
|
|
3
3
|
export declare const CREATE_FACET: import("graphql").DocumentNode;
|
|
4
4
|
export declare const UPDATE_FACET: import("graphql").DocumentNode;
|
|
5
5
|
export declare const DELETE_FACET: import("graphql").DocumentNode;
|
|
6
|
+
export declare const DELETE_FACETS: import("graphql").DocumentNode;
|
|
6
7
|
export declare const CREATE_FACET_VALUES: import("graphql").DocumentNode;
|
|
7
8
|
export declare const UPDATE_FACET_VALUES: import("graphql").DocumentNode;
|
|
8
9
|
export declare const DELETE_FACET_VALUES: import("graphql").DocumentNode;
|
|
9
10
|
export declare const GET_FACET_LIST: import("graphql").DocumentNode;
|
|
10
11
|
export declare const GET_FACET_WITH_VALUES: import("graphql").DocumentNode;
|
|
12
|
+
export declare const ASSIGN_FACETS_TO_CHANNEL: import("graphql").DocumentNode;
|
|
13
|
+
export declare const REMOVE_FACETS_FROM_CHANNEL: import("graphql").DocumentNode;
|
|
@@ -25,3 +25,15 @@ export declare const TRANSITION_FULFILLMENT_TO_STATE: import("graphql").Document
|
|
|
25
25
|
export declare const GET_ORDER_SUMMARY: import("graphql").DocumentNode;
|
|
26
26
|
export declare const MODIFY_ORDER: import("graphql").DocumentNode;
|
|
27
27
|
export declare const ADD_MANUAL_PAYMENT_TO_ORDER: import("graphql").DocumentNode;
|
|
28
|
+
export declare const CREATE_DRAFT_ORDER: import("graphql").DocumentNode;
|
|
29
|
+
export declare const DELETE_DRAFT_ORDER: import("graphql").DocumentNode;
|
|
30
|
+
export declare const ADD_ITEM_TO_DRAFT_ORDER: import("graphql").DocumentNode;
|
|
31
|
+
export declare const ADJUST_DRAFT_ORDER_LINE: import("graphql").DocumentNode;
|
|
32
|
+
export declare const REMOVE_DRAFT_ORDER_LINE: import("graphql").DocumentNode;
|
|
33
|
+
export declare const SET_CUSTOMER_FOR_DRAFT_ORDER: import("graphql").DocumentNode;
|
|
34
|
+
export declare const SET_SHIPPING_ADDRESS_FOR_DRAFT_ORDER: import("graphql").DocumentNode;
|
|
35
|
+
export declare const SET_BILLING_ADDRESS_FOR_DRAFT_ORDER: import("graphql").DocumentNode;
|
|
36
|
+
export declare const APPLY_COUPON_CODE_TO_DRAFT_ORDER: import("graphql").DocumentNode;
|
|
37
|
+
export declare const REMOVE_COUPON_CODE_FROM_DRAFT_ORDER: import("graphql").DocumentNode;
|
|
38
|
+
export declare const DRAFT_ORDER_ELIGIBLE_SHIPPING_METHODS: import("graphql").DocumentNode;
|
|
39
|
+
export declare const SET_DRAFT_ORDER_SHIPPING_METHOD: import("graphql").DocumentNode;
|
|
@@ -8,6 +8,7 @@ export declare const PRODUCT_OPTION_GROUP_WITH_OPTIONS_FRAGMENT: import("graphql
|
|
|
8
8
|
export declare const UPDATE_PRODUCT: import("graphql").DocumentNode;
|
|
9
9
|
export declare const CREATE_PRODUCT: import("graphql").DocumentNode;
|
|
10
10
|
export declare const DELETE_PRODUCT: import("graphql").DocumentNode;
|
|
11
|
+
export declare const DELETE_PRODUCTS: import("graphql").DocumentNode;
|
|
11
12
|
export declare const CREATE_PRODUCT_VARIANTS: import("graphql").DocumentNode;
|
|
12
13
|
export declare const UPDATE_PRODUCT_VARIANTS: import("graphql").DocumentNode;
|
|
13
14
|
export declare const CREATE_PRODUCT_OPTION_GROUP: import("graphql").DocumentNode;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { CreateCollectionInput, MoveCollectionInput, PreviewCollectionContentsQuery, PreviewCollectionVariantsInput, ProductVariantListOptions, UpdateCollectionInput } from '../../common/generated-types';
|
|
1
|
+
import { AssignCollectionsToChannelInput, AssignCollectionsToChannelMutation, CreateCollectionInput, DeleteCollectionsMutation, MoveCollectionInput, PreviewCollectionContentsQuery, PreviewCollectionVariantsInput, ProductVariantListOptions, RemoveCollectionsFromChannelInput, RemoveCollectionsFromChannelMutation, UpdateCollectionInput } from '../../common/generated-types';
|
|
2
2
|
import { BaseDataService } from './base-data.service';
|
|
3
3
|
export declare class CollectionDataService {
|
|
4
4
|
private baseDataService;
|
|
@@ -14,6 +14,7 @@ export declare class CollectionDataService {
|
|
|
14
14
|
updateCollection(input: UpdateCollectionInput): import("rxjs").Observable<import("../../common/generated-types").UpdateCollectionMutation>;
|
|
15
15
|
moveCollection(inputs: MoveCollectionInput[]): import("rxjs").Observable<import("../../common/generated-types").MoveCollectionMutation[]>;
|
|
16
16
|
deleteCollection(id: string): import("rxjs").Observable<import("../../common/generated-types").DeleteCollectionMutation>;
|
|
17
|
+
deleteCollections(ids: string[]): import("rxjs").Observable<DeleteCollectionsMutation>;
|
|
17
18
|
previewCollectionVariants(input: PreviewCollectionVariantsInput, options: ProductVariantListOptions): import("../query-result").QueryResult<PreviewCollectionContentsQuery, import("../../common/generated-types").Exact<{
|
|
18
19
|
input: PreviewCollectionVariantsInput;
|
|
19
20
|
options?: import("../../common/generated-types").Maybe<ProductVariantListOptions> | undefined;
|
|
@@ -22,4 +23,6 @@ export declare class CollectionDataService {
|
|
|
22
23
|
id: string;
|
|
23
24
|
options?: import("../../common/generated-types").Maybe<ProductVariantListOptions> | undefined;
|
|
24
25
|
}>>;
|
|
26
|
+
assignCollectionsToChannel(input: AssignCollectionsToChannelInput): import("rxjs").Observable<AssignCollectionsToChannelMutation>;
|
|
27
|
+
removeCollectionsFromChannel(input: RemoveCollectionsFromChannelInput): import("rxjs").Observable<RemoveCollectionsFromChannelMutation>;
|
|
25
28
|
}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { CreateFacetInput, CreateFacetValueInput, UpdateFacetInput, UpdateFacetValueInput } from '../../common/generated-types';
|
|
1
|
+
import { AssignFacetsToChannelInput, CreateFacetInput, CreateFacetValueInput, RemoveFacetsFromChannelInput, UpdateFacetInput, UpdateFacetValueInput } from '../../common/generated-types';
|
|
2
2
|
import { BaseDataService } from './base-data.service';
|
|
3
3
|
export declare class FacetDataService {
|
|
4
4
|
private baseDataService;
|
|
@@ -15,7 +15,10 @@ export declare class FacetDataService {
|
|
|
15
15
|
createFacet(facet: CreateFacetInput): import("rxjs").Observable<import("../../common/generated-types").CreateFacetMutation>;
|
|
16
16
|
updateFacet(facet: UpdateFacetInput): import("rxjs").Observable<import("../../common/generated-types").UpdateFacetMutation>;
|
|
17
17
|
deleteFacet(id: string, force: boolean): import("rxjs").Observable<import("../../common/generated-types").DeleteFacetMutation>;
|
|
18
|
+
deleteFacets(ids: string[], force: boolean): import("rxjs").Observable<import("../../common/generated-types").DeleteFacetsMutation>;
|
|
18
19
|
createFacetValues(facetValues: CreateFacetValueInput[]): import("rxjs").Observable<import("../../common/generated-types").CreateFacetValuesMutation>;
|
|
19
20
|
updateFacetValues(facetValues: UpdateFacetValueInput[]): import("rxjs").Observable<import("../../common/generated-types").UpdateFacetValuesMutation>;
|
|
20
21
|
deleteFacetValues(ids: string[], force: boolean): import("rxjs").Observable<import("../../common/generated-types").DeleteFacetValuesMutation>;
|
|
22
|
+
assignFacetsToChannel(input: AssignFacetsToChannelInput): import("rxjs").Observable<import("../../common/generated-types").AssignFacetsToChannelMutation>;
|
|
23
|
+
removeFacetsFromChannel(input: RemoveFacetsFromChannelInput): import("rxjs").Observable<import("../../common/generated-types").RemoveFacetsFromChannelMutation>;
|
|
21
24
|
}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { AddNoteToOrderInput, CancelOrderInput, FulfillOrderInput, HistoryEntryListOptions, ManualPaymentInput, ModifyOrderInput, OrderListOptions, RefundOrderInput, SettleRefundInput, UpdateOrderInput, UpdateOrderNoteInput } from '../../common/generated-types';
|
|
1
|
+
import { AddItemToDraftOrderInput, AddItemToDraftOrderMutation, AddNoteToOrderInput, AdjustDraftOrderLineInput, AdjustDraftOrderLineMutation, ApplyCouponCodeToDraftOrderMutation, CancelOrderInput, CreateAddressInput, CreateCustomerInput, CreateDraftOrderMutation, DeleteDraftOrderMutation, DraftOrderEligibleShippingMethodsQuery, FulfillOrderInput, HistoryEntryListOptions, ManualPaymentInput, ModifyOrderInput, OrderListOptions, RefundOrderInput, RemoveCouponCodeFromDraftOrderMutation, RemoveDraftOrderLineMutation, SetCustomerForDraftOrderMutation, SetDraftOrderBillingAddressMutation, SetDraftOrderShippingAddressMutation, SetDraftOrderShippingMethodMutation, SettleRefundInput, UpdateOrderInput, UpdateOrderNoteInput } from '../../common/generated-types';
|
|
2
2
|
import { BaseDataService } from './base-data.service';
|
|
3
3
|
export declare class OrderDataService {
|
|
4
4
|
private baseDataService;
|
|
@@ -32,4 +32,21 @@ export declare class OrderDataService {
|
|
|
32
32
|
}>>;
|
|
33
33
|
modifyOrder(input: ModifyOrderInput): import("rxjs").Observable<import("../../common/generated-types").ModifyOrderMutation>;
|
|
34
34
|
addManualPaymentToOrder(input: ManualPaymentInput): import("rxjs").Observable<import("../../common/generated-types").AddManualPaymentMutation>;
|
|
35
|
+
createDraftOrder(): import("rxjs").Observable<CreateDraftOrderMutation>;
|
|
36
|
+
deleteDraftOrder(orderId: string): import("rxjs").Observable<DeleteDraftOrderMutation>;
|
|
37
|
+
addItemToDraftOrder(orderId: string, input: AddItemToDraftOrderInput): import("rxjs").Observable<AddItemToDraftOrderMutation>;
|
|
38
|
+
adjustDraftOrderLine(orderId: string, input: AdjustDraftOrderLineInput): import("rxjs").Observable<AdjustDraftOrderLineMutation>;
|
|
39
|
+
removeDraftOrderLine(orderId: string, orderLineId: string): import("rxjs").Observable<RemoveDraftOrderLineMutation>;
|
|
40
|
+
setCustomerForDraftOrder(orderId: string, { customerId, input }: {
|
|
41
|
+
customerId?: string;
|
|
42
|
+
input?: CreateCustomerInput;
|
|
43
|
+
}): import("rxjs").Observable<SetCustomerForDraftOrderMutation>;
|
|
44
|
+
setDraftOrderShippingAddress(orderId: string, input: CreateAddressInput): import("rxjs").Observable<SetDraftOrderShippingAddressMutation>;
|
|
45
|
+
setDraftOrderBillingAddress(orderId: string, input: CreateAddressInput): import("rxjs").Observable<SetDraftOrderBillingAddressMutation>;
|
|
46
|
+
applyCouponCodeToDraftOrder(orderId: string, couponCode: string): import("rxjs").Observable<ApplyCouponCodeToDraftOrderMutation>;
|
|
47
|
+
removeCouponCodeFromDraftOrder(orderId: string, couponCode: string): import("rxjs").Observable<RemoveCouponCodeFromDraftOrderMutation>;
|
|
48
|
+
getDraftOrderEligibleShippingMethods(orderId: string): import("../query-result").QueryResult<DraftOrderEligibleShippingMethodsQuery, import("../../common/generated-types").Exact<{
|
|
49
|
+
orderId: string;
|
|
50
|
+
}>>;
|
|
51
|
+
setDraftOrderShippingMethod(orderId: string, shippingMethodId: string): import("rxjs").Observable<SetDraftOrderShippingMethodMutation>;
|
|
35
52
|
}
|
|
@@ -43,6 +43,7 @@ export declare class ProductDataService {
|
|
|
43
43
|
createProduct(product: CreateProductInput): import("rxjs").Observable<import("../../common/generated-types").CreateProductMutation>;
|
|
44
44
|
updateProduct(product: UpdateProductInput): import("rxjs").Observable<import("../../common/generated-types").UpdateProductMutation>;
|
|
45
45
|
deleteProduct(id: string): import("rxjs").Observable<import("../../common/generated-types").DeleteProductMutation>;
|
|
46
|
+
deleteProducts(ids: string[]): import("rxjs").Observable<import("../../common/generated-types").DeleteProductsMutation>;
|
|
46
47
|
createProductVariants(input: CreateProductVariantInput[]): import("rxjs").Observable<import("../../common/generated-types").CreateProductVariantsMutation>;
|
|
47
48
|
updateProductVariants(variants: UpdateProductVariantInput[]): import("rxjs").Observable<import("../../common/generated-types").UpdateProductVariantsMutation>;
|
|
48
49
|
deleteProductVariant(id: string): import("rxjs").Observable<import("../../common/generated-types").DeleteProductVariantMutation>;
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
import { BulkAction, BulkActionLocationId } from './bulk-action-types';
|
|
2
|
+
export declare class BulkActionRegistryService {
|
|
3
|
+
private locationBulActionMap;
|
|
4
|
+
registerBulkAction(bulkAction: BulkAction): void;
|
|
5
|
+
getBulkActionsForLocation(id: BulkActionLocationId): BulkAction[];
|
|
6
|
+
}
|
|
@@ -0,0 +1,149 @@
|
|
|
1
|
+
import { Injector } from '@angular/core';
|
|
2
|
+
import { ActivatedRoute } from '@angular/router';
|
|
3
|
+
/**
|
|
4
|
+
* @description
|
|
5
|
+
* A valid location of a list view that supports the bulk actions API.
|
|
6
|
+
*
|
|
7
|
+
* @since 1.8.0
|
|
8
|
+
* @docsCategory bulk-actions
|
|
9
|
+
* @docsPage BulkAction
|
|
10
|
+
*/
|
|
11
|
+
export declare type BulkActionLocationId = 'product-list' | 'facet-list' | 'collection-list' | string;
|
|
12
|
+
/**
|
|
13
|
+
* @description
|
|
14
|
+
* This is the argument which gets passed to the `getTranslationVars` and `isVisible` functions
|
|
15
|
+
* of the BulkAction definition.
|
|
16
|
+
*
|
|
17
|
+
* @since 1.8.0
|
|
18
|
+
* @docsCategory bulk-actions
|
|
19
|
+
* @docsPage BulkAction
|
|
20
|
+
*/
|
|
21
|
+
export interface BulkActionFunctionContext<ItemType, ComponentType> {
|
|
22
|
+
/**
|
|
23
|
+
* @description
|
|
24
|
+
* An array of the selected items from the list.
|
|
25
|
+
*/
|
|
26
|
+
selection: ItemType[];
|
|
27
|
+
/**
|
|
28
|
+
* @description
|
|
29
|
+
* The component instance that is hosting the list view. For instance,
|
|
30
|
+
* `ProductListComponent`. This can be used to call methods on the instance,
|
|
31
|
+
* e.g. calling `hostComponent.refresh()` to force a list refresh after
|
|
32
|
+
* deleting the selected items.
|
|
33
|
+
*/
|
|
34
|
+
hostComponent: ComponentType;
|
|
35
|
+
/**
|
|
36
|
+
* @description
|
|
37
|
+
* The Angular [Injector](https://angular.io/api/core/Injector) which can be used
|
|
38
|
+
* to get service instances which might be needed in the click handler.
|
|
39
|
+
*/
|
|
40
|
+
injector: Injector;
|
|
41
|
+
route: ActivatedRoute;
|
|
42
|
+
}
|
|
43
|
+
/**
|
|
44
|
+
* @description
|
|
45
|
+
* This is the argument which gets passed to the `onClick` function of a BulkAction.
|
|
46
|
+
*
|
|
47
|
+
* @since 1.8.0
|
|
48
|
+
* @docsCategory bulk-actions
|
|
49
|
+
* @docsPage BulkAction
|
|
50
|
+
*/
|
|
51
|
+
export interface BulkActionClickContext<ItemType, ComponentType> extends BulkActionFunctionContext<ItemType, ComponentType> {
|
|
52
|
+
/**
|
|
53
|
+
* @description
|
|
54
|
+
* Clears the selection in the active list view.
|
|
55
|
+
*/
|
|
56
|
+
clearSelection: () => void;
|
|
57
|
+
/**
|
|
58
|
+
* @description
|
|
59
|
+
* The click event itself.
|
|
60
|
+
*/
|
|
61
|
+
event: MouseEvent;
|
|
62
|
+
}
|
|
63
|
+
/**
|
|
64
|
+
* @description
|
|
65
|
+
* Configures a bulk action which can be performed on all selected items in a list view.
|
|
66
|
+
*
|
|
67
|
+
* For a full example, see the {@link registerBulkAction} docs.
|
|
68
|
+
*
|
|
69
|
+
* @since 1.8.0
|
|
70
|
+
* @docsCategory bulk-actions
|
|
71
|
+
* @docsPage BulkAction
|
|
72
|
+
* @docsWeight 0
|
|
73
|
+
*/
|
|
74
|
+
export interface BulkAction<ItemType = any, ComponentType = any> {
|
|
75
|
+
location: BulkActionLocationId;
|
|
76
|
+
label: string;
|
|
77
|
+
/**
|
|
78
|
+
* @description
|
|
79
|
+
* An optional function that should resolve to a map of translation variables which can be
|
|
80
|
+
* used when translating the `label` string.
|
|
81
|
+
*/
|
|
82
|
+
getTranslationVars?: (context: BulkActionFunctionContext<ItemType, ComponentType>) => Record<string, string | number> | Promise<Record<string, string | number>>;
|
|
83
|
+
/**
|
|
84
|
+
* @description
|
|
85
|
+
* A valid [Clarity Icons](https://clarity.design/icons) icon shape, e.g.
|
|
86
|
+
* "cog", "user", "info-standard".
|
|
87
|
+
*/
|
|
88
|
+
icon?: string;
|
|
89
|
+
/**
|
|
90
|
+
* @description
|
|
91
|
+
* A class to be added to the icon element. Examples:
|
|
92
|
+
*
|
|
93
|
+
* - is-success
|
|
94
|
+
* - is-danger
|
|
95
|
+
* - is-warning
|
|
96
|
+
* - is-info
|
|
97
|
+
* - is-highlight
|
|
98
|
+
*/
|
|
99
|
+
iconClass?: string;
|
|
100
|
+
/**
|
|
101
|
+
* @description
|
|
102
|
+
* Defines the logic that executes when the bulk action button is clicked.
|
|
103
|
+
*/
|
|
104
|
+
onClick: (context: BulkActionClickContext<ItemType, ComponentType>) => void;
|
|
105
|
+
/**
|
|
106
|
+
* @description
|
|
107
|
+
* A function that determines whether this bulk action item should be displayed in the menu.
|
|
108
|
+
* If not defined, the item will always be displayed.
|
|
109
|
+
*
|
|
110
|
+
* This function will be invoked each time the selection is changed, so try to avoid expensive code
|
|
111
|
+
* running here.
|
|
112
|
+
*
|
|
113
|
+
* @example
|
|
114
|
+
* ```TypeScript
|
|
115
|
+
* import { registerBulkAction, DataService } from '\@vendure/admin-ui/core';
|
|
116
|
+
*
|
|
117
|
+
* registerBulkAction({
|
|
118
|
+
* location: 'product-list',
|
|
119
|
+
* label: 'Assign to channel',
|
|
120
|
+
* // Only display this action if there are multiple channels
|
|
121
|
+
* isVisible: ({ injector }) => injector.get(DataService).client
|
|
122
|
+
* .userStatus()
|
|
123
|
+
* .mapSingle(({ userStatus }) => 1 < userStatus.channels.length)
|
|
124
|
+
* .toPromise(),
|
|
125
|
+
* // ...
|
|
126
|
+
* });
|
|
127
|
+
* ```
|
|
128
|
+
*/
|
|
129
|
+
isVisible?: (context: BulkActionFunctionContext<ItemType, ComponentType>) => boolean | Promise<boolean>;
|
|
130
|
+
/**
|
|
131
|
+
* @description
|
|
132
|
+
* Control the display of this item based on the user permissions.
|
|
133
|
+
*
|
|
134
|
+
* @example
|
|
135
|
+
* ```TypeScript
|
|
136
|
+
* registerBulkAction({
|
|
137
|
+
* // Can be specified as a simple string
|
|
138
|
+
* requiresPermission: Permission.UpdateProduct,
|
|
139
|
+
*
|
|
140
|
+
* // Or as a function that returns a boolean if permissions are satisfied
|
|
141
|
+
* requiresPermission: userPermissions =>
|
|
142
|
+
* userPermissions.includes(Permission.UpdateCatalog) ||
|
|
143
|
+
* userPermissions.includes(Permission.UpdateProduct),
|
|
144
|
+
* // ...
|
|
145
|
+
* })
|
|
146
|
+
* ```
|
|
147
|
+
*/
|
|
148
|
+
requiresPermission?: string | ((userPermissions: string[]) => boolean);
|
|
149
|
+
}
|
|
@@ -0,0 +1,53 @@
|
|
|
1
|
+
import { FactoryProvider } from '@angular/core';
|
|
2
|
+
import { BulkAction } from './bulk-action-types';
|
|
3
|
+
/**
|
|
4
|
+
* @description
|
|
5
|
+
* Registers a custom {@link BulkAction} which can be invoked from the bulk action menu
|
|
6
|
+
* of any supported list view.
|
|
7
|
+
*
|
|
8
|
+
* This allows you to provide custom functionality that can operate on any of the selected
|
|
9
|
+
* items in the list view.
|
|
10
|
+
*
|
|
11
|
+
* In this example, imagine we have an integration with a 3rd-party text translation service. This
|
|
12
|
+
* bulk action allows us to select multiple products from the product list view, and send them for
|
|
13
|
+
* translation via a custom service which integrates with the translation service's API.
|
|
14
|
+
*
|
|
15
|
+
* @example
|
|
16
|
+
* ```TypeScript
|
|
17
|
+
* import { NgModule } from '\@angular/core';
|
|
18
|
+
* import { ModalService, registerBulkAction, SharedModule } from '\@vendure/admin-ui/core';
|
|
19
|
+
*
|
|
20
|
+
* \@NgModule({
|
|
21
|
+
* imports: [SharedModule],
|
|
22
|
+
* providers: [
|
|
23
|
+
* ProductDataTranslationService,
|
|
24
|
+
* registerBulkAction({
|
|
25
|
+
* location: 'product-list',
|
|
26
|
+
* label: 'Send to translation service',
|
|
27
|
+
* icon: 'language',
|
|
28
|
+
* onClick: ({ injector, selection }) => {
|
|
29
|
+
* const modalService = injector.get(ModalService);
|
|
30
|
+
* const translationService = injector.get(ProductDataTranslationService);
|
|
31
|
+
* modalService
|
|
32
|
+
* .dialog({
|
|
33
|
+
* title: `Send ${selection.length} products for translation?`,
|
|
34
|
+
* buttons: [
|
|
35
|
+
* { type: 'secondary', label: 'cancel' },
|
|
36
|
+
* { type: 'primary', label: 'send', returnValue: true },
|
|
37
|
+
* ],
|
|
38
|
+
* })
|
|
39
|
+
* .subscribe(response => {
|
|
40
|
+
* if (response) {
|
|
41
|
+
* translationService.sendForTranslation(selection.map(item => item.productId));
|
|
42
|
+
* }
|
|
43
|
+
* });
|
|
44
|
+
* },
|
|
45
|
+
* }),
|
|
46
|
+
* ],
|
|
47
|
+
* })
|
|
48
|
+
* export class MyUiExtensionModule {}
|
|
49
|
+
* ```
|
|
50
|
+
* @since 1.8.0
|
|
51
|
+
* @docsCategory bulk-actions
|
|
52
|
+
*/
|
|
53
|
+
export declare function registerBulkAction(bulkAction: BulkAction): FactoryProvider;
|
|
@@ -22,6 +22,7 @@ export interface Dialog<R = any> {
|
|
|
22
22
|
export interface DialogButtonConfig<T> {
|
|
23
23
|
label: string;
|
|
24
24
|
type: 'secondary' | 'primary' | 'danger';
|
|
25
|
+
translationVars?: Record<string, string | number>;
|
|
25
26
|
returnValue?: T;
|
|
26
27
|
}
|
|
27
28
|
/**
|
|
@@ -38,6 +39,7 @@ export interface DialogConfig<T> {
|
|
|
38
39
|
[key: string]: string | number;
|
|
39
40
|
};
|
|
40
41
|
buttons: Array<DialogButtonConfig<T>>;
|
|
42
|
+
size?: 'sm' | 'md' | 'lg' | 'xl';
|
|
41
43
|
}
|
|
42
44
|
/**
|
|
43
45
|
* @description
|
package/core/public_api.d.ts
CHANGED
|
@@ -11,6 +11,7 @@ export * from './common/generated-types';
|
|
|
11
11
|
export * from './common/introspection-result-wrapper';
|
|
12
12
|
export * from './common/introspection-result';
|
|
13
13
|
export * from './common/single-search-selection-model';
|
|
14
|
+
export * from './common/utilities/bulk-action-utils';
|
|
14
15
|
export * from './common/utilities/configurable-operation-utils';
|
|
15
16
|
export * from './common/utilities/create-updated-translatable';
|
|
16
17
|
export * from './common/utilities/find-translation';
|
|
@@ -69,6 +70,9 @@ export * from './data/utils/get-server-location';
|
|
|
69
70
|
export * from './data/utils/remove-readonly-custom-fields';
|
|
70
71
|
export * from './data/utils/transform-relation-custom-field-inputs';
|
|
71
72
|
export * from './providers/auth/auth.service';
|
|
73
|
+
export * from './providers/bulk-action-registry/bulk-action-registry.service';
|
|
74
|
+
export * from './providers/bulk-action-registry/bulk-action-types';
|
|
75
|
+
export * from './providers/bulk-action-registry/register-bulk-action';
|
|
72
76
|
export * from './providers/component-registry/component-registry.service';
|
|
73
77
|
export * from './providers/custom-detail-component/custom-detail-component-types';
|
|
74
78
|
export * from './providers/custom-detail-component/custom-detail-component.service';
|
|
@@ -100,6 +104,7 @@ export * from './shared/components/asset-preview/asset-preview.component';
|
|
|
100
104
|
export * from './shared/components/asset-preview-dialog/asset-preview-dialog.component';
|
|
101
105
|
export * from './shared/components/asset-preview-links/asset-preview-links.component';
|
|
102
106
|
export * from './shared/components/asset-search-input/asset-search-input.component';
|
|
107
|
+
export * from './shared/components/bulk-action-menu/bulk-action-menu.component';
|
|
103
108
|
export * from './shared/components/channel-assignment-control/channel-assignment-control.component';
|
|
104
109
|
export * from './shared/components/channel-badge/channel-badge.component';
|
|
105
110
|
export * from './shared/components/chip/chip.component';
|
|
@@ -148,18 +153,28 @@ export * from './shared/components/pagination-controls/pagination-controls.compo
|
|
|
148
153
|
export * from './shared/components/product-multi-selector-dialog/product-multi-selector-dialog.component';
|
|
149
154
|
export * from './shared/components/product-search-input/product-search-input.component';
|
|
150
155
|
export * from './shared/components/product-selector/product-selector.component';
|
|
156
|
+
export * from './shared/components/radio-card/radio-card-fieldset.component';
|
|
157
|
+
export * from './shared/components/radio-card/radio-card.component';
|
|
151
158
|
export * from './shared/components/rich-text-editor/external-image-dialog/external-image-dialog.component';
|
|
152
159
|
export * from './shared/components/rich-text-editor/link-dialog/link-dialog.component';
|
|
160
|
+
export * from './shared/components/rich-text-editor/prosemirror/context-menu/context-menu.component';
|
|
161
|
+
export * from './shared/components/rich-text-editor/prosemirror/context-menu/context-menu.service';
|
|
162
|
+
export * from './shared/components/rich-text-editor/prosemirror/custom-nodes';
|
|
153
163
|
export * from './shared/components/rich-text-editor/prosemirror/inputrules';
|
|
154
164
|
export * from './shared/components/rich-text-editor/prosemirror/keymap';
|
|
155
|
-
export * from './shared/components/rich-text-editor/prosemirror/menu/images';
|
|
156
165
|
export * from './shared/components/rich-text-editor/prosemirror/menu/links';
|
|
157
166
|
export * from './shared/components/rich-text-editor/prosemirror/menu/menu-common';
|
|
167
|
+
export * from './shared/components/rich-text-editor/prosemirror/menu/menu-plugin';
|
|
158
168
|
export * from './shared/components/rich-text-editor/prosemirror/menu/menu';
|
|
169
|
+
export * from './shared/components/rich-text-editor/prosemirror/menu/sub-menu-with-icon';
|
|
170
|
+
export * from './shared/components/rich-text-editor/prosemirror/plugins/image-plugin';
|
|
159
171
|
export * from './shared/components/rich-text-editor/prosemirror/plugins/link-select-plugin';
|
|
172
|
+
export * from './shared/components/rich-text-editor/prosemirror/plugins/raw-editor-plugin';
|
|
173
|
+
export * from './shared/components/rich-text-editor/prosemirror/plugins/tables-plugin';
|
|
160
174
|
export * from './shared/components/rich-text-editor/prosemirror/prosemirror.service';
|
|
161
175
|
export * from './shared/components/rich-text-editor/prosemirror/types';
|
|
162
176
|
export * from './shared/components/rich-text-editor/prosemirror/utils';
|
|
177
|
+
export * from './shared/components/rich-text-editor/raw-html-dialog/raw-html-dialog.component';
|
|
163
178
|
export * from './shared/components/rich-text-editor/rich-text-editor.component';
|
|
164
179
|
export * from './shared/components/select-toggle/select-toggle.component';
|
|
165
180
|
export * from './shared/components/simple-dialog/simple-dialog.component';
|
|
@@ -176,6 +191,8 @@ export * from './shared/directives/if-directive-base';
|
|
|
176
191
|
export * from './shared/directives/if-multichannel.directive';
|
|
177
192
|
export * from './shared/directives/if-permissions.directive';
|
|
178
193
|
export * from './shared/dynamic-form-inputs/boolean-form-input/boolean-form-input.component';
|
|
194
|
+
export * from './shared/dynamic-form-inputs/code-editor-form-input/base-code-editor-form-input.component';
|
|
195
|
+
export * from './shared/dynamic-form-inputs/code-editor-form-input/html-editor-form-input.component';
|
|
179
196
|
export * from './shared/dynamic-form-inputs/code-editor-form-input/json-editor-form-input.component';
|
|
180
197
|
export * from './shared/dynamic-form-inputs/combination-mode-form-input/combination-mode-form-input.component';
|
|
181
198
|
export * from './shared/dynamic-form-inputs/currency-form-input/currency-form-input.component';
|
|
@@ -21,7 +21,7 @@ export declare class AssetGalleryComponent implements OnChanges {
|
|
|
21
21
|
} & Pick<import("../../../common/generated-types").Tag, "id" | "value">)[];
|
|
22
22
|
} & {
|
|
23
23
|
__typename?: "Asset" | undefined;
|
|
24
|
-
} & Pick<import("../../../common/generated-types").Asset, "id" | "
|
|
24
|
+
} & Pick<import("../../../common/generated-types").Asset, "id" | "name" | "createdAt" | "updatedAt" | "fileSize" | "mimeType" | "type" | "preview" | "source" | "width" | "height"> & {
|
|
25
25
|
focalPoint?: import("../../../common/generated-types").Maybe<{
|
|
26
26
|
__typename?: "Coordinate" | undefined;
|
|
27
27
|
} & Pick<import("../../../common/generated-types").Coordinate, "x" | "y">> | undefined;
|
|
@@ -36,7 +36,7 @@ export declare class AssetGalleryComponent implements OnChanges {
|
|
|
36
36
|
} & Pick<import("../../../common/generated-types").Tag, "id" | "value">)[];
|
|
37
37
|
} & {
|
|
38
38
|
__typename?: "Asset" | undefined;
|
|
39
|
-
} & Pick<import("../../../common/generated-types").Asset, "id" | "
|
|
39
|
+
} & Pick<import("../../../common/generated-types").Asset, "id" | "name" | "createdAt" | "updatedAt" | "fileSize" | "mimeType" | "type" | "preview" | "source" | "width" | "height"> & {
|
|
40
40
|
focalPoint?: import("../../../common/generated-types").Maybe<{
|
|
41
41
|
__typename?: "Coordinate" | undefined;
|
|
42
42
|
} & Pick<import("../../../common/generated-types").Coordinate, "x" | "y">> | undefined;
|
|
@@ -51,7 +51,7 @@ export declare class AssetGalleryComponent implements OnChanges {
|
|
|
51
51
|
} & Pick<import("../../../common/generated-types").Tag, "id" | "value">)[];
|
|
52
52
|
} & {
|
|
53
53
|
__typename?: "Asset" | undefined;
|
|
54
|
-
} & Pick<import("../../../common/generated-types").Asset, "id" | "
|
|
54
|
+
} & Pick<import("../../../common/generated-types").Asset, "id" | "name" | "createdAt" | "updatedAt" | "fileSize" | "mimeType" | "type" | "preview" | "source" | "width" | "height"> & {
|
|
55
55
|
focalPoint?: import("../../../common/generated-types").Maybe<{
|
|
56
56
|
__typename?: "Coordinate" | undefined;
|
|
57
57
|
} & Pick<import("../../../common/generated-types").Coordinate, "x" | "y">> | undefined;
|
|
@@ -0,0 +1,29 @@
|
|
|
1
|
+
import { ChangeDetectorRef, Injector, OnDestroy, OnInit } from '@angular/core';
|
|
2
|
+
import { ActivatedRoute } from '@angular/router';
|
|
3
|
+
import { Observable } from 'rxjs';
|
|
4
|
+
import { SelectionManager } from '../../../common/utilities/selection-manager';
|
|
5
|
+
import { DataService } from '../../../data/providers/data.service';
|
|
6
|
+
import { BulkActionRegistryService } from '../../../providers/bulk-action-registry/bulk-action-registry.service';
|
|
7
|
+
import { BulkAction, BulkActionLocationId } from '../../../providers/bulk-action-registry/bulk-action-types';
|
|
8
|
+
export declare class BulkActionMenuComponent<T = any> implements OnInit, OnDestroy {
|
|
9
|
+
private bulkActionRegistryService;
|
|
10
|
+
private injector;
|
|
11
|
+
private route;
|
|
12
|
+
private dataService;
|
|
13
|
+
private changeDetectorRef;
|
|
14
|
+
locationId: BulkActionLocationId;
|
|
15
|
+
selectionManager: SelectionManager<T>;
|
|
16
|
+
hostComponent: any;
|
|
17
|
+
actions$: Observable<Array<BulkAction<T> & {
|
|
18
|
+
display: boolean;
|
|
19
|
+
translationVars: Record<string, string | number>;
|
|
20
|
+
}>>;
|
|
21
|
+
userPermissions: string[];
|
|
22
|
+
private subscription;
|
|
23
|
+
constructor(bulkActionRegistryService: BulkActionRegistryService, injector: Injector, route: ActivatedRoute, dataService: DataService, changeDetectorRef: ChangeDetectorRef);
|
|
24
|
+
ngOnInit(): void;
|
|
25
|
+
ngOnDestroy(): void;
|
|
26
|
+
hasPermissions(bulkAction: Pick<BulkAction, 'requiresPermission'>): boolean | undefined;
|
|
27
|
+
actionClick(event: MouseEvent, action: BulkAction): void;
|
|
28
|
+
clearSelection(): void;
|
|
29
|
+
}
|
|
@@ -1,4 +1,5 @@
|
|
|
1
|
-
import { AfterContentInit, EventEmitter, OnChanges, QueryList, SimpleChanges, TemplateRef } from '@angular/core';
|
|
1
|
+
import { AfterContentInit, ChangeDetectorRef, EventEmitter, OnChanges, OnDestroy, OnInit, QueryList, SimpleChanges, TemplateRef } from '@angular/core';
|
|
2
|
+
import { SelectionManager } from '../../../common/utilities/selection-manager';
|
|
2
3
|
import { DataTableColumnComponent } from './data-table-column.component';
|
|
3
4
|
/**
|
|
4
5
|
* @description
|
|
@@ -59,24 +60,42 @@ import { DataTableColumnComponent } from './data-table-column.component';
|
|
|
59
60
|
*
|
|
60
61
|
* @docsCategory components
|
|
61
62
|
*/
|
|
62
|
-
export declare class DataTableComponent<T> implements AfterContentInit, OnChanges {
|
|
63
|
+
export declare class DataTableComponent<T> implements AfterContentInit, OnChanges, OnInit, OnDestroy {
|
|
64
|
+
private changeDetectorRef;
|
|
63
65
|
items: T[];
|
|
64
66
|
itemsPerPage: number;
|
|
65
67
|
currentPage: number;
|
|
66
68
|
totalItems: number;
|
|
67
|
-
allSelected: boolean;
|
|
68
|
-
isRowSelectedFn: (item: T) => boolean;
|
|
69
69
|
emptyStateLabel: string;
|
|
70
|
-
|
|
71
|
-
rowSelectChange: EventEmitter<T>;
|
|
70
|
+
selectionManager?: SelectionManager<T>;
|
|
72
71
|
pageChange: EventEmitter<number>;
|
|
73
72
|
itemsPerPageChange: EventEmitter<number>;
|
|
73
|
+
/** @deprecated pass a SelectionManager instance instead */
|
|
74
|
+
allSelected: boolean;
|
|
75
|
+
/** @deprecated pass a SelectionManager instance instead */
|
|
76
|
+
isRowSelectedFn: (item: T) => boolean;
|
|
77
|
+
/** @deprecated pass a SelectionManager instance instead */
|
|
78
|
+
allSelectChange: EventEmitter<void>;
|
|
79
|
+
/** @deprecated pass a SelectionManager instance instead */
|
|
80
|
+
rowSelectChange: EventEmitter<{
|
|
81
|
+
event: MouseEvent;
|
|
82
|
+
item: T;
|
|
83
|
+
}>;
|
|
74
84
|
columns: QueryList<DataTableColumnComponent>;
|
|
75
85
|
templateRefs: QueryList<TemplateRef<any>>;
|
|
76
86
|
rowTemplate: TemplateRef<any>;
|
|
77
87
|
currentStart: number;
|
|
78
88
|
currentEnd: number;
|
|
89
|
+
disableSelect: boolean;
|
|
90
|
+
private subscription;
|
|
91
|
+
constructor(changeDetectorRef: ChangeDetectorRef);
|
|
92
|
+
private shiftDownHandler;
|
|
93
|
+
private shiftUpHandler;
|
|
94
|
+
ngOnInit(): void;
|
|
95
|
+
ngOnChanges(changes: SimpleChanges): void;
|
|
96
|
+
ngOnDestroy(): void;
|
|
79
97
|
ngAfterContentInit(): void;
|
|
80
98
|
trackByFn(index: number, item: any): any;
|
|
81
|
-
|
|
99
|
+
onToggleAllClick(): void;
|
|
100
|
+
onRowClick(item: T, event: MouseEvent): void;
|
|
82
101
|
}
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
import { ChangeDetectorRef, EventEmitter, OnChanges, OnDestroy, OnInit, SimpleChanges } from '@angular/core';
|
|
2
|
+
import { Subject } from 'rxjs';
|
|
3
|
+
export declare class RadioCardFieldsetComponent<T = any> implements OnInit, OnChanges, OnDestroy {
|
|
4
|
+
private changeDetector;
|
|
5
|
+
selectedItemId: string;
|
|
6
|
+
idFn: (item: T) => string;
|
|
7
|
+
selectItem: EventEmitter<T>;
|
|
8
|
+
groupName: string;
|
|
9
|
+
selectedIdChange$: Subject<string>;
|
|
10
|
+
focussedId: string | undefined;
|
|
11
|
+
private idChange$;
|
|
12
|
+
private subscription;
|
|
13
|
+
constructor(changeDetector: ChangeDetectorRef);
|
|
14
|
+
ngOnInit(): void;
|
|
15
|
+
ngOnChanges(changes: SimpleChanges): void;
|
|
16
|
+
ngOnDestroy(): void;
|
|
17
|
+
isSelected(item: T): boolean;
|
|
18
|
+
isFocussed(item: T): boolean;
|
|
19
|
+
selectChanged(item: T): void;
|
|
20
|
+
setFocussedId(item: T | undefined): void;
|
|
21
|
+
}
|