@vendure/admin-ui 2.0.0-next.2 → 2.0.0-next.21
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 +15 -11
- package/catalog/components/assign-to-channel-dialog/assign-to-channel-dialog.component.d.ts +22 -0
- package/catalog/components/bulk-add-facet-values-dialog/bulk-add-facet-values-dialog.component.d.ts +41 -0
- package/catalog/components/bulk-add-facet-values-dialog/bulk-add-facet-values-dialog.graphql.d.ts +4 -0
- 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-bulk-actions.d.ts +6 -0
- package/catalog/components/collection-list/collection-list.component.d.ts +9 -5
- package/catalog/components/collection-tree/array-to-tree.d.ts +1 -1
- package/catalog/components/collection-tree/collection-tree-node.component.d.ts +14 -6
- package/catalog/components/collection-tree/collection-tree.component.d.ts +4 -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/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-detail/product-detail.component.d.ts +1 -1
- package/catalog/components/product-list/product-list-bulk-actions.d.ts +6 -0
- package/catalog/components/product-list/product-list.component.d.ts +4 -2
- 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 +6 -1
- package/core/common/component-registry-types.d.ts +1 -1
- package/core/common/generated-types.d.ts +3184 -195
- package/core/common/utilities/bulk-action-utils.d.ts +19 -0
- package/core/common/utilities/configurable-operation-utils.d.ts +7 -2
- package/core/common/utilities/selection-manager.d.ts +30 -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 +4 -0
- package/core/data/definitions/facet-definitions.d.ts +3 -0
- package/core/data/definitions/order-definitions.d.ts +14 -0
- package/core/data/definitions/product-definitions.d.ts +2 -0
- package/core/data/providers/collection-data.service.d.ts +7 -0
- package/core/data/providers/facet-data.service.d.ts +3 -0
- package/core/data/providers/order-data.service.d.ts +18 -0
- package/core/data/providers/product-data.service.d.ts +2 -0
- package/core/providers/bulk-action-registry/bulk-action-registry.service.d.ts +9 -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/local-storage/local-storage.service.d.ts +1 -0
- package/core/providers/modal/modal.types.d.ts +2 -0
- package/core/providers/nav-builder/nav-builder-types.d.ts +1 -0
- package/core/public_api.d.ts +24 -1
- package/core/shared/components/asset-gallery/asset-gallery.component.d.ts +27 -3
- package/core/shared/components/bulk-action-menu/bulk-action-menu.component.d.ts +32 -0
- 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 +29 -7
- package/core/shared/components/dropdown/dropdown-menu.component.d.ts +2 -1
- package/core/shared/components/facet-value-selector/facet-value-selector.component.d.ts +3 -2
- 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/radio-card/radio-card-fieldset.component.d.ts +24 -0
- package/core/shared/components/radio-card/radio-card.component.d.ts +22 -0
- package/core/shared/components/rich-text-editor/prosemirror/context-menu/context-menu.component.d.ts +31 -0
- package/core/shared/components/rich-text-editor/prosemirror/context-menu/context-menu.service.d.ts +34 -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 +21 -0
- package/core/shared/components/rich-text-editor/rich-text-editor.component.d.ts +6 -2
- package/core/shared/components/select-toggle/select-toggle.component.d.ts +2 -1
- package/core/shared/dynamic-form-inputs/code-editor-form-input/base-code-editor-form-input.component.d.ts +30 -0
- package/core/shared/dynamic-form-inputs/code-editor-form-input/html-editor-form-input.component.d.ts +22 -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/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 +5 -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/select-form-input/select-form-input.component.d.ts +10 -2
- package/core/shared/pipes/custom-field-description.pipe.d.ts +11 -0
- package/core/shared/pipes/custom-field-label.pipe.d.ts +4 -10
- package/core/shared/shared.module.d.ts +68 -57
- package/customer/components/customer-group-list/customer-group-list.component.d.ts +6 -4
- package/customer/components/customer-group-member-list/customer-group-member-list.component.d.ts +11 -4
- package/esm2020/catalog/catalog.module.mjs +31 -10
- 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/assign-products-to-channel-dialog/assign-products-to-channel-dialog.component.mjs +4 -1
- package/esm2020/catalog/components/assign-to-channel-dialog/assign-to-channel-dialog.component.mjs +50 -0
- package/esm2020/catalog/components/bulk-add-facet-values-dialog/bulk-add-facet-values-dialog.component.mjs +84 -0
- package/esm2020/catalog/components/bulk-add-facet-values-dialog/bulk-add-facet-values-dialog.graphql.mjs +69 -0
- 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-bulk-actions.mjs +143 -0
- package/esm2020/catalog/components/collection-list/collection-list.component.mjs +46 -12
- package/esm2020/catalog/components/collection-tree/array-to-tree.mjs +3 -3
- package/esm2020/catalog/components/collection-tree/collection-tree-node.component.mjs +36 -10
- package/esm2020/catalog/components/collection-tree/collection-tree.component.mjs +9 -4
- package/esm2020/catalog/components/facet-detail/facet-detail.component.mjs +3 -3
- package/esm2020/catalog/components/facet-list/facet-list-bulk-actions.mjs +202 -0
- package/esm2020/catalog/components/facet-list/facet-list.component.mjs +14 -5
- 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 +70 -11
- package/esm2020/catalog/components/product-detail/product-detail.component.mjs +36 -24
- package/esm2020/catalog/components/product-list/product-list-bulk-actions.mjs +168 -0
- package/esm2020/catalog/components/product-list/product-list.component.mjs +13 -9
- package/esm2020/catalog/components/product-variants-editor/product-variants-editor.component.mjs +130 -19
- package/esm2020/catalog/components/product-variants-list/product-variants-list.component.mjs +9 -3
- package/esm2020/catalog/providers/routing/collection-resolver.mjs +2 -1
- package/esm2020/catalog/public_api.mjs +7 -2
- package/esm2020/core/app.component.module.mjs +1 -1
- package/esm2020/core/common/base-detail.component.mjs +1 -1
- package/esm2020/core/common/component-registry-types.mjs +1 -1
- package/esm2020/core/common/deactivate-aware.mjs +1 -1
- package/esm2020/core/common/generated-types.mjs +31 -1
- package/esm2020/core/common/introspection-result.mjs +296 -189
- package/esm2020/core/common/utilities/bulk-action-utils.mjs +35 -0
- package/esm2020/core/common/utilities/configurable-operation-utils.mjs +37 -10
- package/esm2020/core/common/utilities/selection-manager.mjs +96 -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/breadcrumb/breadcrumb.component.mjs +2 -2
- package/esm2020/core/components/channel-switcher/channel-switcher.component.mjs +1 -1
- package/esm2020/core/components/main-nav/main-nav.component.mjs +3 -3
- package/esm2020/core/components/user-menu/user-menu.component.mjs +1 -1
- package/esm2020/core/core.module.mjs +1 -1
- package/esm2020/core/data/definitions/collection-definitions.mjs +47 -1
- package/esm2020/core/data/definitions/facet-definitions.mjs +31 -1
- package/esm2020/core/data/definitions/order-definitions.mjs +583 -455
- package/esm2020/core/data/definitions/product-definitions.mjs +23 -1
- package/esm2020/core/data/definitions/shared-definitions.mjs +29 -28
- package/esm2020/core/data/providers/collection-data.service.mjs +20 -2
- package/esm2020/core/data/providers/customer-data.service.mjs +6 -1
- package/esm2020/core/data/providers/facet-data.service.mjs +18 -2
- package/esm2020/core/data/providers/order-data.service.mjs +43 -2
- package/esm2020/core/data/providers/product-data.service.mjs +10 -2
- package/esm2020/core/data/providers/promotion-data.service.mjs +1 -1
- package/esm2020/core/data/utils/remove-readonly-custom-fields.mjs +8 -1
- package/esm2020/core/providers/bulk-action-registry/bulk-action-registry.service.mjs +28 -0
- package/esm2020/core/providers/bulk-action-registry/bulk-action-types.mjs +2 -0
- package/esm2020/core/providers/bulk-action-registry/register-bulk-action.mjs +63 -0
- package/esm2020/core/providers/dashboard-widget/dashboard-widget.service.mjs +1 -4
- package/esm2020/core/providers/local-storage/local-storage.service.mjs +1 -1
- package/esm2020/core/providers/modal/modal.service.mjs +2 -1
- package/esm2020/core/providers/modal/modal.types.mjs +1 -1
- package/esm2020/core/providers/nav-builder/nav-builder-types.mjs +1 -1
- package/esm2020/core/public_api.mjs +25 -2
- package/esm2020/core/shared/components/action-bar/action-bar.component.mjs +7 -15
- package/esm2020/core/shared/components/address-form/address-form.component.mjs +3 -3
- package/esm2020/core/shared/components/asset-gallery/asset-gallery.component.mjs +34 -51
- package/esm2020/core/shared/components/asset-preview/asset-preview.component.mjs +4 -4
- package/esm2020/core/shared/components/asset-preview-links/asset-preview-links.component.mjs +1 -1
- package/esm2020/core/shared/components/bulk-action-menu/bulk-action-menu.component.mjs +97 -0
- 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 +18 -10
- package/esm2020/core/shared/components/data-table/data-table.component.mjs +64 -14
- package/esm2020/core/shared/components/datetime-picker/datetime-picker.component.mjs +1 -1
- package/esm2020/core/shared/components/dropdown/dropdown-menu.component.mjs +26 -23
- package/esm2020/core/shared/components/dropdown/dropdown-trigger.directive.mjs +1 -1
- package/esm2020/core/shared/components/entity-info/entity-info.component.mjs +1 -1
- package/esm2020/core/shared/components/facet-value-selector/facet-value-selector.component.mjs +13 -6
- 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/history-entry-detail/history-entry-detail.component.mjs +1 -1
- package/esm2020/core/shared/components/language-selector/language-selector.component.mjs +3 -3
- package/esm2020/core/shared/components/object-tree/object-tree.component.mjs +1 -1
- package/esm2020/core/shared/components/order-state-label/order-state-label.component.mjs +2 -1
- package/esm2020/core/shared/components/product-multi-selector-dialog/product-multi-selector-dialog.component.mjs +135 -0
- package/esm2020/core/shared/components/product-search-input/product-search-input.component.mjs +108 -0
- package/esm2020/core/shared/components/product-variant-selector/product-variant-selector.component.mjs +2 -2
- package/esm2020/core/shared/components/radio-card/radio-card-fieldset.component.mjs +54 -0
- package/esm2020/core/shared/components/radio-card/radio-card.component.mjs +53 -0
- package/esm2020/core/shared/components/rich-text-editor/external-image-dialog/external-image-dialog.component.mjs +3 -3
- package/esm2020/core/shared/components/rich-text-editor/prosemirror/context-menu/context-menu.component.mjs +136 -0
- package/esm2020/core/shared/components/rich-text-editor/prosemirror/context-menu/context-menu.service.mjs +46 -0
- package/esm2020/core/shared/components/rich-text-editor/prosemirror/custom-nodes.mjs +57 -0
- package/esm2020/core/shared/components/rich-text-editor/prosemirror/menu/links.mjs +4 -4
- package/esm2020/core/shared/components/rich-text-editor/prosemirror/menu/menu-common.mjs +22 -1
- package/esm2020/core/shared/components/rich-text-editor/prosemirror/menu/menu-plugin.mjs +12 -0
- package/esm2020/core/shared/components/rich-text-editor/prosemirror/menu/menu.mjs +73 -18
- package/esm2020/core/shared/components/rich-text-editor/prosemirror/menu/sub-menu-with-icon.mjs +16 -0
- package/esm2020/core/shared/components/rich-text-editor/prosemirror/plugins/image-plugin.mjs +100 -0
- package/esm2020/core/shared/components/rich-text-editor/prosemirror/plugins/raw-editor-plugin.mjs +96 -0
- package/esm2020/core/shared/components/rich-text-editor/prosemirror/plugins/tables-plugin.mjs +166 -0
- package/esm2020/core/shared/components/rich-text-editor/prosemirror/prosemirror.service.mjs +47 -18
- package/esm2020/core/shared/components/rich-text-editor/prosemirror/types.mjs +1 -1
- package/esm2020/core/shared/components/rich-text-editor/raw-html-dialog/raw-html-dialog.component.mjs +59 -0
- package/esm2020/core/shared/components/rich-text-editor/rich-text-editor.component.mjs +22 -10
- package/esm2020/core/shared/components/select-toggle/select-toggle.component.mjs +6 -3
- package/esm2020/core/shared/components/simple-dialog/simple-dialog.component.mjs +3 -3
- package/esm2020/core/shared/components/ui-extension-point/ui-extension-point.component.mjs +1 -1
- package/esm2020/core/shared/dynamic-form-inputs/code-editor-form-input/base-code-editor-form-input.component.mjs +57 -0
- package/esm2020/core/shared/dynamic-form-inputs/code-editor-form-input/html-editor-form-input.component.mjs +63 -0
- package/esm2020/core/shared/dynamic-form-inputs/code-editor-form-input/json-editor-form-input.component.mjs +48 -83
- 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/dynamic-form-input/dynamic-form-input.component.mjs +3 -3
- 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 +7 -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 +1 -1
- package/esm2020/core/shared/dynamic-form-inputs/select-form-input/select-form-input.component.mjs +21 -11
- package/esm2020/core/shared/pipes/custom-field-description.pipe.mjs +30 -0
- package/esm2020/core/shared/pipes/custom-field-label.pipe.mjs +7 -19
- package/esm2020/core/shared/pipes/locale-currency.pipe.mjs +10 -2
- package/esm2020/core/shared/pipes/state-i18n-token.pipe.mjs +2 -1
- package/esm2020/core/shared/shared.module.mjs +49 -5
- package/esm2020/customer/components/address-card/address-card.component.mjs +1 -1
- package/esm2020/customer/components/customer-detail/customer-detail.component.mjs +1 -1
- package/esm2020/customer/components/customer-group-list/customer-group-list.component.mjs +33 -18
- package/esm2020/customer/components/customer-group-member-list/customer-group-member-list.component.mjs +3 -3
- package/esm2020/customer/components/customer-history/customer-history.component.mjs +1 -1
- package/esm2020/customer/components/customer-list/customer-list.component.mjs +3 -3
- 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/dashboard.module.mjs +6 -2
- package/esm2020/dashboard/widgets/latest-orders-widget/latest-orders-widget.component.mjs +1 -1
- 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/marketing/components/promotion-list/promotion-list.component.mjs +1 -1
- package/esm2020/order/components/cancel-order-dialog/cancel-order-dialog.component.mjs +1 -1
- package/esm2020/order/components/coupon-code-selector/coupon-code-selector.component.mjs +42 -0
- package/esm2020/order/components/draft-order-detail/draft-order-detail.component.mjs +187 -0
- package/esm2020/order/components/draft-order-variant-selector/draft-order-variant-selector.component.mjs +59 -0
- package/esm2020/order/components/fulfill-order-dialog/fulfill-order-dialog.component.mjs +7 -3
- package/esm2020/order/components/fulfillment-card/fulfillment-card.component.mjs +1 -1
- package/esm2020/order/components/fulfillment-detail/fulfillment-detail.component.mjs +8 -17
- package/esm2020/order/components/line-fulfillment/line-fulfillment.component.mjs +8 -22
- 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 +80 -40
- package/esm2020/order/components/order-editor/order-editor.component.mjs +15 -14
- package/esm2020/order/components/order-edits-preview-dialog/order-edits-preview-dialog.component.mjs +1 -1
- package/esm2020/order/components/order-history/order-history.component.mjs +1 -1
- package/esm2020/order/components/order-list/order-list.component.mjs +40 -17
- package/esm2020/order/components/order-payment-card/order-payment-card.component.mjs +3 -3
- package/esm2020/order/components/order-table/order-table.component.mjs +29 -6
- package/esm2020/order/components/refund-order-dialog/refund-order-dialog.component.mjs +2 -2
- package/esm2020/order/components/select-address-dialog/select-address-dialog.component.mjs +89 -0
- package/esm2020/order/components/select-address-dialog/select-address-dialog.graphql.mjs +14 -0
- package/esm2020/order/components/select-customer-dialog/select-customer-dialog.component.mjs +59 -0
- package/esm2020/order/components/select-shipping-method-dialog/select-shipping-method-dialog.component.mjs +31 -0
- package/esm2020/order/order.module.mjs +20 -2
- package/esm2020/order/order.routes.mjs +23 -4
- package/esm2020/order/providers/routing/order-resolver.mjs +29 -11
- package/esm2020/order/providers/routing/order.guard.mjs +37 -0
- package/esm2020/order/public_api.mjs +9 -1
- package/esm2020/settings/components/administrator-list/administrator-list.component.mjs +1 -1
- package/esm2020/settings/components/channel-list/channel-list.component.mjs +1 -1
- package/esm2020/settings/components/country-list/country-list.component.mjs +3 -3
- package/esm2020/settings/components/payment-method-detail/payment-method-detail.component.mjs +1 -1
- package/esm2020/settings/components/payment-method-list/payment-method-list.component.mjs +1 -1
- package/esm2020/settings/components/permission-grid/permission-grid.component.mjs +1 -1
- package/esm2020/settings/components/profile/profile.component.mjs +3 -3
- package/esm2020/settings/components/role-list/role-list.component.mjs +1 -1
- package/esm2020/settings/components/shipping-method-detail/shipping-method-detail.component.mjs +4 -2
- package/esm2020/settings/components/shipping-method-list/shipping-method-list.component.mjs +1 -1
- package/esm2020/settings/components/tax-category-list/tax-category-list.component.mjs +1 -1
- package/esm2020/settings/components/tax-rate-list/tax-rate-list.component.mjs +1 -1
- package/esm2020/settings/components/zone-detail-dialog/zone-detail-dialog.component.mjs +2 -2
- package/esm2020/settings/components/zone-list/zone-list.component.mjs +3 -3
- package/esm2020/settings/components/zone-member-list/zone-member-list.component.mjs +3 -3
- package/esm2020/system/components/health-check/health-check.component.mjs +2 -2
- package/esm2020/system/components/job-list/job-list.component.mjs +1 -1
- package/fesm2015/vendure-admin-ui-catalog.mjs +1206 -228
- package/fesm2015/vendure-admin-ui-catalog.mjs.map +1 -1
- package/fesm2015/vendure-admin-ui-core.mjs +9451 -7332
- package/fesm2015/vendure-admin-ui-core.mjs.map +1 -1
- package/fesm2015/vendure-admin-ui-customer.mjs +36 -23
- package/fesm2015/vendure-admin-ui-customer.mjs.map +1 -1
- package/fesm2015/vendure-admin-ui-dashboard.mjs +11 -7
- 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 +3 -3
- package/fesm2015/vendure-admin-ui-marketing.mjs.map +1 -1
- package/fesm2015/vendure-admin-ui-order.mjs +1184 -599
- package/fesm2015/vendure-admin-ui-order.mjs.map +1 -1
- package/fesm2015/vendure-admin-ui-settings.mjs +21 -19
- package/fesm2015/vendure-admin-ui-settings.mjs.map +1 -1
- package/fesm2015/vendure-admin-ui-system.mjs +3 -3
- package/fesm2020/vendure-admin-ui-catalog.mjs +1190 -230
- package/fesm2020/vendure-admin-ui-catalog.mjs.map +1 -1
- package/fesm2020/vendure-admin-ui-core.mjs +9539 -7437
- package/fesm2020/vendure-admin-ui-core.mjs.map +1 -1
- package/fesm2020/vendure-admin-ui-customer.mjs +36 -23
- package/fesm2020/vendure-admin-ui-customer.mjs.map +1 -1
- package/fesm2020/vendure-admin-ui-dashboard.mjs +11 -7
- 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 +3 -3
- package/fesm2020/vendure-admin-ui-marketing.mjs.map +1 -1
- package/fesm2020/vendure-admin-ui-order.mjs +1194 -614
- package/fesm2020/vendure-admin-ui-order.mjs.map +1 -1
- package/fesm2020/vendure-admin-ui-settings.mjs +21 -19
- package/fesm2020/vendure-admin-ui-settings.mjs.map +1 -1
- package/fesm2020/vendure-admin-ui-system.mjs +3 -3
- package/order/components/coupon-code-selector/coupon-code-selector.component.d.ts +21 -0
- package/order/components/draft-order-detail/draft-order-detail.component.d.ts +52 -0
- package/order/components/draft-order-variant-selector/draft-order-variant-selector.component.d.ts +24 -0
- 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 +1 -6
- package/order/components/order-list/order-list.component.d.ts +2 -0
- package/order/components/order-table/order-table.component.d.ts +12 -2
- package/order/components/select-address-dialog/select-address-dialog.component.d.ts +27 -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 +25 -0
- package/order/components/select-shipping-method-dialog/select-shipping-method-dialog.component.d.ts +19 -0
- package/order/order.module.d.ts +9 -3
- package/order/providers/routing/order-resolver.d.ts +8 -3
- package/order/providers/routing/order.guard.d.ts +12 -0
- package/order/public_api.d.ts +8 -0
- package/package.json +13 -12
- package/settings/components/zone-member-list/zone-member-list.component.d.ts +3 -1
- package/static/i18n-messages/cs.json +50 -3
- package/static/i18n-messages/de.json +53 -3
- package/static/i18n-messages/en.json +55 -8
- package/static/i18n-messages/es.json +50 -3
- package/static/i18n-messages/fr.json +50 -3
- package/static/i18n-messages/it.json +50 -3
- package/static/i18n-messages/pl.json +50 -3
- package/static/i18n-messages/pt_BR.json +50 -3
- package/static/i18n-messages/pt_PT.json +50 -3
- package/static/i18n-messages/ru.json +50 -3
- package/static/i18n-messages/uk.json +50 -3
- package/static/i18n-messages/zh_Hans.json +50 -3
- package/static/i18n-messages/zh_Hant.json +50 -3
- package/static/styles/_variables.scss +4 -0
- package/static/styles/global/_forms.scss +8 -7
- package/static/styles/global/_overrides.scss +11 -1
- package/static/styles/global/_sass-overrides.scss +3 -0
- package/static/styles/global/_utilities.scss +14 -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/core/shared/components/rich-text-editor/prosemirror/menu/images.d.ts +0 -4
- package/esm2020/catalog/components/product-search-input/product-search-input.component.mjs +0 -107
- package/esm2020/core/shared/components/rich-text-editor/prosemirror/menu/images.mjs +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>;
|
|
@@ -24,13 +24,18 @@ 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, string> | Array<{
|
|
35
|
+
name: string;
|
|
36
|
+
value: string;
|
|
37
|
+
}>;
|
|
38
|
+
}): ConfigurableOperationInput;
|
|
34
39
|
export declare function configurableOperationValueIsValid(def?: ConfigurableOperationDefinition, value?: {
|
|
35
40
|
code: string;
|
|
36
41
|
args: {
|
|
@@ -0,0 +1,30 @@
|
|
|
1
|
+
import { Observable } from 'rxjs';
|
|
2
|
+
export interface SelectionManagerOptions<T> {
|
|
3
|
+
multiSelect: boolean;
|
|
4
|
+
itemsAreEqual: (a: T, b: T) => boolean;
|
|
5
|
+
additiveMode: boolean;
|
|
6
|
+
}
|
|
7
|
+
/**
|
|
8
|
+
* @description
|
|
9
|
+
* A helper class used to manage selection of list items. Supports multiple selection via
|
|
10
|
+
* cmd/ctrl/shift key.
|
|
11
|
+
*/
|
|
12
|
+
export declare class SelectionManager<T> {
|
|
13
|
+
private options;
|
|
14
|
+
constructor(options: SelectionManagerOptions<T>);
|
|
15
|
+
get selection(): T[];
|
|
16
|
+
selectionChanges$: Observable<T[]>;
|
|
17
|
+
private _selection;
|
|
18
|
+
private items;
|
|
19
|
+
private selectionChangesSubject;
|
|
20
|
+
setMultiSelect(isMultiSelect: boolean): void;
|
|
21
|
+
setCurrentItems(items: T[]): void;
|
|
22
|
+
toggleSelection(item: T, event?: MouseEvent): void;
|
|
23
|
+
selectMultiple(items: T[]): void;
|
|
24
|
+
clearSelection(): void;
|
|
25
|
+
isSelected(item: T): boolean;
|
|
26
|
+
areAllCurrentItemsSelected(): boolean;
|
|
27
|
+
toggleSelectAll(): void;
|
|
28
|
+
lastSelected(): T;
|
|
29
|
+
private invokeOnSelectionChangeHandler;
|
|
30
|
+
}
|
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.21";
|
|
@@ -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;
|
|
@@ -6,4 +6,8 @@ export declare const CREATE_COLLECTION: import("apollo-angular").TypedDocumentNo
|
|
|
6
6
|
export declare const UPDATE_COLLECTION: import("apollo-angular").TypedDocumentNode<unknown, unknown>;
|
|
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
|
+
export declare const DELETE_COLLECTIONS: import("apollo-angular").TypedDocumentNode<unknown, unknown>;
|
|
9
10
|
export declare const GET_COLLECTION_CONTENTS: import("apollo-angular").TypedDocumentNode<unknown, unknown>;
|
|
11
|
+
export declare const PREVIEW_COLLECTION_CONTENTS: import("apollo-angular").TypedDocumentNode<unknown, unknown>;
|
|
12
|
+
export declare const ASSIGN_COLLECTIONS_TO_CHANNEL: import("apollo-angular").TypedDocumentNode<unknown, unknown>;
|
|
13
|
+
export declare const REMOVE_COLLECTIONS_FROM_CHANNEL: import("apollo-angular").TypedDocumentNode<unknown, unknown>;
|
|
@@ -3,8 +3,11 @@ export declare const FACET_WITH_VALUES_FRAGMENT: import("apollo-angular").TypedD
|
|
|
3
3
|
export declare const CREATE_FACET: import("apollo-angular").TypedDocumentNode<unknown, unknown>;
|
|
4
4
|
export declare const UPDATE_FACET: import("apollo-angular").TypedDocumentNode<unknown, unknown>;
|
|
5
5
|
export declare const DELETE_FACET: import("apollo-angular").TypedDocumentNode<unknown, unknown>;
|
|
6
|
+
export declare const DELETE_FACETS: import("apollo-angular").TypedDocumentNode<unknown, unknown>;
|
|
6
7
|
export declare const CREATE_FACET_VALUES: import("apollo-angular").TypedDocumentNode<unknown, unknown>;
|
|
7
8
|
export declare const UPDATE_FACET_VALUES: import("apollo-angular").TypedDocumentNode<unknown, unknown>;
|
|
8
9
|
export declare const DELETE_FACET_VALUES: import("apollo-angular").TypedDocumentNode<unknown, unknown>;
|
|
9
10
|
export declare const GET_FACET_LIST: import("apollo-angular").TypedDocumentNode<unknown, unknown>;
|
|
10
11
|
export declare const GET_FACET_WITH_VALUES: import("apollo-angular").TypedDocumentNode<unknown, unknown>;
|
|
12
|
+
export declare const ASSIGN_FACETS_TO_CHANNEL: import("apollo-angular").TypedDocumentNode<unknown, unknown>;
|
|
13
|
+
export declare const REMOVE_FACETS_FROM_CHANNEL: 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>;
|
|
@@ -23,3 +25,15 @@ export declare const TRANSITION_FULFILLMENT_TO_STATE: import("apollo-angular").T
|
|
|
23
25
|
export declare const GET_ORDER_SUMMARY: import("apollo-angular").TypedDocumentNode<unknown, unknown>;
|
|
24
26
|
export declare const MODIFY_ORDER: import("apollo-angular").TypedDocumentNode<unknown, unknown>;
|
|
25
27
|
export declare const ADD_MANUAL_PAYMENT_TO_ORDER: import("apollo-angular").TypedDocumentNode<unknown, unknown>;
|
|
28
|
+
export declare const CREATE_DRAFT_ORDER: import("apollo-angular").TypedDocumentNode<unknown, unknown>;
|
|
29
|
+
export declare const DELETE_DRAFT_ORDER: import("apollo-angular").TypedDocumentNode<unknown, unknown>;
|
|
30
|
+
export declare const ADD_ITEM_TO_DRAFT_ORDER: import("apollo-angular").TypedDocumentNode<unknown, unknown>;
|
|
31
|
+
export declare const ADJUST_DRAFT_ORDER_LINE: import("apollo-angular").TypedDocumentNode<unknown, unknown>;
|
|
32
|
+
export declare const REMOVE_DRAFT_ORDER_LINE: import("apollo-angular").TypedDocumentNode<unknown, unknown>;
|
|
33
|
+
export declare const SET_CUSTOMER_FOR_DRAFT_ORDER: import("apollo-angular").TypedDocumentNode<unknown, unknown>;
|
|
34
|
+
export declare const SET_SHIPPING_ADDRESS_FOR_DRAFT_ORDER: import("apollo-angular").TypedDocumentNode<unknown, unknown>;
|
|
35
|
+
export declare const SET_BILLING_ADDRESS_FOR_DRAFT_ORDER: import("apollo-angular").TypedDocumentNode<unknown, unknown>;
|
|
36
|
+
export declare const APPLY_COUPON_CODE_TO_DRAFT_ORDER: import("apollo-angular").TypedDocumentNode<unknown, unknown>;
|
|
37
|
+
export declare const REMOVE_COUPON_CODE_FROM_DRAFT_ORDER: import("apollo-angular").TypedDocumentNode<unknown, unknown>;
|
|
38
|
+
export declare const DRAFT_ORDER_ELIGIBLE_SHIPPING_METHODS: import("apollo-angular").TypedDocumentNode<unknown, unknown>;
|
|
39
|
+
export declare const SET_DRAFT_ORDER_SHIPPING_METHOD: import("apollo-angular").TypedDocumentNode<unknown, unknown>;
|
|
@@ -8,6 +8,7 @@ export declare const PRODUCT_OPTION_GROUP_WITH_OPTIONS_FRAGMENT: import("apollo-
|
|
|
8
8
|
export declare const UPDATE_PRODUCT: import("apollo-angular").TypedDocumentNode<unknown, unknown>;
|
|
9
9
|
export declare const CREATE_PRODUCT: import("apollo-angular").TypedDocumentNode<unknown, unknown>;
|
|
10
10
|
export declare const DELETE_PRODUCT: import("apollo-angular").TypedDocumentNode<unknown, unknown>;
|
|
11
|
+
export declare const DELETE_PRODUCTS: import("apollo-angular").TypedDocumentNode<unknown, unknown>;
|
|
11
12
|
export declare const CREATE_PRODUCT_VARIANTS: import("apollo-angular").TypedDocumentNode<unknown, unknown>;
|
|
12
13
|
export declare const UPDATE_PRODUCT_VARIANTS: import("apollo-angular").TypedDocumentNode<unknown, unknown>;
|
|
13
14
|
export declare const CREATE_PRODUCT_OPTION_GROUP: import("apollo-angular").TypedDocumentNode<unknown, unknown>;
|
|
@@ -28,6 +29,7 @@ export declare const SEARCH_PRODUCTS: import("apollo-angular").TypedDocumentNode
|
|
|
28
29
|
export declare const PRODUCT_SELECTOR_SEARCH: import("apollo-angular").TypedDocumentNode<unknown, unknown>;
|
|
29
30
|
export declare const UPDATE_PRODUCT_OPTION_GROUP: import("apollo-angular").TypedDocumentNode<unknown, unknown>;
|
|
30
31
|
export declare const UPDATE_PRODUCT_OPTION: import("apollo-angular").TypedDocumentNode<unknown, unknown>;
|
|
32
|
+
export declare const DELETE_PRODUCT_OPTION: import("apollo-angular").TypedDocumentNode<unknown, unknown>;
|
|
31
33
|
export declare const DELETE_PRODUCT_VARIANT: import("apollo-angular").TypedDocumentNode<unknown, unknown>;
|
|
32
34
|
export declare const GET_PRODUCT_VARIANT_OPTIONS: import("apollo-angular").TypedDocumentNode<unknown, unknown>;
|
|
33
35
|
export declare const ASSIGN_PRODUCTS_TO_CHANNEL: import("apollo-angular").TypedDocumentNode<unknown, unknown>;
|
|
@@ -14,8 +14,15 @@ 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
|
+
deleteCollections(ids: string[]): import("rxjs").Observable<Codegen.DeleteCollectionsMutation>;
|
|
18
|
+
previewCollectionVariants(input: Codegen.PreviewCollectionVariantsInput, options: Codegen.ProductVariantListOptions): import("@vendure/admin-ui/core").QueryResult<Codegen.PreviewCollectionContentsQuery, Codegen.Exact<{
|
|
19
|
+
input: Codegen.PreviewCollectionVariantsInput;
|
|
20
|
+
options?: Codegen.InputMaybe<Codegen.ProductVariantListOptions> | undefined;
|
|
21
|
+
}>>;
|
|
17
22
|
getCollectionContents(id: string, take?: number, skip?: number, filterTerm?: string): import("@vendure/admin-ui/core").QueryResult<Codegen.GetCollectionContentsQuery, Codegen.Exact<{
|
|
18
23
|
id: string;
|
|
19
24
|
options?: Codegen.InputMaybe<Codegen.ProductVariantListOptions> | undefined;
|
|
20
25
|
}>>;
|
|
26
|
+
assignCollectionsToChannel(input: Codegen.AssignCollectionsToChannelInput): import("rxjs").Observable<Codegen.AssignCollectionsToChannelMutation>;
|
|
27
|
+
removeCollectionsFromChannel(input: Codegen.RemoveCollectionsFromChannelInput): import("rxjs").Observable<Codegen.RemoveCollectionsFromChannelMutation>;
|
|
21
28
|
}
|
|
@@ -15,7 +15,10 @@ export declare class FacetDataService {
|
|
|
15
15
|
createFacet(facet: Codegen.CreateFacetInput): import("rxjs").Observable<Codegen.CreateFacetMutation>;
|
|
16
16
|
updateFacet(facet: Codegen.UpdateFacetInput): import("rxjs").Observable<Codegen.UpdateFacetMutation>;
|
|
17
17
|
deleteFacet(id: string, force: boolean): import("rxjs").Observable<Codegen.DeleteFacetMutation>;
|
|
18
|
+
deleteFacets(ids: string[], force: boolean): import("rxjs").Observable<Codegen.DeleteFacetsMutation>;
|
|
18
19
|
createFacetValues(facetValues: Codegen.CreateFacetValueInput[]): import("rxjs").Observable<Codegen.CreateFacetValuesMutation>;
|
|
19
20
|
updateFacetValues(facetValues: Codegen.UpdateFacetValueInput[]): import("rxjs").Observable<Codegen.UpdateFacetValuesMutation>;
|
|
20
21
|
deleteFacetValues(ids: string[], force: boolean): import("rxjs").Observable<Codegen.DeleteFacetValuesMutation>;
|
|
22
|
+
assignFacetsToChannel(input: Codegen.AssignFacetsToChannelInput): import("rxjs").Observable<Codegen.AssignFacetsToChannelMutation>;
|
|
23
|
+
removeFacetsFromChannel(input: Codegen.RemoveFacetsFromChannelInput): import("rxjs").Observable<Codegen.RemoveFacetsFromChannelMutation>;
|
|
21
24
|
}
|
|
@@ -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>;
|
|
@@ -31,4 +32,21 @@ export declare class OrderDataService {
|
|
|
31
32
|
}>>;
|
|
32
33
|
modifyOrder(input: Codegen.ModifyOrderInput): import("rxjs").Observable<Codegen.ModifyOrderMutation>;
|
|
33
34
|
addManualPaymentToOrder(input: Codegen.ManualPaymentInput): import("rxjs").Observable<Codegen.AddManualPaymentMutation>;
|
|
35
|
+
createDraftOrder(): import("rxjs").Observable<Codegen.CreateDraftOrderMutation>;
|
|
36
|
+
deleteDraftOrder(orderId: string): import("rxjs").Observable<Codegen.DeleteDraftOrderMutation>;
|
|
37
|
+
addItemToDraftOrder(orderId: string, input: Codegen.AddItemToDraftOrderInput): import("rxjs").Observable<Codegen.AddItemToDraftOrderMutation>;
|
|
38
|
+
adjustDraftOrderLine(orderId: string, input: Codegen.AdjustDraftOrderLineInput): import("rxjs").Observable<Codegen.AdjustDraftOrderLineMutation>;
|
|
39
|
+
removeDraftOrderLine(orderId: string, orderLineId: string): import("rxjs").Observable<Codegen.RemoveDraftOrderLineMutation>;
|
|
40
|
+
setCustomerForDraftOrder(orderId: string, { customerId, input }: {
|
|
41
|
+
customerId?: string;
|
|
42
|
+
input?: Codegen.CreateCustomerInput;
|
|
43
|
+
}): import("rxjs").Observable<Codegen.SetCustomerForDraftOrderMutation>;
|
|
44
|
+
setDraftOrderShippingAddress(orderId: string, input: Codegen.CreateAddressInput): import("rxjs").Observable<Codegen.SetDraftOrderShippingAddressMutation>;
|
|
45
|
+
setDraftOrderBillingAddress(orderId: string, input: Codegen.CreateAddressInput): import("rxjs").Observable<Codegen.SetDraftOrderBillingAddressMutation>;
|
|
46
|
+
applyCouponCodeToDraftOrder(orderId: string, couponCode: string): import("rxjs").Observable<Codegen.ApplyCouponCodeToDraftOrderMutation>;
|
|
47
|
+
removeCouponCodeFromDraftOrder(orderId: string, couponCode: string): import("rxjs").Observable<Codegen.RemoveCouponCodeFromDraftOrderMutation>;
|
|
48
|
+
getDraftOrderEligibleShippingMethods(orderId: string): import("@vendure/admin-ui/core").QueryResult<Codegen.DraftOrderEligibleShippingMethodsQuery, Codegen.Exact<{
|
|
49
|
+
orderId: string;
|
|
50
|
+
}>>;
|
|
51
|
+
setDraftOrderShippingMethod(orderId: string, shippingMethodId: string): import("rxjs").Observable<Codegen.SetDraftOrderShippingMethodMutation>;
|
|
34
52
|
}
|
|
@@ -43,12 +43,14 @@ export declare class ProductDataService {
|
|
|
43
43
|
createProduct(product: Codegen.CreateProductInput): import("rxjs").Observable<Codegen.CreateProductMutation>;
|
|
44
44
|
updateProduct(product: Codegen.UpdateProductInput): import("rxjs").Observable<Codegen.UpdateProductMutation>;
|
|
45
45
|
deleteProduct(id: string): import("rxjs").Observable<Codegen.DeleteProductMutation>;
|
|
46
|
+
deleteProducts(ids: string[]): import("rxjs").Observable<Codegen.DeleteProductsMutation>;
|
|
46
47
|
createProductVariants(input: Codegen.CreateProductVariantInput[]): import("rxjs").Observable<Codegen.CreateProductVariantsMutation>;
|
|
47
48
|
updateProductVariants(variants: Codegen.UpdateProductVariantInput[]): import("rxjs").Observable<Codegen.UpdateProductVariantsMutation>;
|
|
48
49
|
deleteProductVariant(id: string): import("rxjs").Observable<Codegen.DeleteProductVariantMutation>;
|
|
49
50
|
createProductOptionGroups(productOptionGroup: Codegen.CreateProductOptionGroupInput): import("rxjs").Observable<Codegen.CreateProductOptionGroupMutation>;
|
|
50
51
|
addOptionGroupToProduct(variables: Codegen.AddOptionGroupToProductMutationVariables): import("rxjs").Observable<Codegen.AddOptionGroupToProductMutation>;
|
|
51
52
|
addOptionToGroup(input: Codegen.CreateProductOptionInput): import("rxjs").Observable<Codegen.AddOptionToGroupMutation>;
|
|
53
|
+
deleteProductOption(id: string): import("rxjs").Observable<Codegen.DeleteProductOptionMutation>;
|
|
52
54
|
removeOptionGroupFromProduct(variables: Codegen.RemoveOptionGroupFromProductMutationVariables): import("rxjs").Observable<Codegen.RemoveOptionGroupFromProductMutation>;
|
|
53
55
|
updateProductOption(input: Codegen.UpdateProductOptionInput): import("rxjs").Observable<Codegen.UpdateProductOptionMutation>;
|
|
54
56
|
updateProductOptionGroup(input: Codegen.UpdateProductOptionGroupInput): import("rxjs").Observable<Codegen.UpdateProductOptionGroupMutation>;
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import { BulkAction, BulkActionLocationId } from './bulk-action-types';
|
|
2
|
+
import * as i0 from "@angular/core";
|
|
3
|
+
export declare class BulkActionRegistryService {
|
|
4
|
+
private locationBulActionMap;
|
|
5
|
+
registerBulkAction(bulkAction: BulkAction): void;
|
|
6
|
+
getBulkActionsForLocation(id: BulkActionLocationId): BulkAction[];
|
|
7
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<BulkActionRegistryService, never>;
|
|
8
|
+
static ɵprov: i0.ɵɵInjectableDeclaration<BulkActionRegistryService>;
|
|
9
|
+
}
|
|
@@ -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;
|
|
@@ -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;
|
|
@@ -18,6 +18,7 @@ export interface Dialog<R = any> {
|
|
|
18
18
|
export interface DialogButtonConfig<T> {
|
|
19
19
|
label: string;
|
|
20
20
|
type: 'secondary' | 'primary' | 'danger';
|
|
21
|
+
translationVars?: Record<string, string | number>;
|
|
21
22
|
returnValue?: T;
|
|
22
23
|
}
|
|
23
24
|
/**
|
|
@@ -34,6 +35,7 @@ export interface DialogConfig<T> {
|
|
|
34
35
|
[key: string]: string | number;
|
|
35
36
|
};
|
|
36
37
|
buttons: Array<DialogButtonConfig<T>>;
|
|
38
|
+
size?: 'sm' | 'md' | 'lg' | 'xl';
|
|
37
39
|
}
|
|
38
40
|
/**
|
|
39
41
|
* @description
|
package/core/public_api.d.ts
CHANGED
|
@@ -11,12 +11,14 @@ 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';
|
|
17
18
|
export * from './common/utilities/flatten-facet-values';
|
|
18
19
|
export * from './common/utilities/get-default-ui-language';
|
|
19
20
|
export * from './common/utilities/interpolate-description';
|
|
21
|
+
export * from './common/utilities/selection-manager';
|
|
20
22
|
export * from './common/utilities/string-to-color';
|
|
21
23
|
export * from './common/version';
|
|
22
24
|
export * from './components/app-shell/app-shell.component';
|
|
@@ -68,6 +70,9 @@ export * from './data/utils/get-server-location';
|
|
|
68
70
|
export * from './data/utils/remove-readonly-custom-fields';
|
|
69
71
|
export * from './data/utils/transform-relation-custom-field-inputs';
|
|
70
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';
|
|
71
76
|
export * from './providers/component-registry/component-registry.service';
|
|
72
77
|
export * from './providers/custom-detail-component/custom-detail-component-types';
|
|
73
78
|
export * from './providers/custom-detail-component/custom-detail-component.service';
|
|
@@ -101,6 +106,7 @@ export * from './shared/components/asset-preview/asset-preview.component';
|
|
|
101
106
|
export * from './shared/components/asset-preview-dialog/asset-preview-dialog.component';
|
|
102
107
|
export * from './shared/components/asset-preview-links/asset-preview-links.component';
|
|
103
108
|
export * from './shared/components/asset-search-input/asset-search-input.component';
|
|
109
|
+
export * from './shared/components/bulk-action-menu/bulk-action-menu.component';
|
|
104
110
|
export * from './shared/components/channel-assignment-control/channel-assignment-control.component';
|
|
105
111
|
export * from './shared/components/channel-badge/channel-badge.component';
|
|
106
112
|
export * from './shared/components/chip/chip.component';
|
|
@@ -146,19 +152,31 @@ export * from './shared/components/modal-dialog/modal-dialog.component';
|
|
|
146
152
|
export * from './shared/components/object-tree/object-tree.component';
|
|
147
153
|
export * from './shared/components/order-state-label/order-state-label.component';
|
|
148
154
|
export * from './shared/components/pagination-controls/pagination-controls.component';
|
|
155
|
+
export * from './shared/components/product-multi-selector-dialog/product-multi-selector-dialog.component';
|
|
156
|
+
export * from './shared/components/product-search-input/product-search-input.component';
|
|
149
157
|
export * from './shared/components/product-variant-selector/product-variant-selector.component';
|
|
158
|
+
export * from './shared/components/radio-card/radio-card-fieldset.component';
|
|
159
|
+
export * from './shared/components/radio-card/radio-card.component';
|
|
150
160
|
export * from './shared/components/rich-text-editor/external-image-dialog/external-image-dialog.component';
|
|
151
161
|
export * from './shared/components/rich-text-editor/link-dialog/link-dialog.component';
|
|
162
|
+
export * from './shared/components/rich-text-editor/prosemirror/context-menu/context-menu.component';
|
|
163
|
+
export * from './shared/components/rich-text-editor/prosemirror/context-menu/context-menu.service';
|
|
164
|
+
export * from './shared/components/rich-text-editor/prosemirror/custom-nodes';
|
|
152
165
|
export * from './shared/components/rich-text-editor/prosemirror/inputrules';
|
|
153
166
|
export * from './shared/components/rich-text-editor/prosemirror/keymap';
|
|
154
|
-
export * from './shared/components/rich-text-editor/prosemirror/menu/images';
|
|
155
167
|
export * from './shared/components/rich-text-editor/prosemirror/menu/links';
|
|
156
168
|
export * from './shared/components/rich-text-editor/prosemirror/menu/menu-common';
|
|
169
|
+
export * from './shared/components/rich-text-editor/prosemirror/menu/menu-plugin';
|
|
157
170
|
export * from './shared/components/rich-text-editor/prosemirror/menu/menu';
|
|
171
|
+
export * from './shared/components/rich-text-editor/prosemirror/menu/sub-menu-with-icon';
|
|
172
|
+
export * from './shared/components/rich-text-editor/prosemirror/plugins/image-plugin';
|
|
158
173
|
export * from './shared/components/rich-text-editor/prosemirror/plugins/link-select-plugin';
|
|
174
|
+
export * from './shared/components/rich-text-editor/prosemirror/plugins/raw-editor-plugin';
|
|
175
|
+
export * from './shared/components/rich-text-editor/prosemirror/plugins/tables-plugin';
|
|
159
176
|
export * from './shared/components/rich-text-editor/prosemirror/prosemirror.service';
|
|
160
177
|
export * from './shared/components/rich-text-editor/prosemirror/types';
|
|
161
178
|
export * from './shared/components/rich-text-editor/prosemirror/utils';
|
|
179
|
+
export * from './shared/components/rich-text-editor/raw-html-dialog/raw-html-dialog.component';
|
|
162
180
|
export * from './shared/components/rich-text-editor/rich-text-editor.component';
|
|
163
181
|
export * from './shared/components/select-toggle/select-toggle.component';
|
|
164
182
|
export * from './shared/components/simple-dialog/simple-dialog.component';
|
|
@@ -175,7 +193,10 @@ export * from './shared/directives/if-directive-base';
|
|
|
175
193
|
export * from './shared/directives/if-multichannel.directive';
|
|
176
194
|
export * from './shared/directives/if-permissions.directive';
|
|
177
195
|
export * from './shared/dynamic-form-inputs/boolean-form-input/boolean-form-input.component';
|
|
196
|
+
export * from './shared/dynamic-form-inputs/code-editor-form-input/base-code-editor-form-input.component';
|
|
197
|
+
export * from './shared/dynamic-form-inputs/code-editor-form-input/html-editor-form-input.component';
|
|
178
198
|
export * from './shared/dynamic-form-inputs/code-editor-form-input/json-editor-form-input.component';
|
|
199
|
+
export * from './shared/dynamic-form-inputs/combination-mode-form-input/combination-mode-form-input.component';
|
|
179
200
|
export * from './shared/dynamic-form-inputs/currency-form-input/currency-form-input.component';
|
|
180
201
|
export * from './shared/dynamic-form-inputs/customer-group-form-input/customer-group-form-input.component';
|
|
181
202
|
export * from './shared/dynamic-form-inputs/date-form-input/date-form-input.component';
|
|
@@ -183,6 +204,7 @@ export * from './shared/dynamic-form-inputs/dynamic-form-input/dynamic-form-inpu
|
|
|
183
204
|
export * from './shared/dynamic-form-inputs/facet-value-form-input/facet-value-form-input.component';
|
|
184
205
|
export * from './shared/dynamic-form-inputs/number-form-input/number-form-input.component';
|
|
185
206
|
export * from './shared/dynamic-form-inputs/password-form-input/password-form-input.component';
|
|
207
|
+
export * from './shared/dynamic-form-inputs/product-multi-selector-form-input/product-multi-selector-form-input.component';
|
|
186
208
|
export * from './shared/dynamic-form-inputs/product-selector-form-input/product-selector-form-input.component';
|
|
187
209
|
export * from './shared/dynamic-form-inputs/register-dynamic-input-components';
|
|
188
210
|
export * from './shared/dynamic-form-inputs/relation-form-input/asset/relation-asset-input.component';
|
|
@@ -199,6 +221,7 @@ export * from './shared/dynamic-form-inputs/text-form-input/text-form-input.comp
|
|
|
199
221
|
export * from './shared/dynamic-form-inputs/textarea-form-input/textarea-form-input.component';
|
|
200
222
|
export * from './shared/pipes/asset-preview.pipe';
|
|
201
223
|
export * from './shared/pipes/channel-label.pipe';
|
|
224
|
+
export * from './shared/pipes/custom-field-description.pipe';
|
|
202
225
|
export * from './shared/pipes/custom-field-label.pipe';
|
|
203
226
|
export * from './shared/pipes/duration.pipe';
|
|
204
227
|
export * from './shared/pipes/file-size.pipe';
|
|
@@ -1,4 +1,5 @@
|
|
|
1
|
-
import { EventEmitter, OnChanges } from '@angular/core';
|
|
1
|
+
import { EventEmitter, OnChanges, SimpleChanges } from '@angular/core';
|
|
2
|
+
import { SelectionManager } from '../../../common/utilities/selection-manager';
|
|
2
3
|
import { ModalService } from '../../../providers/modal/modal.service';
|
|
3
4
|
import { AssetLike } from './asset-gallery.types';
|
|
4
5
|
import * as i0 from "@angular/core";
|
|
@@ -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;
|