@vendure/admin-ui 2.0.0-next.11 → 2.0.0-next.14
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/README.md +49 -0
- package/angular.json +175 -0
- package/i18n-coverage.json +71 -0
- package/{catalog → package/catalog}/catalog.module.d.ts +0 -0
- package/{catalog → package/catalog}/catalog.routes.d.ts +0 -0
- package/{catalog → package/catalog}/components/apply-facet-dialog/apply-facet-dialog.component.d.ts +0 -0
- package/{catalog → package/catalog}/components/asset-detail/asset-detail.component.d.ts +0 -0
- package/{catalog → package/catalog}/components/asset-list/asset-list.component.d.ts +0 -0
- package/{catalog → package/catalog}/components/assets/assets.component.d.ts +0 -0
- package/{catalog → package/catalog}/components/assign-products-to-channel-dialog/assign-products-to-channel-dialog.component.d.ts +0 -0
- package/{catalog → package/catalog}/components/collection-contents/collection-contents.component.d.ts +0 -0
- package/{catalog → package/catalog}/components/collection-detail/collection-detail.component.d.ts +0 -0
- package/{catalog → package/catalog}/components/collection-list/collection-list.component.d.ts +0 -0
- package/{catalog → package/catalog}/components/collection-tree/array-to-tree.d.ts +0 -0
- package/{catalog → package/catalog}/components/collection-tree/collection-tree-node.component.d.ts +0 -0
- package/{catalog → package/catalog}/components/collection-tree/collection-tree.component.d.ts +0 -0
- package/{catalog → package/catalog}/components/collection-tree/collection-tree.service.d.ts +0 -0
- package/{catalog → package/catalog}/components/collection-tree/collection-tree.types.d.ts +0 -0
- package/{catalog → package/catalog}/components/confirm-variant-deletion-dialog/confirm-variant-deletion-dialog.component.d.ts +0 -0
- package/{catalog → package/catalog}/components/facet-detail/facet-detail.component.d.ts +0 -0
- package/{catalog → package/catalog}/components/facet-list/facet-list.component.d.ts +0 -0
- package/{catalog → package/catalog}/components/generate-product-variants/generate-product-variants.component.d.ts +3 -3
- package/{catalog → package/catalog}/components/option-value-input/option-value-input.component.d.ts +21 -9
- package/{catalog → package/catalog}/components/product-detail/product-detail.component.d.ts +0 -0
- package/{catalog → package/catalog}/components/product-detail/product-detail.types.d.ts +0 -0
- package/{catalog → package/catalog}/components/product-list/product-list.component.d.ts +0 -0
- package/{catalog → package/catalog}/components/product-options-editor/product-options-editor.component.d.ts +0 -0
- package/{catalog → package/catalog}/components/product-variants-editor/product-variants-editor.component.d.ts +10 -3
- package/{catalog → package/catalog}/components/product-variants-list/product-variants-list.component.d.ts +0 -0
- package/{catalog → package/catalog}/components/product-variants-table/product-variants-table.component.d.ts +0 -0
- package/{catalog → package/catalog}/components/update-product-option-dialog/update-product-option-dialog.component.d.ts +0 -0
- package/{catalog → package/catalog}/components/variant-price-detail/variant-price-detail.component.d.ts +0 -0
- package/{catalog → package/catalog}/package.json +0 -0
- package/{catalog → package/catalog}/providers/product-detail/product-detail.service.d.ts +0 -0
- package/{catalog → package/catalog}/providers/product-detail/replace-last.d.ts +0 -0
- package/{catalog → package/catalog}/providers/routing/asset-resolver.d.ts +0 -0
- package/{catalog → package/catalog}/providers/routing/collection-resolver.d.ts +0 -0
- package/{catalog → package/catalog}/providers/routing/facet-resolver.d.ts +0 -0
- package/{catalog → package/catalog}/providers/routing/product-resolver.d.ts +0 -0
- package/{catalog → package/catalog}/providers/routing/product-variants-resolver.d.ts +0 -0
- package/{catalog → package/catalog}/public_api.d.ts +0 -0
- package/{catalog → package/catalog}/vendure-admin-ui-catalog.d.ts +0 -0
- package/{core → package/core}/app.component.d.ts +0 -0
- package/{core → package/core}/app.component.module.d.ts +0 -0
- package/{core → package/core}/app.config.d.ts +0 -0
- package/{core → package/core}/common/base-detail.component.d.ts +0 -0
- package/{core → package/core}/common/base-entity-resolver.d.ts +0 -0
- package/{core → package/core}/common/base-list.component.d.ts +0 -0
- package/{core → package/core}/common/component-registry-types.d.ts +0 -0
- package/{core → package/core}/common/deactivate-aware.d.ts +0 -0
- package/{core → package/core}/common/detail-breadcrumb.d.ts +0 -0
- package/{core → package/core}/common/generated-types.d.ts +242 -127
- package/{core → package/core}/common/introspection-result-wrapper.d.ts +0 -0
- package/{core → package/core}/common/introspection-result.d.ts +0 -0
- package/{core → package/core}/common/single-search-selection-model.d.ts +0 -0
- package/{core → package/core}/common/utilities/configurable-operation-utils.d.ts +4 -2
- package/{core → package/core}/common/utilities/create-updated-translatable.d.ts +0 -0
- package/{core → package/core}/common/utilities/find-translation.d.ts +0 -0
- package/{core → package/core}/common/utilities/flatten-facet-values.d.ts +0 -0
- package/{core → package/core}/common/utilities/get-default-ui-language.d.ts +0 -0
- package/{core → package/core}/common/utilities/interpolate-description.d.ts +0 -0
- package/{core → package/core}/common/utilities/selection-manager.d.ts +0 -0
- package/{core → package/core}/common/utilities/string-to-color.d.ts +0 -0
- package/package/core/common/version.d.ts +1 -0
- package/{core → package/core}/components/app-shell/app-shell.component.d.ts +0 -0
- package/{core → package/core}/components/breadcrumb/breadcrumb.component.d.ts +0 -0
- package/{core → package/core}/components/channel-switcher/channel-switcher.component.d.ts +0 -0
- package/{core → package/core}/components/main-nav/main-nav.component.d.ts +0 -0
- package/{core → package/core}/components/notification/notification.component.d.ts +0 -0
- package/{core → package/core}/components/overlay-host/overlay-host.component.d.ts +0 -0
- package/{core → package/core}/components/theme-switcher/theme-switcher.component.d.ts +0 -0
- package/{core → package/core}/components/ui-language-switcher-dialog/ui-language-switcher-dialog.component.d.ts +0 -0
- package/{core → package/core}/components/user-menu/user-menu.component.d.ts +0 -0
- package/{core → package/core}/core.module.d.ts +0 -0
- package/{core → package/core}/data/check-jobs-link.d.ts +0 -0
- package/{core → package/core}/data/client-state/client-defaults.d.ts +0 -0
- package/{core → package/core}/data/client-state/client-resolvers.d.ts +0 -0
- package/{core → package/core}/data/data.module.d.ts +0 -0
- package/{core → package/core}/data/definitions/administrator-definitions.d.ts +0 -0
- package/{core → package/core}/data/definitions/auth-definitions.d.ts +0 -0
- package/{core → package/core}/data/definitions/client-definitions.d.ts +0 -0
- package/{core → package/core}/data/definitions/collection-definitions.d.ts +0 -0
- package/{core → package/core}/data/definitions/customer-definitions.d.ts +0 -0
- package/{core → package/core}/data/definitions/facet-definitions.d.ts +0 -0
- package/{core → package/core}/data/definitions/order-definitions.d.ts +2 -0
- package/{core → package/core}/data/definitions/product-definitions.d.ts +1 -0
- package/{core → package/core}/data/definitions/promotion-definitions.d.ts +0 -0
- package/{core → package/core}/data/definitions/settings-definitions.d.ts +0 -0
- package/{core → package/core}/data/definitions/shared-definitions.d.ts +0 -0
- package/{core → package/core}/data/definitions/shipping-definitions.d.ts +0 -0
- package/{core → package/core}/data/omit-typename-link.d.ts +0 -0
- package/{core → package/core}/data/providers/administrator-data.service.d.ts +0 -0
- package/{core → package/core}/data/providers/auth-data.service.d.ts +0 -0
- package/{core → package/core}/data/providers/base-data.service.d.ts +0 -0
- package/{core → package/core}/data/providers/client-data.service.d.ts +0 -0
- package/{core → package/core}/data/providers/collection-data.service.d.ts +0 -0
- package/{core → package/core}/data/providers/customer-data.service.d.ts +0 -0
- package/{core → package/core}/data/providers/data.service.d.ts +0 -0
- package/{core → package/core}/data/providers/facet-data.service.d.ts +0 -0
- package/{core → package/core}/data/providers/fetch-adapter.d.ts +0 -0
- package/{core → package/core}/data/providers/interceptor.d.ts +0 -0
- package/{core → package/core}/data/providers/order-data.service.d.ts +1 -0
- package/{core → package/core}/data/providers/product-data.service.d.ts +1 -0
- package/{core → package/core}/data/providers/promotion-data.service.d.ts +0 -0
- package/{core → package/core}/data/providers/settings-data.service.d.ts +0 -0
- package/{core → package/core}/data/providers/shipping-method-data.service.d.ts +0 -0
- package/{core → package/core}/data/query-result.d.ts +0 -0
- package/{core → package/core}/data/server-config.d.ts +0 -0
- package/{core → package/core}/data/utils/add-custom-fields.d.ts +0 -0
- package/{core → package/core}/data/utils/get-server-location.d.ts +0 -0
- package/{core → package/core}/data/utils/remove-readonly-custom-fields.d.ts +0 -0
- package/{core → package/core}/data/utils/transform-relation-custom-field-inputs.d.ts +0 -0
- package/{core → package/core}/package.json +0 -0
- package/{core → package/core}/providers/auth/auth.service.d.ts +0 -0
- package/{core → package/core}/providers/component-registry/component-registry.service.d.ts +0 -0
- package/{core → package/core}/providers/custom-detail-component/custom-detail-component-types.d.ts +0 -0
- package/{core → package/core}/providers/custom-detail-component/custom-detail-component.service.d.ts +0 -0
- package/{core → package/core}/providers/custom-field-component/custom-field-component.service.d.ts +0 -0
- package/{core → package/core}/providers/dashboard-widget/dashboard-widget-types.d.ts +0 -0
- package/{core → package/core}/providers/dashboard-widget/dashboard-widget.service.d.ts +0 -0
- package/{core → package/core}/providers/dashboard-widget/register-dashboard-widget.d.ts +0 -0
- package/{core → package/core}/providers/guard/auth.guard.d.ts +0 -0
- package/{core → package/core}/providers/health-check/health-check.service.d.ts +0 -0
- package/{core → package/core}/providers/i18n/custom-http-loader.d.ts +0 -0
- package/{core → package/core}/providers/i18n/custom-message-format-compiler.d.ts +0 -0
- package/{core → package/core}/providers/i18n/i18n.service.d.ts +0 -0
- package/{core → package/core}/providers/job-queue/job-queue.service.d.ts +0 -0
- package/{core → package/core}/providers/local-storage/local-storage.service.d.ts +0 -0
- package/{core → package/core}/providers/modal/modal.service.d.ts +0 -0
- package/{core → package/core}/providers/modal/modal.types.d.ts +0 -0
- package/{core → package/core}/providers/nav-builder/nav-builder-types.d.ts +0 -0
- package/{core → package/core}/providers/nav-builder/nav-builder.service.d.ts +0 -0
- package/{core → package/core}/providers/notification/notification.service.d.ts +0 -0
- package/{core → package/core}/providers/overlay-host/overlay-host.service.d.ts +0 -0
- package/{core → package/core}/public_api.d.ts +11 -1
- package/{core → package/core}/shared/components/action-bar/action-bar.component.d.ts +0 -0
- package/{core → package/core}/shared/components/action-bar-items/action-bar-items.component.d.ts +0 -0
- package/{core → package/core}/shared/components/address-form/address-form.component.d.ts +0 -0
- package/{core → package/core}/shared/components/affixed-input/affixed-input.component.d.ts +0 -0
- package/{core → package/core}/shared/components/affixed-input/percentage-suffix-input.component.d.ts +0 -0
- package/{core → package/core}/shared/components/asset-file-input/asset-file-input.component.d.ts +0 -0
- package/{core → package/core}/shared/components/asset-gallery/asset-gallery.component.d.ts +0 -0
- package/{core → package/core}/shared/components/asset-gallery/asset-gallery.types.d.ts +0 -0
- package/{core → package/core}/shared/components/asset-picker-dialog/asset-picker-dialog.component.d.ts +0 -0
- package/{core → package/core}/shared/components/asset-preview/asset-preview.component.d.ts +0 -0
- package/{core → package/core}/shared/components/asset-preview-dialog/asset-preview-dialog.component.d.ts +0 -0
- package/{core → package/core}/shared/components/asset-preview-links/asset-preview-links.component.d.ts +0 -0
- package/{core → package/core}/shared/components/asset-search-input/asset-search-input.component.d.ts +0 -0
- package/{core → package/core}/shared/components/channel-assignment-control/channel-assignment-control.component.d.ts +0 -0
- package/{core → package/core}/shared/components/channel-badge/channel-badge.component.d.ts +0 -0
- package/{core → package/core}/shared/components/chip/chip.component.d.ts +0 -0
- package/{core → package/core}/shared/components/configurable-input/configurable-input.component.d.ts +0 -0
- package/{core → package/core}/shared/components/currency-input/currency-input.component.d.ts +0 -0
- package/{core → package/core}/shared/components/custom-detail-component-host/custom-detail-component-host.component.d.ts +0 -0
- package/{core → package/core}/shared/components/custom-field-control/custom-field-control.component.d.ts +0 -0
- package/{core → package/core}/shared/components/customer-label/customer-label.component.d.ts +0 -0
- package/{core → package/core}/shared/components/data-table/data-table-column.component.d.ts +0 -0
- package/{core → package/core}/shared/components/data-table/data-table.component.d.ts +0 -0
- package/{core → package/core}/shared/components/datetime-picker/constants.d.ts +0 -0
- package/{core → package/core}/shared/components/datetime-picker/datetime-picker.component.d.ts +0 -0
- package/{core → package/core}/shared/components/datetime-picker/datetime-picker.service.d.ts +0 -0
- package/{core → package/core}/shared/components/datetime-picker/types.d.ts +0 -0
- package/{core → package/core}/shared/components/dropdown/dropdown-item.directive.d.ts +0 -0
- package/{core → package/core}/shared/components/dropdown/dropdown-menu.component.d.ts +2 -1
- package/{core → package/core}/shared/components/dropdown/dropdown-trigger.directive.d.ts +0 -0
- package/{core → package/core}/shared/components/dropdown/dropdown.component.d.ts +0 -0
- package/{core → package/core}/shared/components/edit-note-dialog/edit-note-dialog.component.d.ts +0 -0
- package/{core → package/core}/shared/components/empty-placeholder/empty-placeholder.component.d.ts +0 -0
- package/{core → package/core}/shared/components/entity-info/entity-info.component.d.ts +0 -0
- package/{core → package/core}/shared/components/extension-host/extension-host-config.d.ts +0 -0
- package/{core → package/core}/shared/components/extension-host/extension-host.component.d.ts +0 -0
- package/{core → package/core}/shared/components/extension-host/extension-host.service.d.ts +0 -0
- package/{core → package/core}/shared/components/extension-host/host-external-frame.d.ts +0 -0
- package/{core → package/core}/shared/components/facet-value-chip/facet-value-chip.component.d.ts +0 -0
- package/{core → package/core}/shared/components/facet-value-selector/facet-value-selector.component.d.ts +0 -0
- package/{core → package/core}/shared/components/focal-point-control/focal-point-control.component.d.ts +0 -0
- package/{core → package/core}/shared/components/form-field/form-field-control.directive.d.ts +0 -0
- package/{core → package/core}/shared/components/form-field/form-field.component.d.ts +0 -0
- package/{core → package/core}/shared/components/form-item/form-item.component.d.ts +0 -0
- package/{core → package/core}/shared/components/formatted-address/formatted-address.component.d.ts +0 -0
- package/{core → package/core}/shared/components/help-tooltip/help-tooltip.component.d.ts +0 -0
- package/{core → package/core}/shared/components/history-entry-detail/history-entry-detail.component.d.ts +0 -0
- package/{core → package/core}/shared/components/items-per-page-controls/items-per-page-controls.component.d.ts +0 -0
- package/{core → package/core}/shared/components/labeled-data/labeled-data.component.d.ts +0 -0
- package/{core → package/core}/shared/components/language-selector/language-selector.component.d.ts +0 -0
- package/{core → package/core}/shared/components/manage-tags-dialog/manage-tags-dialog.component.d.ts +0 -0
- package/{core → package/core}/shared/components/modal-dialog/dialog-buttons.directive.d.ts +0 -0
- package/{core → package/core}/shared/components/modal-dialog/dialog-component-outlet.component.d.ts +0 -0
- package/{core → package/core}/shared/components/modal-dialog/dialog-title.directive.d.ts +0 -0
- package/{core → package/core}/shared/components/modal-dialog/modal-dialog.component.d.ts +0 -0
- package/{core → package/core}/shared/components/object-tree/object-tree.component.d.ts +0 -0
- package/{core → package/core}/shared/components/order-state-label/order-state-label.component.d.ts +0 -0
- package/{core → package/core}/shared/components/pagination-controls/pagination-controls.component.d.ts +0 -0
- package/{core → package/core}/shared/components/product-multi-selector-dialog/product-multi-selector-dialog.component.d.ts +0 -0
- package/{core → package/core}/shared/components/product-search-input/product-search-input.component.d.ts +0 -0
- package/{core → package/core}/shared/components/product-variant-selector/product-variant-selector.component.d.ts +0 -0
- package/{core → package/core}/shared/components/rich-text-editor/external-image-dialog/external-image-dialog.component.d.ts +0 -0
- package/{core → package/core}/shared/components/rich-text-editor/link-dialog/link-dialog.component.d.ts +0 -0
- package/package/core/shared/components/rich-text-editor/prosemirror/context-menu/context-menu.component.d.ts +31 -0
- package/package/core/shared/components/rich-text-editor/prosemirror/context-menu/context-menu.service.d.ts +34 -0
- package/package/core/shared/components/rich-text-editor/prosemirror/custom-nodes.d.ts +4 -0
- package/package/core/shared/components/rich-text-editor/prosemirror/inputrules.d.ts +8 -0
- package/{core → package/core}/shared/components/rich-text-editor/prosemirror/keymap.d.ts +0 -0
- package/{core → package/core}/shared/components/rich-text-editor/prosemirror/menu/links.d.ts +1 -1
- package/package/core/shared/components/rich-text-editor/prosemirror/menu/menu-common.d.ts +16 -0
- package/package/core/shared/components/rich-text-editor/prosemirror/menu/menu-plugin.d.ts +9 -0
- package/{core → package/core}/shared/components/rich-text-editor/prosemirror/menu/menu.d.ts +0 -0
- package/package/core/shared/components/rich-text-editor/prosemirror/menu/sub-menu-with-icon.d.ts +14 -0
- package/package/core/shared/components/rich-text-editor/prosemirror/plugins/image-plugin.d.ts +7 -0
- package/{core → package/core}/shared/components/rich-text-editor/prosemirror/plugins/link-select-plugin.d.ts +1 -1
- package/package/core/shared/components/rich-text-editor/prosemirror/plugins/raw-editor-plugin.d.ts +7 -0
- package/package/core/shared/components/rich-text-editor/prosemirror/plugins/tables-plugin.d.ts +13 -0
- package/{core → package/core}/shared/components/rich-text-editor/prosemirror/prosemirror.service.d.ts +7 -3
- package/{core → package/core}/shared/components/rich-text-editor/prosemirror/types.d.ts +0 -2
- package/{core → package/core}/shared/components/rich-text-editor/prosemirror/utils.d.ts +0 -0
- package/package/core/shared/components/rich-text-editor/raw-html-dialog/raw-html-dialog.component.d.ts +21 -0
- package/{core → package/core}/shared/components/rich-text-editor/rich-text-editor.component.d.ts +6 -2
- package/{core → package/core}/shared/components/select-toggle/select-toggle.component.d.ts +0 -0
- package/{core → package/core}/shared/components/simple-dialog/simple-dialog.component.d.ts +0 -0
- package/{core → package/core}/shared/components/status-badge/status-badge.component.d.ts +0 -0
- package/{core → package/core}/shared/components/tabbed-custom-fields/tabbed-custom-fields.component.d.ts +0 -0
- package/{core → package/core}/shared/components/table-row-action/table-row-action.component.d.ts +0 -0
- package/{core → package/core}/shared/components/tag-selector/tag-selector.component.d.ts +0 -0
- package/{core → package/core}/shared/components/timeline-entry/timeline-entry.component.d.ts +0 -0
- package/{core → package/core}/shared/components/title-input/title-input.component.d.ts +0 -0
- package/{core → package/core}/shared/components/ui-extension-point/ui-extension-point.component.d.ts +0 -0
- package/{core → package/core}/shared/directives/disabled.directive.d.ts +0 -0
- package/{core → package/core}/shared/directives/if-default-channel-active.directive.d.ts +0 -0
- package/{core → package/core}/shared/directives/if-directive-base.d.ts +0 -0
- package/{core → package/core}/shared/directives/if-multichannel.directive.d.ts +0 -0
- package/{core → package/core}/shared/directives/if-permissions.directive.d.ts +0 -0
- package/{core → package/core}/shared/dynamic-form-inputs/boolean-form-input/boolean-form-input.component.d.ts +0 -0
- package/package/core/shared/dynamic-form-inputs/code-editor-form-input/base-code-editor-form-input.component.d.ts +30 -0
- package/package/core/shared/dynamic-form-inputs/code-editor-form-input/html-editor-form-input.component.d.ts +22 -0
- package/{core → package/core}/shared/dynamic-form-inputs/code-editor-form-input/json-editor-form-input.component.d.ts +5 -17
- package/{core → package/core}/shared/dynamic-form-inputs/combination-mode-form-input/combination-mode-form-input.component.d.ts +0 -0
- package/{core → package/core}/shared/dynamic-form-inputs/currency-form-input/currency-form-input.component.d.ts +0 -0
- package/{core → package/core}/shared/dynamic-form-inputs/customer-group-form-input/customer-group-form-input.component.d.ts +0 -0
- package/{core → package/core}/shared/dynamic-form-inputs/date-form-input/date-form-input.component.d.ts +0 -0
- package/{core → package/core}/shared/dynamic-form-inputs/dynamic-form-input/dynamic-form-input.component.d.ts +0 -0
- package/{core → package/core}/shared/dynamic-form-inputs/facet-value-form-input/facet-value-form-input.component.d.ts +0 -0
- package/{core → package/core}/shared/dynamic-form-inputs/number-form-input/number-form-input.component.d.ts +0 -0
- package/{core → package/core}/shared/dynamic-form-inputs/password-form-input/password-form-input.component.d.ts +0 -0
- package/{core → package/core}/shared/dynamic-form-inputs/product-multi-selector-form-input/product-multi-selector-form-input.component.d.ts +0 -0
- package/{core → package/core}/shared/dynamic-form-inputs/product-selector-form-input/product-selector-form-input.component.d.ts +0 -0
- package/{core → package/core}/shared/dynamic-form-inputs/register-dynamic-input-components.d.ts +2 -1
- package/{core → package/core}/shared/dynamic-form-inputs/relation-form-input/asset/relation-asset-input.component.d.ts +0 -0
- package/{core → package/core}/shared/dynamic-form-inputs/relation-form-input/customer/relation-customer-input.component.d.ts +0 -0
- package/{core → package/core}/shared/dynamic-form-inputs/relation-form-input/generic/relation-generic-input.component.d.ts +0 -0
- package/{core → package/core}/shared/dynamic-form-inputs/relation-form-input/product/relation-product-input.component.d.ts +0 -0
- package/{core → package/core}/shared/dynamic-form-inputs/relation-form-input/product-variant/relation-product-variant-input.component.d.ts +0 -0
- package/{core → package/core}/shared/dynamic-form-inputs/relation-form-input/relation-card/relation-card.component.d.ts +0 -0
- package/{core → package/core}/shared/dynamic-form-inputs/relation-form-input/relation-form-input.component.d.ts +0 -0
- package/{core → package/core}/shared/dynamic-form-inputs/relation-form-input/relation-selector-dialog/relation-selector-dialog.component.d.ts +0 -0
- package/{core → package/core}/shared/dynamic-form-inputs/rich-text-form-input/rich-text-form-input.component.d.ts +0 -0
- package/{core → package/core}/shared/dynamic-form-inputs/select-form-input/select-form-input.component.d.ts +0 -0
- package/{core → package/core}/shared/dynamic-form-inputs/text-form-input/text-form-input.component.d.ts +0 -0
- package/{core → package/core}/shared/dynamic-form-inputs/textarea-form-input/textarea-form-input.component.d.ts +0 -0
- package/{core → package/core}/shared/pipes/asset-preview.pipe.d.ts +0 -0
- package/{core → package/core}/shared/pipes/channel-label.pipe.d.ts +0 -0
- package/{core → package/core}/shared/pipes/custom-field-label.pipe.d.ts +0 -0
- package/{core → package/core}/shared/pipes/duration.pipe.d.ts +0 -0
- package/{core → package/core}/shared/pipes/file-size.pipe.d.ts +0 -0
- package/{core → package/core}/shared/pipes/has-permission.pipe.d.ts +0 -0
- package/{core → package/core}/shared/pipes/locale-base.pipe.d.ts +0 -0
- package/{core → package/core}/shared/pipes/locale-currency-name.pipe.d.ts +0 -0
- package/{core → package/core}/shared/pipes/locale-currency.pipe.d.ts +0 -0
- package/{core → package/core}/shared/pipes/locale-date.pipe.d.ts +0 -0
- package/{core → package/core}/shared/pipes/locale-language-name.pipe.d.ts +0 -0
- package/{core → package/core}/shared/pipes/locale-region-name.pipe.d.ts +0 -0
- package/{core → package/core}/shared/pipes/sentence-case.pipe.d.ts +0 -0
- package/{core → package/core}/shared/pipes/sort.pipe.d.ts +0 -0
- package/{core → package/core}/shared/pipes/state-i18n-token.pipe.d.ts +0 -0
- package/{core → package/core}/shared/pipes/string-to-color.pipe.d.ts +0 -0
- package/{core → package/core}/shared/pipes/time-ago.pipe.d.ts +0 -0
- package/{core → package/core}/shared/providers/routing/can-deactivate-detail-guard.d.ts +0 -0
- package/{core → package/core}/shared/shared.module.d.ts +33 -30
- package/{core → package/core}/validators/unicode-pattern.validator.d.ts +0 -0
- package/{core → package/core}/vendure-admin-ui-core.d.ts +0 -0
- package/{customer → package/customer}/components/add-customer-to-group-dialog/add-customer-to-group-dialog.component.d.ts +0 -0
- package/{customer → package/customer}/components/address-card/address-card.component.d.ts +0 -0
- package/{customer → package/customer}/components/address-detail-dialog/address-detail-dialog.component.d.ts +0 -0
- package/{customer → package/customer}/components/customer-detail/customer-detail.component.d.ts +0 -0
- package/{customer → package/customer}/components/customer-group-detail-dialog/customer-group-detail-dialog.component.d.ts +0 -0
- package/{customer → package/customer}/components/customer-group-list/customer-group-list.component.d.ts +0 -0
- package/{customer → package/customer}/components/customer-group-member-list/customer-group-member-list.component.d.ts +0 -0
- package/{customer → package/customer}/components/customer-history/customer-history.component.d.ts +0 -0
- package/{customer → package/customer}/components/customer-list/customer-list.component.d.ts +0 -0
- package/{customer → package/customer}/components/customer-status-label/customer-status-label.component.d.ts +0 -0
- package/{customer → package/customer}/components/select-customer-group-dialog/select-customer-group-dialog.component.d.ts +0 -0
- package/{customer → package/customer}/customer.module.d.ts +0 -0
- package/{customer → package/customer}/customer.routes.d.ts +0 -0
- package/{customer → package/customer}/package.json +0 -0
- package/{customer → package/customer}/providers/routing/customer-resolver.d.ts +0 -0
- package/{customer → package/customer}/public_api.d.ts +0 -0
- package/{customer → package/customer}/vendure-admin-ui-customer.d.ts +0 -0
- package/{dashboard → package/dashboard}/components/dashboard/dashboard.component.d.ts +0 -0
- package/{dashboard → package/dashboard}/components/dashboard-widget/dashboard-widget.component.d.ts +0 -0
- package/{dashboard → package/dashboard}/dashboard.module.d.ts +0 -0
- package/{dashboard → package/dashboard}/dashboard.routes.d.ts +0 -0
- package/{dashboard → package/dashboard}/default-widgets.d.ts +0 -0
- package/{dashboard → package/dashboard}/package.json +0 -0
- package/{dashboard → package/dashboard}/public_api.d.ts +0 -0
- package/{dashboard → package/dashboard}/vendure-admin-ui-dashboard.d.ts +0 -0
- package/{dashboard → package/dashboard}/widgets/latest-orders-widget/latest-orders-widget.component.d.ts +0 -0
- package/{dashboard → package/dashboard}/widgets/order-summary-widget/order-summary-widget.component.d.ts +0 -0
- package/{dashboard → package/dashboard}/widgets/test-widget/test-widget.component.d.ts +0 -0
- package/{dashboard → package/dashboard}/widgets/welcome-widget/welcome-widget.component.d.ts +0 -0
- package/{esm2020 → package/esm2020}/catalog/catalog.module.mjs +0 -0
- package/{esm2020 → package/esm2020}/catalog/catalog.routes.mjs +0 -0
- package/{esm2020 → package/esm2020}/catalog/components/apply-facet-dialog/apply-facet-dialog.component.mjs +0 -0
- package/{esm2020 → package/esm2020}/catalog/components/asset-detail/asset-detail.component.mjs +0 -0
- package/{esm2020 → package/esm2020}/catalog/components/asset-list/asset-list.component.mjs +0 -0
- package/{esm2020 → package/esm2020}/catalog/components/assets/assets.component.mjs +1 -1
- package/{esm2020 → package/esm2020}/catalog/components/assign-products-to-channel-dialog/assign-products-to-channel-dialog.component.mjs +0 -0
- package/{esm2020 → package/esm2020}/catalog/components/collection-contents/collection-contents.component.mjs +0 -0
- package/{esm2020 → package/esm2020}/catalog/components/collection-detail/collection-detail.component.mjs +1 -1
- package/{esm2020 → package/esm2020}/catalog/components/collection-list/collection-list.component.mjs +0 -0
- package/{esm2020 → package/esm2020}/catalog/components/collection-tree/array-to-tree.mjs +0 -0
- package/{esm2020 → package/esm2020}/catalog/components/collection-tree/collection-tree-node.component.mjs +2 -2
- package/{esm2020 → package/esm2020}/catalog/components/collection-tree/collection-tree.component.mjs +0 -0
- package/{esm2020 → package/esm2020}/catalog/components/collection-tree/collection-tree.service.mjs +0 -0
- package/{esm2020 → package/esm2020}/catalog/components/collection-tree/collection-tree.types.mjs +0 -0
- package/{esm2020 → package/esm2020}/catalog/components/confirm-variant-deletion-dialog/confirm-variant-deletion-dialog.component.mjs +0 -0
- package/{esm2020 → package/esm2020}/catalog/components/facet-detail/facet-detail.component.mjs +1 -1
- package/{esm2020 → package/esm2020}/catalog/components/facet-list/facet-list.component.mjs +1 -1
- package/package/esm2020/catalog/components/generate-product-variants/generate-product-variants.component.mjs +87 -0
- package/package/esm2020/catalog/components/option-value-input/option-value-input.component.mjs +151 -0
- package/{esm2020 → package/esm2020}/catalog/components/product-detail/product-detail.component.mjs +0 -0
- package/{esm2020 → package/esm2020}/catalog/components/product-detail/product-detail.types.mjs +0 -0
- package/{esm2020 → package/esm2020}/catalog/components/product-list/product-list.component.mjs +1 -1
- package/{esm2020 → package/esm2020}/catalog/components/product-options-editor/product-options-editor.component.mjs +0 -0
- package/package/esm2020/catalog/components/product-variants-editor/product-variants-editor.component.mjs +413 -0
- package/{esm2020 → package/esm2020}/catalog/components/product-variants-list/product-variants-list.component.mjs +0 -0
- package/{esm2020 → package/esm2020}/catalog/components/product-variants-table/product-variants-table.component.mjs +0 -0
- package/{esm2020 → package/esm2020}/catalog/components/update-product-option-dialog/update-product-option-dialog.component.mjs +0 -0
- package/{esm2020 → package/esm2020}/catalog/components/variant-price-detail/variant-price-detail.component.mjs +0 -0
- package/{esm2020 → package/esm2020}/catalog/providers/product-detail/product-detail.service.mjs +0 -0
- package/{esm2020 → package/esm2020}/catalog/providers/product-detail/replace-last.mjs +0 -0
- package/{esm2020 → package/esm2020}/catalog/providers/routing/asset-resolver.mjs +0 -0
- package/{esm2020 → package/esm2020}/catalog/providers/routing/collection-resolver.mjs +0 -0
- package/{esm2020 → package/esm2020}/catalog/providers/routing/facet-resolver.mjs +0 -0
- package/{esm2020 → package/esm2020}/catalog/providers/routing/product-resolver.mjs +0 -0
- package/{esm2020 → package/esm2020}/catalog/providers/routing/product-variants-resolver.mjs +0 -0
- package/{esm2020 → package/esm2020}/catalog/public_api.mjs +0 -0
- package/{esm2020 → package/esm2020}/catalog/vendure-admin-ui-catalog.mjs +0 -0
- package/{esm2020 → package/esm2020}/core/app.component.mjs +0 -0
- package/{esm2020 → package/esm2020}/core/app.component.module.mjs +0 -0
- package/{esm2020 → package/esm2020}/core/app.config.mjs +0 -0
- package/{esm2020 → package/esm2020}/core/common/base-detail.component.mjs +0 -0
- package/{esm2020 → package/esm2020}/core/common/base-entity-resolver.mjs +0 -0
- package/{esm2020 → package/esm2020}/core/common/base-list.component.mjs +0 -0
- package/{esm2020 → package/esm2020}/core/common/component-registry-types.mjs +0 -0
- package/{esm2020 → package/esm2020}/core/common/deactivate-aware.mjs +0 -0
- package/{esm2020 → package/esm2020}/core/common/detail-breadcrumb.mjs +0 -0
- package/package/esm2020/core/common/generated-types.mjs +983 -0
- package/{esm2020 → package/esm2020}/core/common/introspection-result-wrapper.mjs +0 -0
- package/package/esm2020/core/common/introspection-result.mjs +195 -0
- package/{esm2020 → package/esm2020}/core/common/single-search-selection-model.mjs +0 -0
- package/package/esm2020/core/common/utilities/configurable-operation-utils.mjs +105 -0
- package/{esm2020 → package/esm2020}/core/common/utilities/create-updated-translatable.mjs +0 -0
- package/{esm2020 → package/esm2020}/core/common/utilities/find-translation.mjs +0 -0
- package/{esm2020 → package/esm2020}/core/common/utilities/flatten-facet-values.mjs +0 -0
- package/{esm2020 → package/esm2020}/core/common/utilities/get-default-ui-language.mjs +0 -0
- package/{esm2020 → package/esm2020}/core/common/utilities/interpolate-description.mjs +0 -0
- package/{esm2020 → package/esm2020}/core/common/utilities/selection-manager.mjs +0 -0
- package/{esm2020 → package/esm2020}/core/common/utilities/string-to-color.mjs +0 -0
- package/{esm2020 → package/esm2020}/core/common/version.mjs +2 -2
- package/{esm2020 → package/esm2020}/core/components/app-shell/app-shell.component.mjs +0 -0
- package/{esm2020 → package/esm2020}/core/components/breadcrumb/breadcrumb.component.mjs +0 -0
- package/{esm2020 → package/esm2020}/core/components/channel-switcher/channel-switcher.component.mjs +1 -1
- package/{esm2020 → package/esm2020}/core/components/main-nav/main-nav.component.mjs +0 -0
- package/{esm2020 → package/esm2020}/core/components/notification/notification.component.mjs +0 -0
- package/{esm2020 → package/esm2020}/core/components/overlay-host/overlay-host.component.mjs +0 -0
- package/{esm2020 → package/esm2020}/core/components/theme-switcher/theme-switcher.component.mjs +0 -0
- package/{esm2020 → package/esm2020}/core/components/ui-language-switcher-dialog/ui-language-switcher-dialog.component.mjs +0 -0
- package/{esm2020 → package/esm2020}/core/components/user-menu/user-menu.component.mjs +1 -1
- package/{esm2020 → package/esm2020}/core/core.module.mjs +0 -0
- package/{esm2020 → package/esm2020}/core/data/check-jobs-link.mjs +0 -0
- package/{esm2020 → package/esm2020}/core/data/client-state/client-defaults.mjs +0 -0
- package/{esm2020 → package/esm2020}/core/data/client-state/client-resolvers.mjs +0 -0
- package/{esm2020 → package/esm2020}/core/data/data.module.mjs +0 -0
- package/{esm2020 → package/esm2020}/core/data/definitions/administrator-definitions.mjs +0 -0
- package/{esm2020 → package/esm2020}/core/data/definitions/auth-definitions.mjs +0 -0
- package/{esm2020 → package/esm2020}/core/data/definitions/client-definitions.mjs +0 -0
- package/{esm2020 → package/esm2020}/core/data/definitions/collection-definitions.mjs +0 -0
- package/{esm2020 → package/esm2020}/core/data/definitions/customer-definitions.mjs +0 -0
- package/{esm2020 → package/esm2020}/core/data/definitions/facet-definitions.mjs +0 -0
- package/package/esm2020/core/data/definitions/order-definitions.mjs +472 -0
- package/package/esm2020/core/data/definitions/product-definitions.mjs +745 -0
- package/{esm2020 → package/esm2020}/core/data/definitions/promotion-definitions.mjs +0 -0
- package/{esm2020 → package/esm2020}/core/data/definitions/settings-definitions.mjs +0 -0
- package/{esm2020 → package/esm2020}/core/data/definitions/shared-definitions.mjs +0 -0
- package/{esm2020 → package/esm2020}/core/data/definitions/shipping-definitions.mjs +0 -0
- package/{esm2020 → package/esm2020}/core/data/omit-typename-link.mjs +0 -0
- package/{esm2020 → package/esm2020}/core/data/providers/administrator-data.service.mjs +0 -0
- package/{esm2020 → package/esm2020}/core/data/providers/auth-data.service.mjs +0 -0
- package/{esm2020 → package/esm2020}/core/data/providers/base-data.service.mjs +0 -0
- package/{esm2020 → package/esm2020}/core/data/providers/client-data.service.mjs +0 -0
- package/{esm2020 → package/esm2020}/core/data/providers/collection-data.service.mjs +0 -0
- package/{esm2020 → package/esm2020}/core/data/providers/customer-data.service.mjs +0 -0
- package/{esm2020 → package/esm2020}/core/data/providers/data.service.mjs +0 -0
- package/{esm2020 → package/esm2020}/core/data/providers/facet-data.service.mjs +0 -0
- package/{esm2020 → package/esm2020}/core/data/providers/fetch-adapter.mjs +0 -0
- package/{esm2020 → package/esm2020}/core/data/providers/interceptor.mjs +0 -0
- package/package/esm2020/core/data/providers/order-data.service.mjs +105 -0
- package/package/esm2020/core/data/providers/product-data.service.mjs +243 -0
- package/{esm2020 → package/esm2020}/core/data/providers/promotion-data.service.mjs +0 -0
- package/{esm2020 → package/esm2020}/core/data/providers/settings-data.service.mjs +0 -0
- package/{esm2020 → package/esm2020}/core/data/providers/shipping-method-data.service.mjs +0 -0
- package/{esm2020 → package/esm2020}/core/data/query-result.mjs +0 -0
- package/{esm2020 → package/esm2020}/core/data/server-config.mjs +0 -0
- package/{esm2020 → package/esm2020}/core/data/utils/add-custom-fields.mjs +0 -0
- package/{esm2020 → package/esm2020}/core/data/utils/get-server-location.mjs +0 -0
- package/{esm2020 → package/esm2020}/core/data/utils/remove-readonly-custom-fields.mjs +0 -0
- package/{esm2020 → package/esm2020}/core/data/utils/transform-relation-custom-field-inputs.mjs +0 -0
- package/{esm2020 → package/esm2020}/core/providers/auth/auth.service.mjs +0 -0
- package/{esm2020 → package/esm2020}/core/providers/component-registry/component-registry.service.mjs +0 -0
- package/{esm2020 → package/esm2020}/core/providers/custom-detail-component/custom-detail-component-types.mjs +0 -0
- package/{esm2020 → package/esm2020}/core/providers/custom-detail-component/custom-detail-component.service.mjs +0 -0
- package/{esm2020 → package/esm2020}/core/providers/custom-field-component/custom-field-component.service.mjs +0 -0
- package/{esm2020 → package/esm2020}/core/providers/dashboard-widget/dashboard-widget-types.mjs +0 -0
- package/{esm2020 → package/esm2020}/core/providers/dashboard-widget/dashboard-widget.service.mjs +0 -0
- package/{esm2020 → package/esm2020}/core/providers/dashboard-widget/register-dashboard-widget.mjs +0 -0
- package/{esm2020 → package/esm2020}/core/providers/guard/auth.guard.mjs +0 -0
- package/{esm2020 → package/esm2020}/core/providers/health-check/health-check.service.mjs +0 -0
- package/{esm2020 → package/esm2020}/core/providers/i18n/custom-http-loader.mjs +0 -0
- package/{esm2020 → package/esm2020}/core/providers/i18n/custom-message-format-compiler.mjs +0 -0
- package/{esm2020 → package/esm2020}/core/providers/i18n/i18n.service.mjs +0 -0
- package/{esm2020 → package/esm2020}/core/providers/job-queue/job-queue.service.mjs +0 -0
- package/{esm2020 → package/esm2020}/core/providers/local-storage/local-storage.service.mjs +0 -0
- package/{esm2020 → package/esm2020}/core/providers/modal/modal.service.mjs +0 -0
- package/{esm2020 → package/esm2020}/core/providers/modal/modal.types.mjs +0 -0
- package/{esm2020 → package/esm2020}/core/providers/nav-builder/nav-builder-types.mjs +0 -0
- package/{esm2020 → package/esm2020}/core/providers/nav-builder/nav-builder.service.mjs +0 -0
- package/{esm2020 → package/esm2020}/core/providers/notification/notification.service.mjs +0 -0
- package/{esm2020 → package/esm2020}/core/providers/overlay-host/overlay-host.service.mjs +0 -0
- package/package/esm2020/core/public_api.mjs +236 -0
- package/{esm2020 → package/esm2020}/core/shared/components/action-bar/action-bar.component.mjs +0 -0
- package/{esm2020 → package/esm2020}/core/shared/components/action-bar-items/action-bar-items.component.mjs +0 -0
- package/{esm2020 → package/esm2020}/core/shared/components/address-form/address-form.component.mjs +0 -0
- package/{esm2020 → package/esm2020}/core/shared/components/affixed-input/affixed-input.component.mjs +0 -0
- package/{esm2020 → package/esm2020}/core/shared/components/affixed-input/percentage-suffix-input.component.mjs +0 -0
- package/{esm2020 → package/esm2020}/core/shared/components/asset-file-input/asset-file-input.component.mjs +0 -0
- package/{esm2020 → package/esm2020}/core/shared/components/asset-gallery/asset-gallery.component.mjs +0 -0
- package/{esm2020 → package/esm2020}/core/shared/components/asset-gallery/asset-gallery.types.mjs +0 -0
- package/{esm2020 → package/esm2020}/core/shared/components/asset-picker-dialog/asset-picker-dialog.component.mjs +0 -0
- package/{esm2020 → package/esm2020}/core/shared/components/asset-preview/asset-preview.component.mjs +0 -0
- package/{esm2020 → package/esm2020}/core/shared/components/asset-preview-dialog/asset-preview-dialog.component.mjs +0 -0
- package/{esm2020 → package/esm2020}/core/shared/components/asset-preview-links/asset-preview-links.component.mjs +1 -1
- package/{esm2020 → package/esm2020}/core/shared/components/asset-search-input/asset-search-input.component.mjs +0 -0
- package/{esm2020 → package/esm2020}/core/shared/components/channel-assignment-control/channel-assignment-control.component.mjs +0 -0
- package/{esm2020 → package/esm2020}/core/shared/components/channel-badge/channel-badge.component.mjs +0 -0
- package/{esm2020 → package/esm2020}/core/shared/components/chip/chip.component.mjs +0 -0
- package/{esm2020 → package/esm2020}/core/shared/components/configurable-input/configurable-input.component.mjs +0 -0
- package/{esm2020 → package/esm2020}/core/shared/components/currency-input/currency-input.component.mjs +0 -0
- package/{esm2020 → package/esm2020}/core/shared/components/custom-detail-component-host/custom-detail-component-host.component.mjs +0 -0
- package/{esm2020 → package/esm2020}/core/shared/components/custom-field-control/custom-field-control.component.mjs +0 -0
- package/{esm2020 → package/esm2020}/core/shared/components/customer-label/customer-label.component.mjs +0 -0
- package/{esm2020 → package/esm2020}/core/shared/components/data-table/data-table-column.component.mjs +0 -0
- package/{esm2020 → package/esm2020}/core/shared/components/data-table/data-table.component.mjs +0 -0
- package/{esm2020 → package/esm2020}/core/shared/components/datetime-picker/constants.mjs +0 -0
- package/{esm2020 → package/esm2020}/core/shared/components/datetime-picker/datetime-picker.component.mjs +1 -1
- package/{esm2020 → package/esm2020}/core/shared/components/datetime-picker/datetime-picker.service.mjs +0 -0
- package/{esm2020 → package/esm2020}/core/shared/components/datetime-picker/types.mjs +0 -0
- package/{esm2020 → package/esm2020}/core/shared/components/dropdown/dropdown-item.directive.mjs +0 -0
- package/package/esm2020/core/shared/components/dropdown/dropdown-menu.component.mjs +130 -0
- package/{esm2020 → package/esm2020}/core/shared/components/dropdown/dropdown-trigger.directive.mjs +1 -1
- package/{esm2020 → package/esm2020}/core/shared/components/dropdown/dropdown.component.mjs +0 -0
- package/{esm2020 → package/esm2020}/core/shared/components/edit-note-dialog/edit-note-dialog.component.mjs +0 -0
- package/{esm2020 → package/esm2020}/core/shared/components/empty-placeholder/empty-placeholder.component.mjs +0 -0
- package/{esm2020 → package/esm2020}/core/shared/components/entity-info/entity-info.component.mjs +1 -1
- package/{esm2020 → package/esm2020}/core/shared/components/extension-host/extension-host-config.mjs +0 -0
- package/{esm2020 → package/esm2020}/core/shared/components/extension-host/extension-host.component.mjs +0 -0
- package/{esm2020 → package/esm2020}/core/shared/components/extension-host/extension-host.service.mjs +0 -0
- package/{esm2020 → package/esm2020}/core/shared/components/extension-host/host-external-frame.mjs +0 -0
- package/{esm2020 → package/esm2020}/core/shared/components/facet-value-chip/facet-value-chip.component.mjs +0 -0
- package/{esm2020 → package/esm2020}/core/shared/components/facet-value-selector/facet-value-selector.component.mjs +0 -0
- package/{esm2020 → package/esm2020}/core/shared/components/focal-point-control/focal-point-control.component.mjs +0 -0
- package/{esm2020 → package/esm2020}/core/shared/components/form-field/form-field-control.directive.mjs +0 -0
- package/{esm2020 → package/esm2020}/core/shared/components/form-field/form-field.component.mjs +0 -0
- package/{esm2020 → package/esm2020}/core/shared/components/form-item/form-item.component.mjs +0 -0
- package/{esm2020 → package/esm2020}/core/shared/components/formatted-address/formatted-address.component.mjs +0 -0
- package/{esm2020 → package/esm2020}/core/shared/components/help-tooltip/help-tooltip.component.mjs +0 -0
- package/{esm2020 → package/esm2020}/core/shared/components/history-entry-detail/history-entry-detail.component.mjs +1 -1
- package/{esm2020 → package/esm2020}/core/shared/components/items-per-page-controls/items-per-page-controls.component.mjs +0 -0
- package/{esm2020 → package/esm2020}/core/shared/components/labeled-data/labeled-data.component.mjs +0 -0
- package/{esm2020 → package/esm2020}/core/shared/components/language-selector/language-selector.component.mjs +1 -1
- package/{esm2020 → package/esm2020}/core/shared/components/manage-tags-dialog/manage-tags-dialog.component.mjs +0 -0
- package/{esm2020 → package/esm2020}/core/shared/components/modal-dialog/dialog-buttons.directive.mjs +0 -0
- package/{esm2020 → package/esm2020}/core/shared/components/modal-dialog/dialog-component-outlet.component.mjs +0 -0
- package/{esm2020 → package/esm2020}/core/shared/components/modal-dialog/dialog-title.directive.mjs +0 -0
- package/{esm2020 → package/esm2020}/core/shared/components/modal-dialog/modal-dialog.component.mjs +0 -0
- package/{esm2020 → package/esm2020}/core/shared/components/object-tree/object-tree.component.mjs +0 -0
- package/{esm2020 → package/esm2020}/core/shared/components/order-state-label/order-state-label.component.mjs +0 -0
- package/{esm2020 → package/esm2020}/core/shared/components/pagination-controls/pagination-controls.component.mjs +0 -0
- package/{esm2020 → package/esm2020}/core/shared/components/product-multi-selector-dialog/product-multi-selector-dialog.component.mjs +0 -0
- package/{esm2020 → package/esm2020}/core/shared/components/product-search-input/product-search-input.component.mjs +0 -0
- package/{esm2020 → package/esm2020}/core/shared/components/product-variant-selector/product-variant-selector.component.mjs +0 -0
- package/{esm2020 → package/esm2020}/core/shared/components/rich-text-editor/external-image-dialog/external-image-dialog.component.mjs +3 -3
- package/{esm2020 → package/esm2020}/core/shared/components/rich-text-editor/link-dialog/link-dialog.component.mjs +0 -0
- package/package/esm2020/core/shared/components/rich-text-editor/prosemirror/context-menu/context-menu.component.mjs +136 -0
- package/package/esm2020/core/shared/components/rich-text-editor/prosemirror/context-menu/context-menu.service.mjs +46 -0
- package/package/esm2020/core/shared/components/rich-text-editor/prosemirror/custom-nodes.mjs +57 -0
- package/{esm2020 → package/esm2020}/core/shared/components/rich-text-editor/prosemirror/inputrules.mjs +0 -0
- package/{esm2020 → package/esm2020}/core/shared/components/rich-text-editor/prosemirror/keymap.mjs +0 -0
- package/package/esm2020/core/shared/components/rich-text-editor/prosemirror/menu/links.mjs +69 -0
- package/package/esm2020/core/shared/components/rich-text-editor/prosemirror/menu/menu-common.mjs +41 -0
- package/package/esm2020/core/shared/components/rich-text-editor/prosemirror/menu/menu-plugin.mjs +12 -0
- package/package/esm2020/core/shared/components/rich-text-editor/prosemirror/menu/menu.mjs +247 -0
- package/package/esm2020/core/shared/components/rich-text-editor/prosemirror/menu/sub-menu-with-icon.mjs +16 -0
- package/package/esm2020/core/shared/components/rich-text-editor/prosemirror/plugins/image-plugin.mjs +100 -0
- package/{esm2020 → package/esm2020}/core/shared/components/rich-text-editor/prosemirror/plugins/link-select-plugin.mjs +0 -0
- package/package/esm2020/core/shared/components/rich-text-editor/prosemirror/plugins/raw-editor-plugin.mjs +96 -0
- package/package/esm2020/core/shared/components/rich-text-editor/prosemirror/plugins/tables-plugin.mjs +166 -0
- package/package/esm2020/core/shared/components/rich-text-editor/prosemirror/prosemirror.service.mjs +141 -0
- package/{esm2020 → package/esm2020}/core/shared/components/rich-text-editor/prosemirror/types.mjs +1 -1
- package/{esm2020 → package/esm2020}/core/shared/components/rich-text-editor/prosemirror/utils.mjs +0 -0
- package/package/esm2020/core/shared/components/rich-text-editor/raw-html-dialog/raw-html-dialog.component.mjs +59 -0
- package/package/esm2020/core/shared/components/rich-text-editor/rich-text-editor.component.mjs +105 -0
- package/{esm2020 → package/esm2020}/core/shared/components/select-toggle/select-toggle.component.mjs +0 -0
- package/{esm2020 → package/esm2020}/core/shared/components/simple-dialog/simple-dialog.component.mjs +0 -0
- package/{esm2020 → package/esm2020}/core/shared/components/status-badge/status-badge.component.mjs +0 -0
- package/{esm2020 → package/esm2020}/core/shared/components/tabbed-custom-fields/tabbed-custom-fields.component.mjs +0 -0
- package/{esm2020 → package/esm2020}/core/shared/components/table-row-action/table-row-action.component.mjs +0 -0
- package/{esm2020 → package/esm2020}/core/shared/components/tag-selector/tag-selector.component.mjs +0 -0
- package/{esm2020 → package/esm2020}/core/shared/components/timeline-entry/timeline-entry.component.mjs +0 -0
- package/{esm2020 → package/esm2020}/core/shared/components/title-input/title-input.component.mjs +0 -0
- package/{esm2020 → package/esm2020}/core/shared/components/ui-extension-point/ui-extension-point.component.mjs +1 -1
- package/{esm2020 → package/esm2020}/core/shared/directives/disabled.directive.mjs +0 -0
- package/{esm2020 → package/esm2020}/core/shared/directives/if-default-channel-active.directive.mjs +0 -0
- package/{esm2020 → package/esm2020}/core/shared/directives/if-directive-base.mjs +0 -0
- package/{esm2020 → package/esm2020}/core/shared/directives/if-multichannel.directive.mjs +0 -0
- package/{esm2020 → package/esm2020}/core/shared/directives/if-permissions.directive.mjs +0 -0
- package/{esm2020 → package/esm2020}/core/shared/dynamic-form-inputs/boolean-form-input/boolean-form-input.component.mjs +0 -0
- package/package/esm2020/core/shared/dynamic-form-inputs/code-editor-form-input/base-code-editor-form-input.component.mjs +57 -0
- package/package/esm2020/core/shared/dynamic-form-inputs/code-editor-form-input/html-editor-form-input.component.mjs +63 -0
- package/package/esm2020/core/shared/dynamic-form-inputs/code-editor-form-input/json-editor-form-input.component.mjs +85 -0
- package/{esm2020 → package/esm2020}/core/shared/dynamic-form-inputs/combination-mode-form-input/combination-mode-form-input.component.mjs +0 -0
- package/{esm2020 → package/esm2020}/core/shared/dynamic-form-inputs/currency-form-input/currency-form-input.component.mjs +0 -0
- package/{esm2020 → package/esm2020}/core/shared/dynamic-form-inputs/customer-group-form-input/customer-group-form-input.component.mjs +0 -0
- package/{esm2020 → package/esm2020}/core/shared/dynamic-form-inputs/date-form-input/date-form-input.component.mjs +0 -0
- package/{esm2020 → package/esm2020}/core/shared/dynamic-form-inputs/dynamic-form-input/dynamic-form-input.component.mjs +0 -0
- package/{esm2020 → package/esm2020}/core/shared/dynamic-form-inputs/facet-value-form-input/facet-value-form-input.component.mjs +0 -0
- package/{esm2020 → package/esm2020}/core/shared/dynamic-form-inputs/number-form-input/number-form-input.component.mjs +0 -0
- package/{esm2020 → package/esm2020}/core/shared/dynamic-form-inputs/password-form-input/password-form-input.component.mjs +0 -0
- package/{esm2020 → package/esm2020}/core/shared/dynamic-form-inputs/product-multi-selector-form-input/product-multi-selector-form-input.component.mjs +0 -0
- package/{esm2020 → package/esm2020}/core/shared/dynamic-form-inputs/product-selector-form-input/product-selector-form-input.component.mjs +0 -0
- package/package/esm2020/core/shared/dynamic-form-inputs/register-dynamic-input-components.mjs +136 -0
- package/{esm2020 → package/esm2020}/core/shared/dynamic-form-inputs/relation-form-input/asset/relation-asset-input.component.mjs +0 -0
- package/{esm2020 → package/esm2020}/core/shared/dynamic-form-inputs/relation-form-input/customer/relation-customer-input.component.mjs +0 -0
- package/{esm2020 → package/esm2020}/core/shared/dynamic-form-inputs/relation-form-input/generic/relation-generic-input.component.mjs +0 -0
- package/{esm2020 → package/esm2020}/core/shared/dynamic-form-inputs/relation-form-input/product/relation-product-input.component.mjs +0 -0
- package/{esm2020 → package/esm2020}/core/shared/dynamic-form-inputs/relation-form-input/product-variant/relation-product-variant-input.component.mjs +0 -0
- package/{esm2020 → package/esm2020}/core/shared/dynamic-form-inputs/relation-form-input/relation-card/relation-card.component.mjs +0 -0
- package/{esm2020 → package/esm2020}/core/shared/dynamic-form-inputs/relation-form-input/relation-form-input.component.mjs +0 -0
- package/{esm2020 → package/esm2020}/core/shared/dynamic-form-inputs/relation-form-input/relation-selector-dialog/relation-selector-dialog.component.mjs +0 -0
- package/{esm2020 → package/esm2020}/core/shared/dynamic-form-inputs/rich-text-form-input/rich-text-form-input.component.mjs +0 -0
- package/{esm2020 → package/esm2020}/core/shared/dynamic-form-inputs/select-form-input/select-form-input.component.mjs +0 -0
- package/{esm2020 → package/esm2020}/core/shared/dynamic-form-inputs/text-form-input/text-form-input.component.mjs +0 -0
- package/{esm2020 → package/esm2020}/core/shared/dynamic-form-inputs/textarea-form-input/textarea-form-input.component.mjs +0 -0
- package/{esm2020 → package/esm2020}/core/shared/pipes/asset-preview.pipe.mjs +0 -0
- package/{esm2020 → package/esm2020}/core/shared/pipes/channel-label.pipe.mjs +0 -0
- package/{esm2020 → package/esm2020}/core/shared/pipes/custom-field-label.pipe.mjs +0 -0
- package/{esm2020 → package/esm2020}/core/shared/pipes/duration.pipe.mjs +0 -0
- package/{esm2020 → package/esm2020}/core/shared/pipes/file-size.pipe.mjs +0 -0
- package/{esm2020 → package/esm2020}/core/shared/pipes/has-permission.pipe.mjs +0 -0
- package/{esm2020 → package/esm2020}/core/shared/pipes/locale-base.pipe.mjs +0 -0
- package/{esm2020 → package/esm2020}/core/shared/pipes/locale-currency-name.pipe.mjs +0 -0
- package/{esm2020 → package/esm2020}/core/shared/pipes/locale-currency.pipe.mjs +0 -0
- package/{esm2020 → package/esm2020}/core/shared/pipes/locale-date.pipe.mjs +0 -0
- package/{esm2020 → package/esm2020}/core/shared/pipes/locale-language-name.pipe.mjs +0 -0
- package/{esm2020 → package/esm2020}/core/shared/pipes/locale-region-name.pipe.mjs +0 -0
- package/{esm2020 → package/esm2020}/core/shared/pipes/sentence-case.pipe.mjs +0 -0
- package/{esm2020 → package/esm2020}/core/shared/pipes/sort.pipe.mjs +0 -0
- package/{esm2020 → package/esm2020}/core/shared/pipes/state-i18n-token.pipe.mjs +0 -0
- package/{esm2020 → package/esm2020}/core/shared/pipes/string-to-color.pipe.mjs +0 -0
- package/{esm2020 → package/esm2020}/core/shared/pipes/time-ago.pipe.mjs +0 -0
- package/{esm2020 → package/esm2020}/core/shared/providers/routing/can-deactivate-detail-guard.mjs +0 -0
- package/package/esm2020/core/shared/shared.module.mjs +552 -0
- package/{esm2020 → package/esm2020}/core/validators/unicode-pattern.validator.mjs +0 -0
- package/{esm2020 → package/esm2020}/core/vendure-admin-ui-core.mjs +0 -0
- package/{esm2020 → package/esm2020}/customer/components/add-customer-to-group-dialog/add-customer-to-group-dialog.component.mjs +0 -0
- package/{esm2020 → package/esm2020}/customer/components/address-card/address-card.component.mjs +1 -1
- package/{esm2020 → package/esm2020}/customer/components/address-detail-dialog/address-detail-dialog.component.mjs +0 -0
- package/{esm2020 → package/esm2020}/customer/components/customer-detail/customer-detail.component.mjs +0 -0
- package/{esm2020 → package/esm2020}/customer/components/customer-group-detail-dialog/customer-group-detail-dialog.component.mjs +0 -0
- package/{esm2020 → package/esm2020}/customer/components/customer-group-list/customer-group-list.component.mjs +1 -1
- package/{esm2020 → package/esm2020}/customer/components/customer-group-member-list/customer-group-member-list.component.mjs +0 -0
- package/{esm2020 → package/esm2020}/customer/components/customer-history/customer-history.component.mjs +1 -1
- package/{esm2020 → package/esm2020}/customer/components/customer-list/customer-list.component.mjs +1 -1
- package/{esm2020 → package/esm2020}/customer/components/customer-status-label/customer-status-label.component.mjs +0 -0
- package/{esm2020 → package/esm2020}/customer/components/select-customer-group-dialog/select-customer-group-dialog.component.mjs +0 -0
- package/{esm2020 → package/esm2020}/customer/customer.module.mjs +0 -0
- package/{esm2020 → package/esm2020}/customer/customer.routes.mjs +0 -0
- package/{esm2020 → package/esm2020}/customer/providers/routing/customer-resolver.mjs +0 -0
- package/{esm2020 → package/esm2020}/customer/public_api.mjs +0 -0
- package/{esm2020 → package/esm2020}/customer/vendure-admin-ui-customer.mjs +0 -0
- package/{esm2020 → package/esm2020}/dashboard/components/dashboard/dashboard.component.mjs +1 -1
- package/{esm2020 → package/esm2020}/dashboard/components/dashboard-widget/dashboard-widget.component.mjs +0 -0
- package/{esm2020 → package/esm2020}/dashboard/dashboard.module.mjs +0 -0
- package/{esm2020 → package/esm2020}/dashboard/dashboard.routes.mjs +0 -0
- package/{esm2020 → package/esm2020}/dashboard/default-widgets.mjs +0 -0
- package/{esm2020 → package/esm2020}/dashboard/public_api.mjs +0 -0
- package/{esm2020 → package/esm2020}/dashboard/vendure-admin-ui-dashboard.mjs +0 -0
- package/{esm2020 → package/esm2020}/dashboard/widgets/latest-orders-widget/latest-orders-widget.component.mjs +0 -0
- package/{esm2020 → package/esm2020}/dashboard/widgets/order-summary-widget/order-summary-widget.component.mjs +0 -0
- package/{esm2020 → package/esm2020}/dashboard/widgets/test-widget/test-widget.component.mjs +0 -0
- package/{esm2020 → package/esm2020}/dashboard/widgets/welcome-widget/welcome-widget.component.mjs +0 -0
- package/{esm2020 → package/esm2020}/login/components/login/login.component.mjs +0 -0
- package/{esm2020 → package/esm2020}/login/login.module.mjs +0 -0
- package/{esm2020 → package/esm2020}/login/login.routes.mjs +0 -0
- package/{esm2020 → package/esm2020}/login/providers/login.guard.mjs +0 -0
- package/{esm2020 → package/esm2020}/login/public_api.mjs +0 -0
- package/{esm2020 → package/esm2020}/login/vendure-admin-ui-login.mjs +0 -0
- package/{esm2020 → package/esm2020}/marketing/components/promotion-detail/promotion-detail.component.mjs +1 -1
- package/{esm2020 → package/esm2020}/marketing/components/promotion-list/promotion-list.component.mjs +1 -1
- package/{esm2020 → package/esm2020}/marketing/marketing.module.mjs +0 -0
- package/{esm2020 → package/esm2020}/marketing/marketing.routes.mjs +0 -0
- package/{esm2020 → package/esm2020}/marketing/providers/routing/promotion-resolver.mjs +0 -0
- package/{esm2020 → package/esm2020}/marketing/public_api.mjs +0 -0
- package/{esm2020 → package/esm2020}/marketing/vendure-admin-ui-marketing.mjs +0 -0
- package/{esm2020 → package/esm2020}/order/components/add-manual-payment-dialog/add-manual-payment-dialog.component.mjs +0 -0
- package/{esm2020 → package/esm2020}/order/components/cancel-order-dialog/cancel-order-dialog.component.mjs +0 -0
- package/{esm2020 → package/esm2020}/order/components/fulfill-order-dialog/fulfill-order-dialog.component.mjs +6 -2
- package/{esm2020 → package/esm2020}/order/components/fulfillment-card/fulfillment-card.component.mjs +1 -1
- package/package/esm2020/order/components/fulfillment-detail/fulfillment-detail.component.mjs +53 -0
- package/{esm2020 → package/esm2020}/order/components/fulfillment-state-label/fulfillment-state-label.component.mjs +0 -0
- package/package/esm2020/order/components/line-fulfillment/line-fulfillment.component.mjs +54 -0
- package/{esm2020 → package/esm2020}/order/components/line-refunds/line-refunds.component.mjs +0 -0
- package/{esm2020 → package/esm2020}/order/components/modification-detail/modification-detail.component.mjs +0 -0
- package/{esm2020 → package/esm2020}/order/components/order-custom-fields-card/order-custom-fields-card.component.mjs +0 -0
- package/{esm2020 → package/esm2020}/order/components/order-detail/order-detail.component.mjs +49 -21
- package/{esm2020 → package/esm2020}/order/components/order-editor/order-editor.component.mjs +0 -0
- package/{esm2020 → package/esm2020}/order/components/order-edits-preview-dialog/order-edits-preview-dialog.component.mjs +0 -0
- package/{esm2020 → package/esm2020}/order/components/order-history/order-history.component.mjs +1 -1
- package/{esm2020 → package/esm2020}/order/components/order-list/order-list.component.mjs +0 -0
- package/{esm2020 → package/esm2020}/order/components/order-payment-card/order-payment-card.component.mjs +3 -3
- package/{esm2020 → package/esm2020}/order/components/order-process-graph/constants.mjs +0 -0
- package/{esm2020 → package/esm2020}/order/components/order-process-graph/order-process-edge.component.mjs +0 -0
- package/{esm2020 → package/esm2020}/order/components/order-process-graph/order-process-graph.component.mjs +0 -0
- package/{esm2020 → package/esm2020}/order/components/order-process-graph/order-process-node.component.mjs +0 -0
- package/{esm2020 → package/esm2020}/order/components/order-process-graph/types.mjs +0 -0
- package/{esm2020 → package/esm2020}/order/components/order-process-graph-dialog/order-process-graph-dialog.component.mjs +0 -0
- package/{esm2020 → package/esm2020}/order/components/order-state-select-dialog/order-state-select-dialog.component.mjs +0 -0
- package/{esm2020 → package/esm2020}/order/components/order-table/order-table.component.mjs +1 -1
- package/{esm2020 → package/esm2020}/order/components/payment-detail/payment-detail.component.mjs +0 -0
- package/{esm2020 → package/esm2020}/order/components/payment-state-label/payment-state-label.component.mjs +0 -0
- package/{esm2020 → package/esm2020}/order/components/refund-order-dialog/refund-order-dialog.component.mjs +1 -1
- package/{esm2020 → package/esm2020}/order/components/refund-state-label/refund-state-label.component.mjs +0 -0
- package/{esm2020 → package/esm2020}/order/components/settle-refund-dialog/settle-refund-dialog.component.mjs +0 -0
- package/{esm2020 → package/esm2020}/order/components/simple-item-list/simple-item-list.component.mjs +0 -0
- package/{esm2020 → package/esm2020}/order/order.module.mjs +0 -0
- package/{esm2020 → package/esm2020}/order/order.routes.mjs +0 -0
- package/{esm2020 → package/esm2020}/order/providers/order-transition.service.mjs +0 -0
- package/{esm2020 → package/esm2020}/order/providers/routing/order-resolver.mjs +0 -0
- package/{esm2020 → package/esm2020}/order/public_api.mjs +0 -0
- package/{esm2020 → package/esm2020}/order/vendure-admin-ui-order.mjs +0 -0
- package/{esm2020 → package/esm2020}/public_api.mjs +0 -0
- package/{esm2020 → package/esm2020}/settings/components/add-country-to-zone-dialog/add-country-to-zone-dialog.component.mjs +0 -0
- package/{esm2020 → package/esm2020}/settings/components/admin-detail/admin-detail.component.mjs +0 -0
- package/{esm2020 → package/esm2020}/settings/components/administrator-list/administrator-list.component.mjs +1 -1
- package/{esm2020 → package/esm2020}/settings/components/channel-detail/channel-detail.component.mjs +0 -0
- package/{esm2020 → package/esm2020}/settings/components/channel-list/channel-list.component.mjs +1 -1
- package/{esm2020 → package/esm2020}/settings/components/country-detail/country-detail.component.mjs +0 -0
- package/{esm2020 → package/esm2020}/settings/components/country-list/country-list.component.mjs +1 -1
- package/{esm2020 → package/esm2020}/settings/components/global-settings/global-settings.component.mjs +0 -0
- package/{esm2020 → package/esm2020}/settings/components/payment-method-detail/payment-method-detail.component.mjs +1 -1
- package/{esm2020 → package/esm2020}/settings/components/payment-method-list/payment-method-list.component.mjs +1 -1
- package/{esm2020 → package/esm2020}/settings/components/permission-grid/permission-grid.component.mjs +0 -0
- package/{esm2020 → package/esm2020}/settings/components/profile/profile.component.mjs +0 -0
- package/{esm2020 → package/esm2020}/settings/components/role-detail/role-detail.component.mjs +0 -0
- package/{esm2020 → package/esm2020}/settings/components/role-list/role-list.component.mjs +1 -1
- package/{esm2020 → package/esm2020}/settings/components/shipping-eligibility-test-result/shipping-eligibility-test-result.component.mjs +0 -0
- package/{esm2020 → package/esm2020}/settings/components/shipping-method-detail/shipping-method-detail.component.mjs +1 -1
- package/{esm2020 → package/esm2020}/settings/components/shipping-method-list/shipping-method-list.component.mjs +1 -1
- package/{esm2020 → package/esm2020}/settings/components/shipping-method-test-result/shipping-method-test-result.component.mjs +0 -0
- package/{esm2020 → package/esm2020}/settings/components/tax-category-detail/tax-category-detail.component.mjs +0 -0
- package/{esm2020 → package/esm2020}/settings/components/tax-category-list/tax-category-list.component.mjs +1 -1
- package/{esm2020 → package/esm2020}/settings/components/tax-rate-detail/tax-rate-detail.component.mjs +0 -0
- package/{esm2020 → package/esm2020}/settings/components/tax-rate-list/tax-rate-list.component.mjs +1 -1
- package/{esm2020 → package/esm2020}/settings/components/test-address-form/test-address-form.component.mjs +0 -0
- package/{esm2020 → package/esm2020}/settings/components/test-order-builder/test-order-builder.component.mjs +0 -0
- package/{esm2020 → package/esm2020}/settings/components/zone-detail-dialog/zone-detail-dialog.component.mjs +0 -0
- package/{esm2020 → package/esm2020}/settings/components/zone-list/zone-list.component.mjs +1 -1
- package/{esm2020 → package/esm2020}/settings/components/zone-member-list/zone-member-controls.directive.mjs +0 -0
- package/{esm2020 → package/esm2020}/settings/components/zone-member-list/zone-member-list-header.directive.mjs +0 -0
- package/{esm2020 → package/esm2020}/settings/components/zone-member-list/zone-member-list.component.mjs +0 -0
- package/{esm2020 → package/esm2020}/settings/providers/routing/administrator-resolver.mjs +0 -0
- package/{esm2020 → package/esm2020}/settings/providers/routing/channel-resolver.mjs +0 -0
- package/{esm2020 → package/esm2020}/settings/providers/routing/country-resolver.mjs +0 -0
- package/{esm2020 → package/esm2020}/settings/providers/routing/global-settings-resolver.mjs +0 -0
- package/{esm2020 → package/esm2020}/settings/providers/routing/payment-method-resolver.mjs +0 -0
- package/{esm2020 → package/esm2020}/settings/providers/routing/profile-resolver.mjs +0 -0
- package/{esm2020 → package/esm2020}/settings/providers/routing/role-resolver.mjs +0 -0
- package/{esm2020 → package/esm2020}/settings/providers/routing/shipping-method-resolver.mjs +0 -0
- package/{esm2020 → package/esm2020}/settings/providers/routing/tax-category-resolver.mjs +0 -0
- package/{esm2020 → package/esm2020}/settings/providers/routing/tax-rate-resolver.mjs +0 -0
- package/{esm2020 → package/esm2020}/settings/public_api.mjs +0 -0
- package/{esm2020 → package/esm2020}/settings/settings.module.mjs +0 -0
- package/{esm2020 → package/esm2020}/settings/settings.routes.mjs +0 -0
- package/{esm2020 → package/esm2020}/settings/vendure-admin-ui-settings.mjs +0 -0
- package/{esm2020 → package/esm2020}/system/components/health-check/health-check.component.mjs +0 -0
- package/{esm2020 → package/esm2020}/system/components/job-list/job-list.component.mjs +1 -1
- package/{esm2020 → package/esm2020}/system/components/job-state-label/job-state-label.component.mjs +0 -0
- package/{esm2020 → package/esm2020}/system/public_api.mjs +0 -0
- package/{esm2020 → package/esm2020}/system/system.module.mjs +0 -0
- package/{esm2020 → package/esm2020}/system/system.routes.mjs +0 -0
- package/{esm2020 → package/esm2020}/system/vendure-admin-ui-system.mjs +0 -0
- package/{esm2020 → package/esm2020}/vendure-admin-ui.mjs +0 -0
- package/{fesm2015 → package/fesm2015}/vendure-admin-ui-catalog.mjs +192 -28
- package/package/fesm2015/vendure-admin-ui-catalog.mjs.map +1 -0
- package/{fesm2015 → package/fesm2015}/vendure-admin-ui-core.mjs +1948 -1159
- package/package/fesm2015/vendure-admin-ui-core.mjs.map +1 -0
- package/{fesm2015 → package/fesm2015}/vendure-admin-ui-customer.mjs +4 -4
- package/{fesm2015 → package/fesm2015}/vendure-admin-ui-customer.mjs.map +0 -0
- package/{fesm2015 → package/fesm2015}/vendure-admin-ui-dashboard.mjs +1 -1
- package/{fesm2015 → package/fesm2015}/vendure-admin-ui-dashboard.mjs.map +0 -0
- package/{fesm2015 → package/fesm2015}/vendure-admin-ui-login.mjs +0 -0
- package/{fesm2015 → package/fesm2015}/vendure-admin-ui-login.mjs.map +0 -0
- package/{fesm2015 → package/fesm2015}/vendure-admin-ui-marketing.mjs +2 -2
- package/{fesm2015 → package/fesm2015}/vendure-admin-ui-marketing.mjs.map +0 -0
- package/{fesm2015 → package/fesm2015}/vendure-admin-ui-order.mjs +75 -65
- package/package/fesm2015/vendure-admin-ui-order.mjs.map +1 -0
- package/{fesm2015 → package/fesm2015}/vendure-admin-ui-settings.mjs +11 -11
- package/{fesm2015 → package/fesm2015}/vendure-admin-ui-settings.mjs.map +0 -0
- package/{fesm2015 → package/fesm2015}/vendure-admin-ui-system.mjs +1 -1
- package/{fesm2015 → package/fesm2015}/vendure-admin-ui-system.mjs.map +0 -0
- package/{fesm2015 → package/fesm2015}/vendure-admin-ui.mjs +0 -0
- package/{fesm2015 → package/fesm2015}/vendure-admin-ui.mjs.map +0 -0
- package/{fesm2020 → package/fesm2020}/vendure-admin-ui-catalog.mjs +185 -28
- package/package/fesm2020/vendure-admin-ui-catalog.mjs.map +1 -0
- package/{fesm2020 → package/fesm2020}/vendure-admin-ui-core.mjs +1943 -1161
- package/package/fesm2020/vendure-admin-ui-core.mjs.map +1 -0
- package/{fesm2020 → package/fesm2020}/vendure-admin-ui-customer.mjs +4 -4
- package/{fesm2020 → package/fesm2020}/vendure-admin-ui-customer.mjs.map +0 -0
- package/{fesm2020 → package/fesm2020}/vendure-admin-ui-dashboard.mjs +1 -1
- package/{fesm2020 → package/fesm2020}/vendure-admin-ui-dashboard.mjs.map +0 -0
- package/{fesm2020 → package/fesm2020}/vendure-admin-ui-login.mjs +0 -0
- package/{fesm2020 → package/fesm2020}/vendure-admin-ui-login.mjs.map +0 -0
- package/{fesm2020 → package/fesm2020}/vendure-admin-ui-marketing.mjs +2 -2
- package/{fesm2020 → package/fesm2020}/vendure-admin-ui-marketing.mjs.map +0 -0
- package/{fesm2020 → package/fesm2020}/vendure-admin-ui-order.mjs +73 -64
- package/package/fesm2020/vendure-admin-ui-order.mjs.map +1 -0
- package/{fesm2020 → package/fesm2020}/vendure-admin-ui-settings.mjs +11 -11
- package/{fesm2020 → package/fesm2020}/vendure-admin-ui-settings.mjs.map +0 -0
- package/{fesm2020 → package/fesm2020}/vendure-admin-ui-system.mjs +1 -1
- package/{fesm2020 → package/fesm2020}/vendure-admin-ui-system.mjs.map +0 -0
- package/{fesm2020 → package/fesm2020}/vendure-admin-ui.mjs +0 -0
- package/{fesm2020 → package/fesm2020}/vendure-admin-ui.mjs.map +0 -0
- package/{login → package/login}/components/login/login.component.d.ts +0 -0
- package/{login → package/login}/login.module.d.ts +0 -0
- package/{login → package/login}/login.routes.d.ts +0 -0
- package/{login → package/login}/package.json +0 -0
- package/{login → package/login}/providers/login.guard.d.ts +0 -0
- package/{login → package/login}/public_api.d.ts +0 -0
- package/{login → package/login}/vendure-admin-ui-login.d.ts +0 -0
- package/{marketing → package/marketing}/components/promotion-detail/promotion-detail.component.d.ts +0 -0
- package/{marketing → package/marketing}/components/promotion-list/promotion-list.component.d.ts +0 -0
- package/{marketing → package/marketing}/marketing.module.d.ts +0 -0
- package/{marketing → package/marketing}/marketing.routes.d.ts +0 -0
- package/{marketing → package/marketing}/package.json +0 -0
- package/{marketing → package/marketing}/providers/routing/promotion-resolver.d.ts +0 -0
- package/{marketing → package/marketing}/public_api.d.ts +0 -0
- package/{marketing → package/marketing}/vendure-admin-ui-marketing.d.ts +0 -0
- package/{order → package/order}/components/add-manual-payment-dialog/add-manual-payment-dialog.component.d.ts +0 -0
- package/{order → package/order}/components/cancel-order-dialog/cancel-order-dialog.component.d.ts +0 -0
- package/{order → package/order}/components/fulfill-order-dialog/fulfill-order-dialog.component.d.ts +0 -0
- package/{order → package/order}/components/fulfillment-card/fulfillment-card.component.d.ts +0 -0
- package/{order → package/order}/components/fulfillment-detail/fulfillment-detail.component.d.ts +0 -0
- package/{order → package/order}/components/fulfillment-state-label/fulfillment-state-label.component.d.ts +0 -0
- package/{order → package/order}/components/line-fulfillment/line-fulfillment.component.d.ts +0 -0
- package/{order → package/order}/components/line-refunds/line-refunds.component.d.ts +0 -0
- package/{order → package/order}/components/modification-detail/modification-detail.component.d.ts +0 -0
- package/{order → package/order}/components/order-custom-fields-card/order-custom-fields-card.component.d.ts +0 -0
- package/{order → package/order}/components/order-detail/order-detail.component.d.ts +0 -0
- package/{order → package/order}/components/order-editor/order-editor.component.d.ts +0 -0
- package/{order → package/order}/components/order-edits-preview-dialog/order-edits-preview-dialog.component.d.ts +0 -0
- package/{order → package/order}/components/order-history/order-history.component.d.ts +0 -0
- package/{order → package/order}/components/order-list/order-list.component.d.ts +0 -0
- package/{order → package/order}/components/order-payment-card/order-payment-card.component.d.ts +0 -0
- package/{order → package/order}/components/order-process-graph/constants.d.ts +0 -0
- package/{order → package/order}/components/order-process-graph/order-process-edge.component.d.ts +0 -0
- package/{order → package/order}/components/order-process-graph/order-process-graph.component.d.ts +0 -0
- package/{order → package/order}/components/order-process-graph/order-process-node.component.d.ts +0 -0
- package/{order → package/order}/components/order-process-graph/types.d.ts +0 -0
- package/{order → package/order}/components/order-process-graph-dialog/order-process-graph-dialog.component.d.ts +0 -0
- package/{order → package/order}/components/order-state-select-dialog/order-state-select-dialog.component.d.ts +0 -0
- package/{order → package/order}/components/order-table/order-table.component.d.ts +0 -0
- package/{order → package/order}/components/payment-detail/payment-detail.component.d.ts +0 -0
- package/{order → package/order}/components/payment-state-label/payment-state-label.component.d.ts +0 -0
- package/{order → package/order}/components/refund-order-dialog/refund-order-dialog.component.d.ts +0 -0
- package/{order → package/order}/components/refund-state-label/refund-state-label.component.d.ts +0 -0
- package/{order → package/order}/components/settle-refund-dialog/settle-refund-dialog.component.d.ts +0 -0
- package/{order → package/order}/components/simple-item-list/simple-item-list.component.d.ts +0 -0
- package/{order → package/order}/order.module.d.ts +0 -0
- package/{order → package/order}/order.routes.d.ts +0 -0
- package/{order → package/order}/package.json +0 -0
- package/{order → package/order}/providers/order-transition.service.d.ts +0 -0
- package/{order → package/order}/providers/routing/order-resolver.d.ts +0 -0
- package/{order → package/order}/public_api.d.ts +0 -0
- package/{order → package/order}/vendure-admin-ui-order.d.ts +0 -0
- package/package/package.json +143 -0
- package/{public_api.d.ts → package/public_api.d.ts} +0 -0
- package/{settings → package/settings}/components/add-country-to-zone-dialog/add-country-to-zone-dialog.component.d.ts +0 -0
- package/{settings → package/settings}/components/admin-detail/admin-detail.component.d.ts +0 -0
- package/{settings → package/settings}/components/administrator-list/administrator-list.component.d.ts +0 -0
- package/{settings → package/settings}/components/channel-detail/channel-detail.component.d.ts +0 -0
- package/{settings → package/settings}/components/channel-list/channel-list.component.d.ts +0 -0
- package/{settings → package/settings}/components/country-detail/country-detail.component.d.ts +0 -0
- package/{settings → package/settings}/components/country-list/country-list.component.d.ts +0 -0
- package/{settings → package/settings}/components/global-settings/global-settings.component.d.ts +0 -0
- package/{settings → package/settings}/components/payment-method-detail/payment-method-detail.component.d.ts +0 -0
- package/{settings → package/settings}/components/payment-method-list/payment-method-list.component.d.ts +0 -0
- package/{settings → package/settings}/components/permission-grid/permission-grid.component.d.ts +0 -0
- package/{settings → package/settings}/components/profile/profile.component.d.ts +0 -0
- package/{settings → package/settings}/components/role-detail/role-detail.component.d.ts +0 -0
- package/{settings → package/settings}/components/role-list/role-list.component.d.ts +0 -0
- package/{settings → package/settings}/components/shipping-eligibility-test-result/shipping-eligibility-test-result.component.d.ts +0 -0
- package/{settings → package/settings}/components/shipping-method-detail/shipping-method-detail.component.d.ts +0 -0
- package/{settings → package/settings}/components/shipping-method-list/shipping-method-list.component.d.ts +0 -0
- package/{settings → package/settings}/components/shipping-method-test-result/shipping-method-test-result.component.d.ts +0 -0
- package/{settings → package/settings}/components/tax-category-detail/tax-category-detail.component.d.ts +0 -0
- package/{settings → package/settings}/components/tax-category-list/tax-category-list.component.d.ts +0 -0
- package/{settings → package/settings}/components/tax-rate-detail/tax-rate-detail.component.d.ts +0 -0
- package/{settings → package/settings}/components/tax-rate-list/tax-rate-list.component.d.ts +0 -0
- package/{settings → package/settings}/components/test-address-form/test-address-form.component.d.ts +0 -0
- package/{settings → package/settings}/components/test-order-builder/test-order-builder.component.d.ts +0 -0
- package/{settings → package/settings}/components/zone-detail-dialog/zone-detail-dialog.component.d.ts +0 -0
- package/{settings → package/settings}/components/zone-list/zone-list.component.d.ts +0 -0
- package/{settings → package/settings}/components/zone-member-list/zone-member-controls.directive.d.ts +0 -0
- package/{settings → package/settings}/components/zone-member-list/zone-member-list-header.directive.d.ts +0 -0
- package/{settings → package/settings}/components/zone-member-list/zone-member-list.component.d.ts +0 -0
- package/{settings → package/settings}/package.json +0 -0
- package/{settings → package/settings}/providers/routing/administrator-resolver.d.ts +0 -0
- package/{settings → package/settings}/providers/routing/channel-resolver.d.ts +0 -0
- package/{settings → package/settings}/providers/routing/country-resolver.d.ts +0 -0
- package/{settings → package/settings}/providers/routing/global-settings-resolver.d.ts +0 -0
- package/{settings → package/settings}/providers/routing/payment-method-resolver.d.ts +0 -0
- package/{settings → package/settings}/providers/routing/profile-resolver.d.ts +0 -0
- package/{settings → package/settings}/providers/routing/role-resolver.d.ts +0 -0
- package/{settings → package/settings}/providers/routing/shipping-method-resolver.d.ts +0 -0
- package/{settings → package/settings}/providers/routing/tax-category-resolver.d.ts +0 -0
- package/{settings → package/settings}/providers/routing/tax-rate-resolver.d.ts +0 -0
- package/{settings → package/settings}/public_api.d.ts +0 -0
- package/{settings → package/settings}/settings.module.d.ts +0 -0
- package/{settings → package/settings}/settings.routes.d.ts +0 -0
- package/{settings → package/settings}/vendure-admin-ui-settings.d.ts +0 -0
- package/{static → package/static}/assets/.gitkeep +0 -0
- package/{static → package/static}/assets/logo-300px.png +0 -0
- package/{static → package/static}/assets/logo-75px.png +0 -0
- package/{static → package/static}/favicon.ico +0 -0
- package/{static → package/static}/i18n-messages/cs.json +2 -1
- package/{static → package/static}/i18n-messages/de.json +2 -1
- package/{static → package/static}/i18n-messages/en.json +3 -1
- package/{static → package/static}/i18n-messages/es.json +2 -1
- package/{static → package/static}/i18n-messages/fr.json +2 -1
- package/{static → package/static}/i18n-messages/it.json +2 -1
- package/{static → package/static}/i18n-messages/pl.json +2 -1
- package/{static → package/static}/i18n-messages/pt_BR.json +2 -1
- package/{static → package/static}/i18n-messages/pt_PT.json +2 -1
- package/{static → package/static}/i18n-messages/ru.json +2 -1
- package/{static → package/static}/i18n-messages/uk.json +2 -1
- package/{static → package/static}/i18n-messages/zh_Hans.json +2 -1
- package/{static → package/static}/i18n-messages/zh_Hant.json +2 -1
- package/{static → package/static}/index.html +0 -0
- package/{static → package/static}/polyfills.ts +0 -0
- package/{static → package/static}/styles/_mixins.scss +0 -0
- package/{static → package/static}/styles/_variables.scss +0 -0
- package/{static → package/static}/styles/global/_forms.scss +0 -0
- package/{static → package/static}/styles/global/_overrides.scss +0 -0
- package/{static → package/static}/styles/global/_sass-overrides.scss +0 -0
- package/{static → package/static}/styles/global/_utilities.scss +1 -0
- package/{static → package/static}/styles/styles.scss +0 -0
- package/{static → package/static}/styles/theme/dark.scss +0 -0
- package/{static → package/static}/styles/theme/default.scss +0 -0
- package/{static → package/static}/styles/ui-extension-theme.scss +0 -0
- package/{static → package/static}/theme.min.css +1 -1
- package/{static → package/static}/vendure-ui-config.json +0 -0
- package/{system → package/system}/components/health-check/health-check.component.d.ts +0 -0
- package/{system → package/system}/components/job-list/job-list.component.d.ts +0 -0
- package/{system → package/system}/components/job-state-label/job-state-label.component.d.ts +0 -0
- package/{system → package/system}/package.json +0 -0
- package/{system → package/system}/public_api.d.ts +0 -0
- package/{system → package/system}/system.module.d.ts +0 -0
- package/{system → package/system}/system.routes.d.ts +0 -0
- package/{system → package/system}/vendure-admin-ui-system.d.ts +0 -0
- package/{vendure-admin-ui.d.ts → package/vendure-admin-ui.d.ts} +0 -0
- package/package.json +58 -105
- package/tsconfig.json +61 -0
- package/tsconfig.lib.json +26 -0
- package/tsconfig.lib.prod.json +14 -0
- package/tslint.json +33 -0
- package/vendure-admin-ui-2.0.0-next.14.tgz +0 -0
- package/LICENSE +0 -9
- package/core/common/version.d.ts +0 -1
- package/core/shared/components/rich-text-editor/prosemirror/inputrules.d.ts +0 -8
- package/core/shared/components/rich-text-editor/prosemirror/menu/images.d.ts +0 -4
- package/core/shared/components/rich-text-editor/prosemirror/menu/menu-common.d.ts +0 -4
- package/esm2020/catalog/components/generate-product-variants/generate-product-variants.component.mjs +0 -79
- package/esm2020/catalog/components/option-value-input/option-value-input.component.mjs +0 -97
- package/esm2020/catalog/components/product-variants-editor/product-variants-editor.component.mjs +0 -318
- package/esm2020/core/common/generated-types.mjs +0 -982
- package/esm2020/core/common/introspection-result.mjs +0 -259
- package/esm2020/core/common/utilities/configurable-operation-utils.mjs +0 -102
- package/esm2020/core/data/definitions/order-definitions.mjs +0 -458
- package/esm2020/core/data/definitions/product-definitions.mjs +0 -737
- package/esm2020/core/data/providers/order-data.service.mjs +0 -100
- package/esm2020/core/data/providers/product-data.service.mjs +0 -240
- package/esm2020/core/public_api.mjs +0 -226
- package/esm2020/core/shared/components/dropdown/dropdown-menu.component.mjs +0 -127
- package/esm2020/core/shared/components/rich-text-editor/prosemirror/menu/images.mjs +0 -36
- package/esm2020/core/shared/components/rich-text-editor/prosemirror/menu/links.mjs +0 -69
- package/esm2020/core/shared/components/rich-text-editor/prosemirror/menu/menu-common.mjs +0 -20
- package/esm2020/core/shared/components/rich-text-editor/prosemirror/menu/menu.mjs +0 -192
- package/esm2020/core/shared/components/rich-text-editor/prosemirror/prosemirror.service.mjs +0 -112
- package/esm2020/core/shared/components/rich-text-editor/rich-text-editor.component.mjs +0 -93
- package/esm2020/core/shared/dynamic-form-inputs/code-editor-form-input/json-editor-form-input.component.mjs +0 -120
- package/esm2020/core/shared/dynamic-form-inputs/register-dynamic-input-components.mjs +0 -134
- package/esm2020/core/shared/shared.module.mjs +0 -540
- package/esm2020/order/components/fulfillment-detail/fulfillment-detail.component.mjs +0 -62
- package/esm2020/order/components/line-fulfillment/line-fulfillment.component.mjs +0 -68
- package/fesm2015/vendure-admin-ui-catalog.mjs.map +0 -1
- package/fesm2015/vendure-admin-ui-core.mjs.map +0 -1
- package/fesm2015/vendure-admin-ui-order.mjs.map +0 -1
- package/fesm2020/vendure-admin-ui-catalog.mjs.map +0 -1
- package/fesm2020/vendure-admin-ui-core.mjs.map +0 -1
- package/fesm2020/vendure-admin-ui-order.mjs.map +0 -1
|
@@ -0,0 +1,87 @@
|
|
|
1
|
+
import { Component, ElementRef, EventEmitter, Output, ViewChildren } from '@angular/core';
|
|
2
|
+
import { generateAllCombinations } from '@vendure/common/lib/shared-utils';
|
|
3
|
+
import * as i0 from "@angular/core";
|
|
4
|
+
import * as i1 from "@vendure/admin-ui/core";
|
|
5
|
+
import * as i2 from "../option-value-input/option-value-input.component";
|
|
6
|
+
import * as i3 from "@clr/angular";
|
|
7
|
+
import * as i4 from "@angular/common";
|
|
8
|
+
import * as i5 from "@angular/forms";
|
|
9
|
+
import * as i6 from "@ngx-translate/core";
|
|
10
|
+
const DEFAULT_VARIANT_CODE = '__DEFAULT_VARIANT__';
|
|
11
|
+
export class GenerateProductVariantsComponent {
|
|
12
|
+
constructor(dataService) {
|
|
13
|
+
this.dataService = dataService;
|
|
14
|
+
this.variantsChange = new EventEmitter();
|
|
15
|
+
this.optionGroups = [];
|
|
16
|
+
this.variantFormValues = {};
|
|
17
|
+
}
|
|
18
|
+
ngOnInit() {
|
|
19
|
+
this.dataService.settings.getActiveChannel().single$.subscribe(data => {
|
|
20
|
+
this.currencyCode = data.activeChannel.currencyCode;
|
|
21
|
+
});
|
|
22
|
+
this.generateVariants();
|
|
23
|
+
}
|
|
24
|
+
addOption() {
|
|
25
|
+
this.optionGroups.push({ name: '', values: [] });
|
|
26
|
+
const index = this.optionGroups.length - 1;
|
|
27
|
+
setTimeout(() => {
|
|
28
|
+
const input = this.groupNameInputs.get(index)?.nativeElement;
|
|
29
|
+
input?.focus();
|
|
30
|
+
});
|
|
31
|
+
}
|
|
32
|
+
removeOption(name) {
|
|
33
|
+
this.optionGroups = this.optionGroups.filter(g => g.name !== name);
|
|
34
|
+
this.generateVariants();
|
|
35
|
+
}
|
|
36
|
+
generateVariants() {
|
|
37
|
+
const totalValuesCount = this.optionGroups.reduce((sum, group) => sum + group.values.length, 0);
|
|
38
|
+
const groups = totalValuesCount
|
|
39
|
+
? this.optionGroups.map(g => g.values.map(v => v.name))
|
|
40
|
+
: [[DEFAULT_VARIANT_CODE]];
|
|
41
|
+
this.variants = generateAllCombinations(groups).map(values => ({ id: values.join('|'), values }));
|
|
42
|
+
this.variants.forEach(variant => {
|
|
43
|
+
if (!this.variantFormValues[variant.id]) {
|
|
44
|
+
this.variantFormValues[variant.id] = {
|
|
45
|
+
optionValues: variant.values,
|
|
46
|
+
enabled: true,
|
|
47
|
+
price: this.copyFromDefault(variant.id, 'price', 0),
|
|
48
|
+
sku: this.copyFromDefault(variant.id, 'sku', ''),
|
|
49
|
+
stock: this.copyFromDefault(variant.id, 'stock', 0),
|
|
50
|
+
};
|
|
51
|
+
}
|
|
52
|
+
});
|
|
53
|
+
this.onFormChange();
|
|
54
|
+
}
|
|
55
|
+
trackByFn(index, variant) {
|
|
56
|
+
return variant.values.join('|');
|
|
57
|
+
}
|
|
58
|
+
handleEnter(event, optionValueInputComponent) {
|
|
59
|
+
event.preventDefault();
|
|
60
|
+
event.stopPropagation();
|
|
61
|
+
optionValueInputComponent.focus();
|
|
62
|
+
}
|
|
63
|
+
onFormChange() {
|
|
64
|
+
const variantsToCreate = this.variants.map(v => this.variantFormValues[v.id]).filter(v => v.enabled);
|
|
65
|
+
this.variantsChange.emit({
|
|
66
|
+
groups: this.optionGroups.map(og => ({ name: og.name, values: og.values.map(v => v.name) })),
|
|
67
|
+
variants: variantsToCreate,
|
|
68
|
+
});
|
|
69
|
+
}
|
|
70
|
+
copyFromDefault(variantId, prop, value) {
|
|
71
|
+
return variantId !== DEFAULT_VARIANT_CODE
|
|
72
|
+
? this.variantFormValues[DEFAULT_VARIANT_CODE][prop]
|
|
73
|
+
: value;
|
|
74
|
+
}
|
|
75
|
+
}
|
|
76
|
+
GenerateProductVariantsComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.2.3", ngImport: i0, type: GenerateProductVariantsComponent, deps: [{ token: i1.DataService }], target: i0.ɵɵFactoryTarget.Component });
|
|
77
|
+
GenerateProductVariantsComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "13.2.3", type: GenerateProductVariantsComponent, selector: "vdr-generate-product-variants", outputs: { variantsChange: "variantsChange" }, viewQueries: [{ propertyName: "groupNameInputs", predicate: ["optionGroupName"], descendants: true, read: ElementRef }], ngImport: i0, template: "<div *ngFor=\"let group of optionGroups\" class=\"option-groups\">\r\n <div class=\"name\">\r\n <label>{{ 'catalog.option' | translate }}</label>\r\n <input\r\n #optionGroupName\r\n placeholder=\"e.g. Size\"\r\n clrInput\r\n [(ngModel)]=\"group.name\"\r\n name=\"name\"\r\n required\r\n (keydown.enter)=\"handleEnter($event, optionValueInputComponent)\"\r\n />\r\n </div>\r\n <div class=\"values\">\r\n <label>{{ 'catalog.option-values' | translate }}</label>\r\n <vdr-option-value-input\r\n #optionValueInputComponent\r\n [(ngModel)]=\"group.values\"\r\n (ngModelChange)=\"generateVariants()\"\r\n (edit)=\"generateVariants()\"\r\n [groupName]=\"group.name\"\r\n [disabled]=\"group.name === ''\"\r\n ></vdr-option-value-input>\r\n </div>\r\n <div class=\"remove-group\">\r\n <button\r\n class=\"btn btn-icon btn-warning-outline\"\r\n [title]=\"'catalog.remove-option' | translate\"\r\n (click)=\"removeOption(group.name)\"\r\n >\r\n <clr-icon shape=\"trash\"></clr-icon>\r\n </button>\r\n </div>\r\n</div>\r\n<button class=\"btn btn-primary-outline btn-sm\" (click)=\"addOption()\">\r\n <clr-icon shape=\"plus\"></clr-icon>\r\n {{ 'catalog.add-option' | translate }}\r\n</button>\r\n\r\n<div class=\"variants-preview\">\r\n <table class=\"table\">\r\n <thead>\r\n <tr>\r\n <th *ngIf=\"1 < variants.length\">{{ 'common.create' | translate }}</th>\r\n <th *ngIf=\"1 < variants.length\">{{ 'catalog.variant' | translate }}</th>\r\n <th>{{ 'catalog.sku' | translate }}</th>\r\n <th>{{ 'catalog.price' | translate }}</th>\r\n <th>{{ 'catalog.stock-on-hand' | translate }}</th>\r\n </tr>\r\n </thead>\r\n <tr\r\n *ngFor=\"let variant of variants; trackBy: trackByFn\"\r\n [class.disabled]=\"!variantFormValues[variant.id].enabled\"\r\n >\r\n <td *ngIf=\"1 < variants.length\">\r\n <input\r\n type=\"checkbox\"\r\n (change)=\"onFormChange()\"\r\n [(ngModel)]=\"variantFormValues[variant.id].enabled\"\r\n clrCheckbox\r\n />\r\n </td>\r\n <td *ngIf=\"1 < variants.length\">\r\n {{ variant.values.join(' ') }}\r\n </td>\r\n <td>\r\n <clr-input-container>\r\n <input\r\n clrInput\r\n type=\"text\"\r\n (change)=\"onFormChange()\"\r\n [(ngModel)]=\"variantFormValues[variant.id].sku\"\r\n [placeholder]=\"'catalog.sku' | translate\"\r\n />\r\n </clr-input-container>\r\n </td>\r\n <td>\r\n <clr-input-container>\r\n <vdr-currency-input\r\n clrInput\r\n [(ngModel)]=\"variantFormValues[variant.id].price\"\r\n (ngModelChange)=\"onFormChange()\"\r\n [currencyCode]=\"currencyCode\"\r\n ></vdr-currency-input>\r\n </clr-input-container>\r\n </td>\r\n <td>\r\n <clr-input-container>\r\n <input\r\n clrInput\r\n type=\"number\"\r\n [(ngModel)]=\"variantFormValues[variant.id].stock\"\r\n (change)=\"onFormChange()\"\r\n min=\"0\"\r\n step=\"1\"\r\n />\r\n </clr-input-container>\r\n </td>\r\n </tr>\r\n </table>\r\n</div>\r\n", styles: [":host{display:block;margin-bottom:120px}.option-groups{display:flex}.values{flex:1;margin:0 6px}.remove-group{padding-top:18px}.variants-preview tr.disabled td{background-color:var(--color-component-bg-100);color:var(--color-grey-400)}\n"], components: [{ type: i2.OptionValueInputComponent, selector: "vdr-option-value-input", inputs: ["groupName", "options", "disabled"], outputs: ["add", "remove", "edit"] }, { type: i3.ClrInputContainer, selector: "clr-input-container" }, { type: i1.CurrencyInputComponent, selector: "vdr-currency-input", inputs: ["disabled", "readonly", "value", "currencyCode"], outputs: ["valueChange"] }], directives: [{ type: i4.NgForOf, selector: "[ngFor][ngForOf]", inputs: ["ngForOf", "ngForTrackBy", "ngForTemplate"] }, { type: i3.ClrLabel, selector: "label", inputs: ["for"] }, { type: i1.FormFieldControlDirective, selector: "input, textarea, select" }, { type: i5.DefaultValueAccessor, selector: "input:not([type=checkbox])[formControlName],textarea[formControlName],input:not([type=checkbox])[formControl],textarea[formControl],input:not([type=checkbox])[ngModel],textarea[ngModel],[ngDefaultControl]" }, { type: i3.ClrInput, selector: "[clrInput]" }, { type: i5.RequiredValidator, selector: ":not([type=checkbox])[required][formControlName],:not([type=checkbox])[required][formControl],:not([type=checkbox])[required][ngModel]", inputs: ["required"] }, { type: i5.NgControlStatus, selector: "[formControlName],[ngModel],[formControl]" }, { type: i5.NgModel, selector: "[ngModel]:not([formControlName]):not([formControl])", inputs: ["name", "disabled", "ngModel", "ngModelOptions"], outputs: ["ngModelChange"], exportAs: ["ngModel"] }, { type: i3.ClrIconCustomTag, selector: "clr-icon" }, { type: i4.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { type: i3.ClrDatagridItemsTrackBy, selector: "[ngForTrackBy]", inputs: ["ngForTrackBy"] }, { type: i5.CheckboxControlValueAccessor, selector: "input[type=checkbox][formControlName],input[type=checkbox][formControl],input[type=checkbox][ngModel]" }, { type: i3.ClrCheckbox, selector: "[clrCheckbox],[clrToggle]" }, { type: i5.MinValidator, selector: "input[type=number][min][formControlName],input[type=number][min][formControl],input[type=number][min][ngModel]", inputs: ["min"] }, { type: i5.NumberValueAccessor, selector: "input[type=number][formControlName],input[type=number][formControl],input[type=number][ngModel]" }], pipes: { "translate": i6.TranslatePipe } });
|
|
78
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.2.3", ngImport: i0, type: GenerateProductVariantsComponent, decorators: [{
|
|
79
|
+
type: Component,
|
|
80
|
+
args: [{ selector: 'vdr-generate-product-variants', template: "<div *ngFor=\"let group of optionGroups\" class=\"option-groups\">\r\n <div class=\"name\">\r\n <label>{{ 'catalog.option' | translate }}</label>\r\n <input\r\n #optionGroupName\r\n placeholder=\"e.g. Size\"\r\n clrInput\r\n [(ngModel)]=\"group.name\"\r\n name=\"name\"\r\n required\r\n (keydown.enter)=\"handleEnter($event, optionValueInputComponent)\"\r\n />\r\n </div>\r\n <div class=\"values\">\r\n <label>{{ 'catalog.option-values' | translate }}</label>\r\n <vdr-option-value-input\r\n #optionValueInputComponent\r\n [(ngModel)]=\"group.values\"\r\n (ngModelChange)=\"generateVariants()\"\r\n (edit)=\"generateVariants()\"\r\n [groupName]=\"group.name\"\r\n [disabled]=\"group.name === ''\"\r\n ></vdr-option-value-input>\r\n </div>\r\n <div class=\"remove-group\">\r\n <button\r\n class=\"btn btn-icon btn-warning-outline\"\r\n [title]=\"'catalog.remove-option' | translate\"\r\n (click)=\"removeOption(group.name)\"\r\n >\r\n <clr-icon shape=\"trash\"></clr-icon>\r\n </button>\r\n </div>\r\n</div>\r\n<button class=\"btn btn-primary-outline btn-sm\" (click)=\"addOption()\">\r\n <clr-icon shape=\"plus\"></clr-icon>\r\n {{ 'catalog.add-option' | translate }}\r\n</button>\r\n\r\n<div class=\"variants-preview\">\r\n <table class=\"table\">\r\n <thead>\r\n <tr>\r\n <th *ngIf=\"1 < variants.length\">{{ 'common.create' | translate }}</th>\r\n <th *ngIf=\"1 < variants.length\">{{ 'catalog.variant' | translate }}</th>\r\n <th>{{ 'catalog.sku' | translate }}</th>\r\n <th>{{ 'catalog.price' | translate }}</th>\r\n <th>{{ 'catalog.stock-on-hand' | translate }}</th>\r\n </tr>\r\n </thead>\r\n <tr\r\n *ngFor=\"let variant of variants; trackBy: trackByFn\"\r\n [class.disabled]=\"!variantFormValues[variant.id].enabled\"\r\n >\r\n <td *ngIf=\"1 < variants.length\">\r\n <input\r\n type=\"checkbox\"\r\n (change)=\"onFormChange()\"\r\n [(ngModel)]=\"variantFormValues[variant.id].enabled\"\r\n clrCheckbox\r\n />\r\n </td>\r\n <td *ngIf=\"1 < variants.length\">\r\n {{ variant.values.join(' ') }}\r\n </td>\r\n <td>\r\n <clr-input-container>\r\n <input\r\n clrInput\r\n type=\"text\"\r\n (change)=\"onFormChange()\"\r\n [(ngModel)]=\"variantFormValues[variant.id].sku\"\r\n [placeholder]=\"'catalog.sku' | translate\"\r\n />\r\n </clr-input-container>\r\n </td>\r\n <td>\r\n <clr-input-container>\r\n <vdr-currency-input\r\n clrInput\r\n [(ngModel)]=\"variantFormValues[variant.id].price\"\r\n (ngModelChange)=\"onFormChange()\"\r\n [currencyCode]=\"currencyCode\"\r\n ></vdr-currency-input>\r\n </clr-input-container>\r\n </td>\r\n <td>\r\n <clr-input-container>\r\n <input\r\n clrInput\r\n type=\"number\"\r\n [(ngModel)]=\"variantFormValues[variant.id].stock\"\r\n (change)=\"onFormChange()\"\r\n min=\"0\"\r\n step=\"1\"\r\n />\r\n </clr-input-container>\r\n </td>\r\n </tr>\r\n </table>\r\n</div>\r\n", styles: [":host{display:block;margin-bottom:120px}.option-groups{display:flex}.values{flex:1;margin:0 6px}.remove-group{padding-top:18px}.variants-preview tr.disabled td{background-color:var(--color-component-bg-100);color:var(--color-grey-400)}\n"] }]
|
|
81
|
+
}], ctorParameters: function () { return [{ type: i1.DataService }]; }, propDecorators: { variantsChange: [{
|
|
82
|
+
type: Output
|
|
83
|
+
}], groupNameInputs: [{
|
|
84
|
+
type: ViewChildren,
|
|
85
|
+
args: ['optionGroupName', { read: ElementRef }]
|
|
86
|
+
}] } });
|
|
87
|
+
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiZ2VuZXJhdGUtcHJvZHVjdC12YXJpYW50cy5jb21wb25lbnQuanMiLCJzb3VyY2VSb290IjoiIiwic291cmNlcyI6WyIuLi8uLi8uLi8uLi8uLi9zcmMvbGliL2NhdGFsb2cvc3JjL2NvbXBvbmVudHMvZ2VuZXJhdGUtcHJvZHVjdC12YXJpYW50cy9nZW5lcmF0ZS1wcm9kdWN0LXZhcmlhbnRzLmNvbXBvbmVudC50cyIsIi4uLy4uLy4uLy4uLy4uL3NyYy9saWIvY2F0YWxvZy9zcmMvY29tcG9uZW50cy9nZW5lcmF0ZS1wcm9kdWN0LXZhcmlhbnRzL2dlbmVyYXRlLXByb2R1Y3QtdmFyaWFudHMuY29tcG9uZW50Lmh0bWwiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6IkFBQUEsT0FBTyxFQUFFLFNBQVMsRUFBRSxVQUFVLEVBQUUsWUFBWSxFQUFVLE1BQU0sRUFBYSxZQUFZLEVBQUUsTUFBTSxlQUFlLENBQUM7QUFFN0csT0FBTyxFQUFFLHVCQUF1QixFQUFFLE1BQU0sa0NBQWtDLENBQUM7Ozs7Ozs7O0FBSTNFLE1BQU0sb0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CcpLCB2YWx1ZXMgfSkpO1xuXG4gICAgICAgIHRoaXMudmFyaWFudHMuZm9yRWFjaCh2YXJpYW50ID0+IHtcbiAgICAgICAgICAgIGlmICghdGhpcy52YXJpYW50Rm9ybVZhbHVlc1t2YXJpYW50LmlkXSkge1xuICAgICAgICAgICAgICAgIHRoaXMudmFyaWFudEZvcm1WYWx1ZXNbdmFyaWFudC5pZF0gPSB7XG4gICAgICAgICAgICAgICAgICAgIG9wdGlvblZhbHVlczogdmFyaWFudC52YWx1ZXMsXG4gICAgICAgICAgICAgICAgICAgIGVuYWJsZWQ6IHRydWUsXG4gICAgICAgICAgICAgICAgICAgIHByaWNlOiB0aGlzLmNvcHlGcm9tRGVmYXVsdCh2YXJpYW50LmlkLCAncHJpY2UnLCAwKSxcbiAgICAgICAgICAgICAgICAgICAgc2t1OiB0aGlzLmNvcHlGcm9tRGVmYXVsdCh2YXJpYW50LmlkLCAnc2t1JywgJycpLFxuICAgICAgICAgICAgICAgICAgICBzdG9jazogdGhpcy5jb3B5RnJvbURlZmF1bHQodmFyaWFudC5pZCwgJ3N0b2NrJywgMCksXG4gICAgICAgICAgICAgICAgfTtcbiAgICAgICAgICAgIH1cbiAgICAgICAgfSk7XG4gICAgICAgIHRoaXMub25Gb3JtQ2hhbmdlKCk7XG4gICAgfVxuXG4gICAgdHJhY2tCeUZuKGluZGV4OiBudW1iZXIsIHZhcmlhbnQ6IHsgbmFtZTogc3RyaW5nOyB2YWx1ZXM6IHN0cmluZ1tdIH0pIHtcbiAgICAgICAgcmV0dXJuIHZhcmlhbnQudmFsdWVzLmpvaW4oJ3wnKTtcbiAgICB9XG5cbiAgICBoYW5kbGVFbnRlcihldmVudDogS2V5Ym9hcmRFdmVudCwgb3B0aW9uVmFsdWVJbnB1dENvbXBvbmVudDogT3B0aW9uVmFsdWVJbnB1dENvbXBvbmVudCkge1xuICAgICAgICBldmVudC5wcmV2ZW50RGVmYXVsdCgpO1xuICAgICAgICBldmVudC5zdG9wUHJvcG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AgICAgICAgICA8dGg+e3sgJ2NhdGFsb2cuc2t1JyB8IHRyYW5zbGF0ZSB9fTwvdGg+XHJcbiAgICAgICAgICAgICAgICA8dGg+e3sgJ2NhdGFsb2cucHJpY2UnIHwgdHJhbnNsYXRlIH19PC90aD5cclxuICAgICAgICAgICAgICAgIDx0aD57eyAnY2F0YWxvZy5zdG9jay1vbi1oYW5kJyB8IHRyYW5zbGF0ZSB9fTwvdGg+XHJcbiAgICAgICAgICAgIDwvdHI+XHJcbiAgICAgICAgPC90aGVhZD5cclxuICAgICAgICA8dHJcclxuICAgICAgICAgICAgKm5nRm9yPVwibGV0IHZhcmlhbnQgb2YgdmFyaWFudHM7IHRyYWNrQnk6IHRyYWNrQnlGblwiXHJcbiAgICAgICAgICAgIFtjbGFzcy5kaXNhYmxlZF09XCIhdmFyaWFudEZvcm1WYWx1ZXNbdmFyaWFudC5pZF0uZW5hYmxlZFwiXHJcbiAgICAgICAgPlxyXG4gICAgICAgICAgICA8dGQgKm5nSWY9XCIxIDwgdmFyaWFudHMubGVuZ3RoXCI+XHJcbiAgICAgICAgICAgICAgICA8aW5wdXRcclxuICAgICAgICAgICAgICAgICAgICB0eXBlPVwiY2hlY2tib3hcIlxyXG4gICAgICAgICAgICAgICAgICAgIChjaGFuZ2UpPVwib25Gb3JtQ2hhbmdlKClcIlxyXG4gICAgICAgICAgICAgICAgICAgIFsobmdNb2RlbCldPVwidmFyaWFudEZvcm1WYWx1ZXNbdmFyaWFudC5pZF0uZW5hYmxlZFwiXHJcbiAgICAgICAgICAgICAgICAgICAgY2xyQ2hlY2tib3hcclxuICAgICAgICAgICAgICAgIC8+XHJcbiAgICAgICAgICAgIDwvdGQ+XHJcbiAgICAgICAgICAgIDx0ZCAqbmdJZj1cIjEgPCB2YXJpYW50cy5sZW5ndGhcIj5cclxuICAgICAgICAgICAgICAgIHt7IHZhcmlhbnQudmFsdWVzLmpvaW4oJyAnKSB9fVxyXG4gICAgICAgICAgICA8L3RkPlxyXG4gICAgICAgICAgICA8dGQ+XHJcbiAgICAgICAgICAgICAgICA8Y2xyLWlucHV0LWNvbnRhaW5lcj5cclxuICAgICAgICAgICAgICAgICAgICA8aW5wdXRcclxuICAgICAgICAgICAgICAgICAgICAgICAgY2xySW5wdXRcclxuICAgICAgICAgICAgICAgICAgICAgICAgdHlwZT1cInRleHRcIlxyXG4gICAgICAgICAgICAgICAgICAgICAgICAoY2hhbmdlKT1cIm9uRm9ybUNoYW5nZSgpXCJcclxuICAgICAgICAgICAgICAgICAgICAgICAgWyhuZ01vZGVsKV09XCJ2YXJpYW50Rm9ybVZhbHVlc1t2YXJpYW50LmlkXS5za3VcIlxyXG4gICAgICAgICAgICAgICAgICAgICAgICBbcGxhY2Vob2xkZXJdPVwiJ2NhdGFsb2cuc2t1JyB8IHRyYW5zbGF0ZVwiXHJcbiAgICAgICAgICAgICAgICAgICAgLz5cclxuICAgICAgICAgICAgICAgIDwvY2xyLWlucHV0LWNvbnRhaW5lcj5cclxuICAgICAgICAgICAgPC90ZD5cclxuICAgICAgICAgICAgPHRkPlxyXG4gICAgICAgICAgICAgICAgPGNsci1pbnB1dC1jb250YWluZXI+XHJcbiAgICAgICAgICAgICAgICAgICAgPHZkci1jdXJyZW5jeS1pbnB1dFxyXG4gICAgICAgICAgICAgICAgICAgICAgICBjbHJJbnB1dFxyXG4gICAgICAgICAgICAgICAgICAgICAgICBbKG5nTW9kZWwpXT1cInZhcmlhbnRGb3JtVmFsdWVzW3ZhcmlhbnQuaWRdLnByaWNlXCJcclxuICAgICAgICAgICAgICAgICAgICAgICAgKG5nTW9kZWxDaGFuZ2UpPVwib25Gb3JtQ2hhbmdlKClcIlxyXG4gICAgICAgICAgICAgICAgICAgICAgICBbY3VycmVuY3lDb2RlXT1cImN1cnJlbmN5Q29kZVwiXHJcbiAgICAgICAgICAgICAgICAgICAgPjwvdmRyLWN1cnJlbmN5LWlucHV0PlxyXG4gICAgICAgICAgICAgICAgPC9jbHItaW5wdXQtY29udGFpbmVyPlxyXG4gICAgICAgICAgICA8L3RkPlxyXG4gICAgICAgICAgICA8dGQ+XHJcbiAgICAgICAgICAgICAgICA8Y2xyLWlucHV0LWNvbnRhaW5lcj5cclxuICAgICAgICAgICAgICAgICAgICA8aW5wdXRcclxuICAgICAgICAgICAgICAgICAgICAgICAgY2xySW5wdXRcclxuICAgICAgICAgICAgICAgICAgICAgICAgdHlwZT1cIm51bWJlclwiXHJcbiAgICAgICAgICAgICAgICAgICAgICAgIFsobmdNb2RlbCldPVwidmFyaWFudEZvcm1WYWx1ZXNbdmFyaWFudC5pZF0uc3RvY2tcIlxyXG4gICAgICAgICAgICAgICAgICAgICAgICAoY2hhbmdlKT1cIm9uRm9ybUNoYW5nZSgpXCJcclxuICAgICAgICAgICAgICAgICAgICAgICAgbWluPVwiMFwiXHJcbiAgICAgICAgICAgICAgICAgICAgICAgIHN0ZXA9XCIxXCJcclxuICAgICAgICAgICAgICAgICAgICAvPlxyXG4gICAgICAgICAgICAgICAgPC9jbHItaW5wdXQtY29udGFpbmVyPlxyXG4gICAgICAgICAgICA8L3RkPlxyXG4gICAgICAgIDwvdHI+XHJcbiAgICA8L3RhYmxlPlxyXG48L2Rpdj5cclxuIl19
|
package/package/esm2020/catalog/components/option-value-input/option-value-input.component.mjs
ADDED
|
@@ -0,0 +1,151 @@
|
|
|
1
|
+
import { ChangeDetectionStrategy, Component, ElementRef, EventEmitter, forwardRef, Input, Output, ViewChild, ViewChildren, } from '@angular/core';
|
|
2
|
+
import { NG_VALUE_ACCESSOR } from '@angular/forms';
|
|
3
|
+
import { unique } from '@vendure/common/lib/unique';
|
|
4
|
+
import * as i0 from "@angular/core";
|
|
5
|
+
import * as i1 from "@vendure/admin-ui/core";
|
|
6
|
+
import * as i2 from "@angular/common";
|
|
7
|
+
import * as i3 from "@angular/forms";
|
|
8
|
+
export const OPTION_VALUE_INPUT_VALUE_ACCESSOR = {
|
|
9
|
+
provide: NG_VALUE_ACCESSOR,
|
|
10
|
+
useExisting: forwardRef(() => OptionValueInputComponent),
|
|
11
|
+
multi: true,
|
|
12
|
+
};
|
|
13
|
+
export class OptionValueInputComponent {
|
|
14
|
+
constructor(changeDetector) {
|
|
15
|
+
this.changeDetector = changeDetector;
|
|
16
|
+
this.groupName = '';
|
|
17
|
+
this.add = new EventEmitter();
|
|
18
|
+
this.remove = new EventEmitter();
|
|
19
|
+
this.edit = new EventEmitter();
|
|
20
|
+
this.disabled = false;
|
|
21
|
+
this.input = '';
|
|
22
|
+
this.isFocussed = false;
|
|
23
|
+
this.lastSelected = false;
|
|
24
|
+
this.editingIndex = -1;
|
|
25
|
+
}
|
|
26
|
+
get optionValues() {
|
|
27
|
+
return this.formValue ?? this.options ?? [];
|
|
28
|
+
}
|
|
29
|
+
registerOnChange(fn) {
|
|
30
|
+
this.onChangeFn = fn;
|
|
31
|
+
}
|
|
32
|
+
registerOnTouched(fn) {
|
|
33
|
+
this.onTouchFn = fn;
|
|
34
|
+
}
|
|
35
|
+
setDisabledState(isDisabled) {
|
|
36
|
+
this.disabled = isDisabled;
|
|
37
|
+
this.changeDetector.markForCheck();
|
|
38
|
+
}
|
|
39
|
+
writeValue(obj) {
|
|
40
|
+
this.formValue = obj || [];
|
|
41
|
+
}
|
|
42
|
+
focus() {
|
|
43
|
+
this.textArea.nativeElement.focus();
|
|
44
|
+
}
|
|
45
|
+
editName(index, event) {
|
|
46
|
+
const optionValue = this.optionValues[index];
|
|
47
|
+
if (!optionValue.locked && !optionValue.id) {
|
|
48
|
+
event.cancelBubble = true;
|
|
49
|
+
this.editingIndex = index;
|
|
50
|
+
const input = this.nameInputs.get(index)?.nativeElement;
|
|
51
|
+
setTimeout(() => input?.focus());
|
|
52
|
+
}
|
|
53
|
+
}
|
|
54
|
+
updateOption(index, event) {
|
|
55
|
+
const optionValue = this.optionValues[index];
|
|
56
|
+
const newName = event.target.value;
|
|
57
|
+
if (optionValue) {
|
|
58
|
+
if (newName) {
|
|
59
|
+
optionValue.name = newName;
|
|
60
|
+
this.edit.emit({ index, option: optionValue });
|
|
61
|
+
}
|
|
62
|
+
this.editingIndex = -1;
|
|
63
|
+
}
|
|
64
|
+
}
|
|
65
|
+
removeOption(option) {
|
|
66
|
+
if (!option.locked) {
|
|
67
|
+
if (this.formValue) {
|
|
68
|
+
this.formValue = this.formValue?.filter(o => o.name !== option.name);
|
|
69
|
+
this.onChangeFn(this.formValue);
|
|
70
|
+
}
|
|
71
|
+
else {
|
|
72
|
+
this.remove.emit(option);
|
|
73
|
+
}
|
|
74
|
+
}
|
|
75
|
+
}
|
|
76
|
+
handleKey(event) {
|
|
77
|
+
switch (event.key) {
|
|
78
|
+
case ',':
|
|
79
|
+
case 'Enter':
|
|
80
|
+
this.addOptionValue();
|
|
81
|
+
event.preventDefault();
|
|
82
|
+
break;
|
|
83
|
+
case 'Backspace':
|
|
84
|
+
if (this.lastSelected) {
|
|
85
|
+
this.removeLastOption();
|
|
86
|
+
this.lastSelected = false;
|
|
87
|
+
}
|
|
88
|
+
else if (this.input === '') {
|
|
89
|
+
this.lastSelected = true;
|
|
90
|
+
}
|
|
91
|
+
break;
|
|
92
|
+
default:
|
|
93
|
+
this.lastSelected = false;
|
|
94
|
+
}
|
|
95
|
+
}
|
|
96
|
+
handleBlur() {
|
|
97
|
+
this.isFocussed = false;
|
|
98
|
+
this.addOptionValue();
|
|
99
|
+
}
|
|
100
|
+
addOptionValue() {
|
|
101
|
+
const options = this.parseInputIntoOptions(this.input);
|
|
102
|
+
if (!this.formValue && this.options) {
|
|
103
|
+
for (const option of options) {
|
|
104
|
+
this.add.emit(option);
|
|
105
|
+
}
|
|
106
|
+
}
|
|
107
|
+
else {
|
|
108
|
+
this.formValue = unique([...this.formValue, ...options]);
|
|
109
|
+
this.onChangeFn(this.formValue);
|
|
110
|
+
}
|
|
111
|
+
this.input = '';
|
|
112
|
+
}
|
|
113
|
+
parseInputIntoOptions(input) {
|
|
114
|
+
return input
|
|
115
|
+
.split(/[,\n]/)
|
|
116
|
+
.map(s => s.trim())
|
|
117
|
+
.filter(s => s !== '')
|
|
118
|
+
.map(s => ({ name: s, locked: false }));
|
|
119
|
+
}
|
|
120
|
+
removeLastOption() {
|
|
121
|
+
if (this.optionValues.length) {
|
|
122
|
+
const option = this.optionValues[this.optionValues.length - 1];
|
|
123
|
+
this.removeOption(option);
|
|
124
|
+
}
|
|
125
|
+
}
|
|
126
|
+
}
|
|
127
|
+
OptionValueInputComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.2.3", ngImport: i0, type: OptionValueInputComponent, deps: [{ token: i0.ChangeDetectorRef }], target: i0.ɵɵFactoryTarget.Component });
|
|
128
|
+
OptionValueInputComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "13.2.3", type: OptionValueInputComponent, selector: "vdr-option-value-input", inputs: { groupName: "groupName", options: "options", disabled: "disabled" }, outputs: { add: "add", remove: "remove", edit: "edit" }, providers: [OPTION_VALUE_INPUT_VALUE_ACCESSOR], viewQueries: [{ propertyName: "textArea", first: true, predicate: ["textArea"], descendants: true, static: true }, { propertyName: "nameInputs", predicate: ["editNameInput"], descendants: true, read: ElementRef }], ngImport: i0, template: "<div class=\"input-wrapper\" [class.focus]=\"isFocussed\" (click)=\"textArea.focus()\">\r\n <div class=\"chips\" *ngIf=\"0 < optionValues.length\">\r\n <vdr-chip\r\n *ngFor=\"let option of optionValues; last as isLast; index as i\"\r\n [icon]=\"option.locked ? 'lock' : 'times'\"\r\n [class.selected]=\"isLast && lastSelected\"\r\n [class.locked]=\"option.locked\"\r\n [colorFrom]=\"groupName\"\r\n (iconClick)=\"removeOption(option)\"\r\n >\r\n <span [hidden]=\"editingIndex !== i\">\r\n <input\r\n #editNameInput\r\n type=\"text\"\r\n [ngModel]=\"option.name\"\r\n (blur)=\"updateOption(i, $event)\"\r\n (click)=\"$event.cancelBubble = true\"\r\n />\r\n </span>\r\n <span\r\n class=\"option-name\"\r\n [class.editable]=\"!option.locked && !option.id\"\r\n (click)=\"editName(i, $event)\" [hidden]=\"editingIndex === i\">{{ option.name }}</span>\r\n </vdr-chip>\r\n </div>\r\n <textarea\r\n #textArea\r\n (keyup)=\"handleKey($event)\"\r\n (focus)=\"isFocussed = true\"\r\n (blur)=\"handleBlur()\"\r\n [(ngModel)]=\"input\"\r\n [disabled]=\"disabled\"\r\n ></textarea>\r\n</div>\r\n", styles: [".input-wrapper{background-color:#fff;border-radius:3px!important;border:1px solid var(--color-grey-300)!important;cursor:text}.input-wrapper.focus{border-color:var(--color-primary-500)!important;box-shadow:0 0 1px 1px var(--color-primary-100)}.input-wrapper .chips{padding:5px}.input-wrapper textarea{border:none;width:100%;height:24px;margin-top:3px;padding:0 6px}.input-wrapper textarea:focus{outline:none}.input-wrapper textarea:disabled{background-color:var(--color-component-bg-100)}vdr-chip ::ng-deep .wrapper{margin:0 3px}vdr-chip.locked{opacity:.8}vdr-chip.selected ::ng-deep .wrapper{border-color:var(--color-warning-500)!important;box-shadow:0 0 1px 1px var(--color-warning-400);opacity:.6}vdr-chip .option-name.editable:hover{outline:1px solid var(--color-component-bg-300);outline-offset:1px;border-radius:1px}vdr-chip input{padding:0!important;margin-top:-2px;margin-bottom:-2px}\n"], components: [{ type: i1.ChipComponent, selector: "vdr-chip", inputs: ["icon", "invert", "colorFrom", "colorType"], outputs: ["iconClick"] }], directives: [{ type: i2.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { type: i2.NgForOf, selector: "[ngFor][ngForOf]", inputs: ["ngForOf", "ngForTrackBy", "ngForTemplate"] }, { type: i1.FormFieldControlDirective, selector: "input, textarea, select" }, { type: i3.DefaultValueAccessor, selector: "input:not([type=checkbox])[formControlName],textarea[formControlName],input:not([type=checkbox])[formControl],textarea[formControl],input:not([type=checkbox])[ngModel],textarea[ngModel],[ngDefaultControl]" }, { type: i3.NgControlStatus, selector: "[formControlName],[ngModel],[formControl]" }, { type: i3.NgModel, selector: "[ngModel]:not([formControlName]):not([formControl])", inputs: ["name", "disabled", "ngModel", "ngModelOptions"], outputs: ["ngModelChange"], exportAs: ["ngModel"] }], changeDetection: i0.ChangeDetectionStrategy.Default });
|
|
129
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.2.3", ngImport: i0, type: OptionValueInputComponent, decorators: [{
|
|
130
|
+
type: Component,
|
|
131
|
+
args: [{ selector: 'vdr-option-value-input', changeDetection: ChangeDetectionStrategy.Default, providers: [OPTION_VALUE_INPUT_VALUE_ACCESSOR], template: "<div class=\"input-wrapper\" [class.focus]=\"isFocussed\" (click)=\"textArea.focus()\">\r\n <div class=\"chips\" *ngIf=\"0 < optionValues.length\">\r\n <vdr-chip\r\n *ngFor=\"let option of optionValues; last as isLast; index as i\"\r\n [icon]=\"option.locked ? 'lock' : 'times'\"\r\n [class.selected]=\"isLast && lastSelected\"\r\n [class.locked]=\"option.locked\"\r\n [colorFrom]=\"groupName\"\r\n (iconClick)=\"removeOption(option)\"\r\n >\r\n <span [hidden]=\"editingIndex !== i\">\r\n <input\r\n #editNameInput\r\n type=\"text\"\r\n [ngModel]=\"option.name\"\r\n (blur)=\"updateOption(i, $event)\"\r\n (click)=\"$event.cancelBubble = true\"\r\n />\r\n </span>\r\n <span\r\n class=\"option-name\"\r\n [class.editable]=\"!option.locked && !option.id\"\r\n (click)=\"editName(i, $event)\" [hidden]=\"editingIndex === i\">{{ option.name }}</span>\r\n </vdr-chip>\r\n </div>\r\n <textarea\r\n #textArea\r\n (keyup)=\"handleKey($event)\"\r\n (focus)=\"isFocussed = true\"\r\n (blur)=\"handleBlur()\"\r\n [(ngModel)]=\"input\"\r\n [disabled]=\"disabled\"\r\n ></textarea>\r\n</div>\r\n", styles: [".input-wrapper{background-color:#fff;border-radius:3px!important;border:1px solid var(--color-grey-300)!important;cursor:text}.input-wrapper.focus{border-color:var(--color-primary-500)!important;box-shadow:0 0 1px 1px var(--color-primary-100)}.input-wrapper .chips{padding:5px}.input-wrapper textarea{border:none;width:100%;height:24px;margin-top:3px;padding:0 6px}.input-wrapper textarea:focus{outline:none}.input-wrapper textarea:disabled{background-color:var(--color-component-bg-100)}vdr-chip ::ng-deep .wrapper{margin:0 3px}vdr-chip.locked{opacity:.8}vdr-chip.selected ::ng-deep .wrapper{border-color:var(--color-warning-500)!important;box-shadow:0 0 1px 1px var(--color-warning-400);opacity:.6}vdr-chip .option-name.editable:hover{outline:1px solid var(--color-component-bg-300);outline-offset:1px;border-radius:1px}vdr-chip input{padding:0!important;margin-top:-2px;margin-bottom:-2px}\n"] }]
|
|
132
|
+
}], ctorParameters: function () { return [{ type: i0.ChangeDetectorRef }]; }, propDecorators: { groupName: [{
|
|
133
|
+
type: Input
|
|
134
|
+
}], textArea: [{
|
|
135
|
+
type: ViewChild,
|
|
136
|
+
args: ['textArea', { static: true }]
|
|
137
|
+
}], nameInputs: [{
|
|
138
|
+
type: ViewChildren,
|
|
139
|
+
args: ['editNameInput', { read: ElementRef }]
|
|
140
|
+
}], options: [{
|
|
141
|
+
type: Input
|
|
142
|
+
}], add: [{
|
|
143
|
+
type: Output
|
|
144
|
+
}], remove: [{
|
|
145
|
+
type: Output
|
|
146
|
+
}], edit: [{
|
|
147
|
+
type: Output
|
|
148
|
+
}], disabled: [{
|
|
149
|
+
type: Input
|
|
150
|
+
}] } });
|
|
151
|
+
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoib3B0aW9uLXZhbHVlLWlucHV0LmNvbXBvbmVudC5qcyIsInNvdXJjZVJvb3QiOiIiLCJzb3VyY2VzIjpbIi4uLy4uLy4uLy4uLy4uL3NyYy9saWIvY2F0YWxvZy9zcmMvY29tcG9uZW50cy9vcHRpb24tdmFsdWUtaW5wdXQvb3B0aW9uLXZhbHVlLWlucHV0LmNvbXBvbmVudC50cyIsIi4uLy4uLy4uLy4uLy4uL3NyYy9saWIvY2F0YWxvZy9zcmMvY29tcG9uZW50cy9vcHRpb24tdmFsdWUtaW5wdXQvb3B0aW9uLXZhbHVlLWlucH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9XG5cbiAgICB3cml0ZVZhbHVlKG9iajogYW55KTogdm9pZCB7XG4gICAgICAgIHRoaXMuZm9ybVZhbHVlID0gb2JqIHx8IFtdO1xuICAgIH1cblxuICAgIGZvY3VzKCkge1xuICAgICAgICB0aGlzLnRleHRBcmVhLm5hdGl2ZUVsZW1lbnQuZm9jdXMoKTtcbiAgICB9XG5cbiAgICBlZGl0TmFtZShpbmRleDogbnVtYmVyLCBldmVudDogTW91c2VFdmVudCkge1xuICAgICAgICBjb25zdCBvcHRpb25WYWx1ZSA9IHRoaXMub3B0aW9uVmFsdWVzW2luZGV4XTtcbiAgICAgICAgaWYgKCFvcHRpb25WYWx1ZS5sb2NrZWQgJiYgIW9wdGlvblZhbHVlLmlkKSB7XG4gICAgICAgICAgICBldmVudC5jYW5jZWxCdWJibGUgPSB0cnVlO1xuICAgICAgICAgICAgdGhpcy5lZGl0aW5nSW5kZXggPSBpbmRleDtcbiAgICAgICAgICAgIGNvbnN0IGlucHV0ID0gdGhpcy5uYW1lSW5wdXRzLmdldChpbmRleCk/Lm5hdGl2ZUVsZW1lbnQ7XG4gICAgICAgICAgICBzZXRUaW1lb3V0KCgpID0+IGlucHV0Py5mb2N1cygpKTtcbiAgICAgICAgfVxuICAgIH1cblxuICAgIHVwZGF0ZU9wdGlvbihpbmRleDogbnVtYmVyLCBldmVudDogSW5wdXRFdmVudCkge1xuICAgICAgICBjb25zdCBvcHRpb25WYWx1ZSA9IHRoaXMub3B0aW9uVmFsdWVzW2luZGV4XTtcbiAgICAgICAgY29uc3QgbmV3TmFtZSA9IChldmVudC50YXJnZXQgYXMgSFRNTElucHV0RWxlbWVudCkudmFsdWU7XG4gICAgICAgIGlmIChvcHRpb25WYWx1ZSkge1xuICAgICAgICAgICAgaWYgKG5ld05hbWUpIHtcbiAgICAgICAgICAgICAgICBvcHRpb25WYWx1ZS5uYW1lID0gbmV3TmFtZTtcbiAgICAgICAgICAgICAgICB0aGlzLmVkaXQuZW1pdCh7IGluZGV4LCBvcHRpb246IG9wdGlvblZhbHVlIH0pO1xuICAgICAgICAgICAgfVxuICAgICAgICAgICAgdGhpcy5lZGl0aW5nSW5kZXggPSAtMTtcbiAgICAgICAgfVxuICAgIH1cblxuICAgIHJlbW92ZU9wdGlvbihvcHRpb246IE9wdGlvbikge1xuICAgICAgICBpZiAoIW9wdGlvbi5sb2NrZWQpIHtcbiAgICAgICAgICAgIGlmICh0aGlzLmZvcm1WYWx1ZSkge1xuICAgICAgICAgICAgICAgIHRoaXMuZm9ybVZhbHVlID0gdGhpcy5mb3JtVmFsdWU/LmZpbHRlcihvID0+IG8ubmFtZSAhPT0gb3B0aW9uLm5hbWUpO1xuICAgICAgICAgICAgICAgIHRoaXMub25DaGFuZ2VGbih0aGlzLmZvcm1WYWx1ZSk7XG4gICAgICAgICAgICB9IGVsc2Uge1xuICAgICAgICAgICAgICAgIHRoaXMucmVtb3ZlLmVtaXQob3B0aW9uKTtcbiAgICAgICAgICAgIH1cbiAgICAgICAgfVxuICAgIH1cblxuICAgIGhhbmRsZUtleShldmVudDogS2V5Ym9hcmRFdmVudCkge1xuICAgICAgICBzd2l0Y2ggKGV2ZW50LmtleSkge1xuICAgICAgICAgICAgY2FzZSAnLCc6XG4gICAgICAgICAgICBjYXNlICdFbnRlcic6XG4gICAgICAgICAgICAgICAgdGhpcy5hZGRPcHRpb25WYWx1ZSgpO1xuICAgICAgICAgICAgICAgIGV2ZW50LnByZXZlbnREZWZhdWx0KCk7XG4gICAgICAgICAgICAgICAgYnJlYWs7XG4gICAgICAgICAgICBjYXNlICdCYWNrc3BhY2UnOlxuICAgICAgICAgICAgICAgIGlmICh0aGlzLmxhc3RTZWxlY3RlZCkge1xuICAgICAgICAgICAgICAgICAgICB0aGlzLnJlbW92ZUxhc3RPcHRpb24oKTtcbiAgICAgICAgICAgICAgICAgICAgdGhpcy5sYXN0U2VsZWN0ZWQgPSBmYWxzZTtcbiAgICAgICAgICAgICAgICB9IGVsc2UgaWYgKHRoaXMuaW5wdXQg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W9uKG9wdGlvbilcIlxyXG4gICAgICAgID5cclxuICAgICAgICAgICAgPHNwYW4gW2hpZGRlbl09XCJlZGl0aW5nSW5kZXggIT09IGlcIj5cclxuICAgICAgICAgICAgICAgIDxpbnB1dFxyXG4gICAgICAgICAgICAgICAgICAgICNlZGl0TmFtZUlucHV0XHJcbiAgICAgICAgICAgICAgICAgICAgdHlwZT1cInRleHRcIlxyXG4gICAgICAgICAgICAgICAgICAgIFtuZ01vZGVsXT1cIm9wdGlvbi5uYW1lXCJcclxuICAgICAgICAgICAgICAgICAgICAoYmx1cik9XCJ1cGRhdGVPcHRpb24oaSwgJGV2ZW50KVwiXHJcbiAgICAgICAgICAgICAgICAgICAgKGNsaWNrKT1cIiRldmVudC5jYW5jZWxCdWJibGUgPSB0cnVlXCJcclxuICAgICAgICAgICAgICAgIC8+XHJcbiAgICAgICAgICAgIDwvc3Bhbj5cclxuICAgICAgICAgICAgPHNwYW5cclxuICAgICAgICAgICAgICAgIGNsYXNzPVwib3B0aW9uLW5hbWVcIlxyXG4gICAgICAgICAgICAgICAgW2NsYXNzLmVkaXRhYmxlXT1cIiFvcHRpb24ubG9ja2VkICYmICFvcHRpb24uaWRcIlxyXG4gICAgICAgICAgICAgICAgKGNsaWNrKT1cImVkaXROYW1lKGksICRldmVudClcIiBbaGlkZGVuXT1cImVkaXRpbmdJbmRleCA9PT0gaVwiPnt7IG9wdGlvbi5uYW1lIH19PC9zcGFuPlxyXG4gICAgICAgIDwvdmRyLWNoaXA+XHJcbiAgICA8L2Rpdj5cclxuICAgIDx0ZXh0YXJlYVxyXG4gICAgICAgICN0ZXh0QXJlYVxyXG4gICAgICAgIChrZXl1cCk9XCJoYW5kbGVLZXkoJGV2ZW50KVwiXHJcbiAgICAgICAgKGZvY3VzKT1cImlzRm9jdXNzZWQgPSB0cnVlXCJcclxuICAgICAgICAoYmx1cik9XCJoYW5kbGVCbHVyKClcIlxyXG4gICAgICAgIFsobmdNb2RlbCldPVwiaW5wdXRcIlxyXG4gICAgICAgIFtkaXNhYmxlZF09XCJkaXNhYmxlZFwiXHJcbiAgICA+PC90ZXh0YXJlYT5cclxuPC9kaXY+XHJcbiJdfQ==
|
package/{esm2020 → package/esm2020}/catalog/components/product-detail/product-detail.component.mjs
RENAMED
|
File without changes
|
package/{esm2020 → package/esm2020}/catalog/components/product-detail/product-detail.types.mjs
RENAMED
|
File without changes
|
package/{esm2020 → package/esm2020}/catalog/components/product-list/product-list.component.mjs
RENAMED
|
@@ -138,7 +138,7 @@ export class ProductListComponent extends BaseListComponent {
|
|
|
138
138
|
}
|
|
139
139
|
}
|
|
140
140
|
ProductListComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.2.3", ngImport: i0, type: ProductListComponent, deps: [{ token: i1.DataService }, { token: i1.ModalService }, { token: i1.NotificationService }, { token: i1.JobQueueService }, { token: i1.ServerConfigService }, { token: i2.Router }, { token: i2.ActivatedRoute }], target: i0.ɵɵFactoryTarget.Component });
|
|
141
|
-
ProductListComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "13.2.3", type: ProductListComponent, selector: "vdr-products-list", viewQueries: [{ propertyName: "productSearchInput", first: true, predicate: ["productSearchInputComponent"], descendants: true, static: true }], usesInheritance: true, ngImport: i0, template: "<vdr-action-bar>\r\n <vdr-ab-left [grow]=\"true\">\r\n <div class=\"search-form\">\r\n <vdr-product-search-input\r\n #productSearchInputComponent\r\n [facetValueResults]=\"facetValues$ | async\"\r\n (searchTermChange)=\"setSearchTerm($event)\"\r\n (facetValueChange)=\"setFacetValueIds($event)\"\r\n ></vdr-product-search-input>\r\n <vdr-dropdown class=\"search-settings-menu mr3\">\r\n <button\r\n type=\"button\"\r\n class=\"icon-button search-index-button\"\r\n [title]=\"\r\n (pendingSearchIndexUpdates\r\n ? 'catalog.pending-search-index-updates'\r\n : 'catalog.search-index-controls'\r\n ) | translate\r\n \"\r\n vdrDropdownTrigger\r\n >\r\n <clr-icon shape=\"cog\"></clr-icon>\r\n <vdr-status-badge *ngIf=\"pendingSearchIndexUpdates\" type=\"warning\"></vdr-status-badge>\r\n </button>\r\n <vdr-dropdown-menu vdrPosition=\"bottom-right\">\r\n <h4 class=\"dropdown-header\">{{ 'catalog.search-index-controls' | translate }}</h4>\r\n <ng-container *ngIf=\"pendingSearchIndexUpdates\">\r\n <button\r\n type=\"button\"\r\n class=\"run-updates-button\"\r\n vdrDropdownItem\r\n (click)=\"runPendingSearchIndexUpdates()\"\r\n [disabled]=\"!(['UpdateCatalog', 'UpdateProduct'] | hasPermission)\"\r\n >\r\n <vdr-status-badge type=\"warning\"></vdr-status-badge>\r\n {{\r\n 'catalog.run-pending-search-index-updates'\r\n | translate: {count: pendingSearchIndexUpdates}\r\n }}\r\n </button>\r\n <div class=\"dropdown-divider\"></div>\r\n </ng-container>\r\n <button\r\n type=\"button\"\r\n vdrDropdownItem\r\n (click)=\"rebuildSearchIndex()\"\r\n [disabled]=\"!(['UpdateCatalog', 'UpdateProduct'] | hasPermission)\"\r\n >\r\n {{ 'catalog.rebuild-search-index' | translate }}\r\n </button>\r\n </vdr-dropdown-menu>\r\n </vdr-dropdown>\r\n </div>\r\n <div class=\"flex wrap\">\r\n <clr-checkbox-wrapper class=\"mt2\">\r\n <input type=\"checkbox\" clrCheckbox [(ngModel)]=\"groupByProduct\" (ngModelChange)=\"refresh()\"/>\r\n <label>{{ 'catalog.group-by-product' | translate }}</label>\r\n </clr-checkbox-wrapper>\r\n <vdr-language-selector\r\n [availableLanguageCodes]=\"availableLanguages$ | async\"\r\n [currentLanguageCode]=\"contentLanguage$ | async\"\r\n (languageCodeChange)=\"setLanguage($event)\"\r\n ></vdr-language-selector>\r\n </div>\r\n </vdr-ab-left>\r\n <vdr-ab-right>\r\n <vdr-action-bar-items locationId=\"product-list\"></vdr-action-bar-items>\r\n <a\r\n class=\"btn btn-primary\"\r\n [routerLink]=\"['./create']\"\r\n *vdrIfPermissions=\"['CreateCatalog', 'CreateProduct']\"\r\n >\r\n <clr-icon shape=\"plus\"></clr-icon>\r\n <span class=\"full-label\">{{ 'catalog.create-new-product' | translate }}</span>\r\n </a>\r\n </vdr-ab-right>\r\n</vdr-action-bar>\r\n\r\n<vdr-data-table\r\n [items]=\"items$ | async\"\r\n [itemsPerPage]=\"itemsPerPage$ | async\"\r\n [totalItems]=\"totalItems$ | async\"\r\n [currentPage]=\"currentPage$ | async\"\r\n (pageChange)=\"setPageNumber($event)\"\r\n (itemsPerPageChange)=\"setItemsPerPage($event)\"\r\n>\r\n <ng-template let-result=\"item\">\r\n <td class=\"left align-middle image-col\" [class.disabled]=\"!result.enabled\">\r\n <div class=\"image-placeholder\">\r\n <img\r\n *ngIf=\"\r\n groupByProduct\r\n ? result.productAsset\r\n : result.productVariantAsset || result.productAsset as asset;\r\n else imagePlaceholder\r\n \"\r\n [src]=\"asset | assetPreview: 'tiny'\"\r\n />\r\n <ng-template #imagePlaceholder>\r\n <div class=\"placeholder\">\r\n <clr-icon shape=\"image\" size=\"48\"></clr-icon>\r\n </div>\r\n </ng-template>\r\n </div>\r\n </td>\r\n <td class=\"left align-middle\" [class.disabled]=\"!result.enabled\">\r\n {{ groupByProduct ? result.productName : result.productVariantName }}\r\n </td>\r\n <td class=\"align-middle\" [class.disabled]=\"!result.enabled\">\r\n <vdr-chip *ngIf=\"!result.enabled\">{{ 'common.disabled' | translate }}</vdr-chip>\r\n </td>\r\n <td class=\"right align-middle\" [class.disabled]=\"!result.enabled\">\r\n <vdr-table-row-action\r\n class=\"edit-button\"\r\n iconShape=\"edit\"\r\n [label]=\"'common.edit' | translate\"\r\n [linkTo]=\"['./', result.productId]\"\r\n ></vdr-table-row-action>\r\n <vdr-dropdown>\r\n <button type=\"button\" class=\"btn btn-link btn-sm\" vdrDropdownTrigger>\r\n {{ 'common.actions' | translate }}\r\n <clr-icon shape=\"caret down\"></clr-icon>\r\n </button>\r\n <vdr-dropdown-menu vdrPosition=\"bottom-right\">\r\n <button\r\n type=\"button\"\r\n class=\"delete-button\"\r\n (click)=\"deleteProduct(result.productId)\"\r\n [disabled]=\"!(['DeleteCatalog', 'DeleteProduct'] | hasPermission)\"\r\n vdrDropdownItem\r\n >\r\n <clr-icon shape=\"trash\" class=\"is-danger\"></clr-icon>\r\n {{ 'common.delete' | translate }}\r\n </button>\r\n </vdr-dropdown-menu>\r\n </vdr-dropdown>\r\n </td>\r\n </ng-template>\r\n</vdr-data-table>\r\n", styles: [".image-col{width:70px}.image-placeholder{width:50px;height:50px;background-color:var(--color-component-bg-200)}.image-placeholder img{border-radius:var(--border-radius-img)}.image-placeholder .placeholder{text-align:center;color:var(--color-grey-300)}.search-form{display:flex;align-items:center;width:100%;margin-bottom:6px}.search-input{min-width:300px}@media screen and (max-width: 768px){.search-input{min-width:100px}}.search-settings-menu{margin:0 12px}td.disabled{background-color:var(--color-component-bg-200)}.search-index-button{position:relative}.search-index-button vdr-status-badge{right:0;top:0}.run-updates-button{position:relative}.run-updates-button vdr-status-badge{left:10px;top:10px}.edit-button{margin-right:24px}\n"], components: [{ type: i1.ActionBarComponent, selector: "vdr-action-bar" }, { type: i1.ActionBarLeftComponent, selector: "vdr-ab-left", inputs: ["grow"] }, { type: i1.ProductSearchInputComponent, selector: "vdr-product-search-input", inputs: ["facetValueResults"], outputs: ["searchTermChange", "facetValueChange"] }, { type: i1.DropdownComponent, selector: "vdr-dropdown", inputs: ["manualToggle"] }, { type: i1.StatusBadgeComponent, selector: "vdr-status-badge", inputs: ["type"] }, { type: i1.DropdownMenuComponent, selector: "vdr-dropdown-menu", inputs: ["vdrPosition"] }, { type: i3.ClrCheckboxWrapper, selector: "clr-checkbox-wrapper,clr-toggle-wrapper" }, { type: i1.LanguageSelectorComponent, selector: "vdr-language-selector", inputs: ["currentLanguageCode", "availableLanguageCodes", "disabled"], outputs: ["languageCodeChange"] }, { type: i1.ActionBarRightComponent, selector: "vdr-ab-right", inputs: ["grow"] }, { type: i1.ActionBarItemsComponent, selector: "vdr-action-bar-items", inputs: ["locationId"] }, { type: i1.DataTableComponent, selector: "vdr-data-table", inputs: ["items", "itemsPerPage", "currentPage", "totalItems", "allSelected", "isRowSelectedFn", "emptyStateLabel"], outputs: ["allSelectChange", "rowSelectChange", "pageChange", "itemsPerPageChange"] }, { type: i1.ChipComponent, selector: "vdr-chip", inputs: ["icon", "invert", "colorFrom", "colorType"], outputs: ["iconClick"] }, { type: i1.TableRowActionComponent, selector: "vdr-table-row-action", inputs: ["linkTo", "label", "iconShape", "disabled"] }], directives: [{ type: i1.DropdownTriggerDirective, selector: "[vdrDropdownTrigger]" }, { type: i3.ClrIconCustomTag, selector: "clr-icon" }, { type: i4.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { type: i1.DropdownItemDirective, selector: "[vdrDropdownItem]" }, { type: i1.FormFieldControlDirective, selector: "input, textarea, select" }, { type: i5.CheckboxControlValueAccessor, selector: "input[type=checkbox][formControlName],input[type=checkbox][formControl],input[type=checkbox][ngModel]" }, { type: i3.ClrCheckbox, selector: "[clrCheckbox],[clrToggle]" }, { type: i5.NgControlStatus, selector: "[formControlName],[ngModel],[formControl]" }, { type: i5.NgModel, selector: "[ngModel]:not([formControlName]):not([formControl])", inputs: ["name", "disabled", "ngModel", "ngModelOptions"], outputs: ["ngModelChange"], exportAs: ["ngModel"] }, { type: i3.ClrLabel, selector: "label", inputs: ["for"] }, { type: i1.IfPermissionsDirective, selector: "[vdrIfPermissions]", inputs: ["vdrIfPermissions", "vdrIfPermissionsElse"] }, { type: i2.RouterLinkWithHref, selector: "a[routerLink],area[routerLink]", inputs: ["target", "queryParams", "fragment", "queryParamsHandling", "preserveFragment", "skipLocationChange", "replaceUrl", "state", "relativeTo", "routerLink"] }], pipes: { "async": i4.AsyncPipe, "translate": i6.TranslatePipe, "hasPermission": i1.HasPermissionPipe, "assetPreview": i1.AssetPreviewPipe } });
|
|
141
|
+
ProductListComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "13.2.3", type: ProductListComponent, selector: "vdr-products-list", viewQueries: [{ propertyName: "productSearchInput", first: true, predicate: ["productSearchInputComponent"], descendants: true, static: true }], usesInheritance: true, ngImport: i0, template: "<vdr-action-bar>\r\n <vdr-ab-left [grow]=\"true\">\r\n <div class=\"search-form\">\r\n <vdr-product-search-input\r\n #productSearchInputComponent\r\n [facetValueResults]=\"facetValues$ | async\"\r\n (searchTermChange)=\"setSearchTerm($event)\"\r\n (facetValueChange)=\"setFacetValueIds($event)\"\r\n ></vdr-product-search-input>\r\n <vdr-dropdown class=\"search-settings-menu mr3\">\r\n <button\r\n type=\"button\"\r\n class=\"icon-button search-index-button\"\r\n [title]=\"\r\n (pendingSearchIndexUpdates\r\n ? 'catalog.pending-search-index-updates'\r\n : 'catalog.search-index-controls'\r\n ) | translate\r\n \"\r\n vdrDropdownTrigger\r\n >\r\n <clr-icon shape=\"cog\"></clr-icon>\r\n <vdr-status-badge *ngIf=\"pendingSearchIndexUpdates\" type=\"warning\"></vdr-status-badge>\r\n </button>\r\n <vdr-dropdown-menu vdrPosition=\"bottom-right\">\r\n <h4 class=\"dropdown-header\">{{ 'catalog.search-index-controls' | translate }}</h4>\r\n <ng-container *ngIf=\"pendingSearchIndexUpdates\">\r\n <button\r\n type=\"button\"\r\n class=\"run-updates-button\"\r\n vdrDropdownItem\r\n (click)=\"runPendingSearchIndexUpdates()\"\r\n [disabled]=\"!(['UpdateCatalog', 'UpdateProduct'] | hasPermission)\"\r\n >\r\n <vdr-status-badge type=\"warning\"></vdr-status-badge>\r\n {{\r\n 'catalog.run-pending-search-index-updates'\r\n | translate: {count: pendingSearchIndexUpdates}\r\n }}\r\n </button>\r\n <div class=\"dropdown-divider\"></div>\r\n </ng-container>\r\n <button\r\n type=\"button\"\r\n vdrDropdownItem\r\n (click)=\"rebuildSearchIndex()\"\r\n [disabled]=\"!(['UpdateCatalog', 'UpdateProduct'] | hasPermission)\"\r\n >\r\n {{ 'catalog.rebuild-search-index' | translate }}\r\n </button>\r\n </vdr-dropdown-menu>\r\n </vdr-dropdown>\r\n </div>\r\n <div class=\"flex wrap\">\r\n <clr-checkbox-wrapper class=\"mt2\">\r\n <input type=\"checkbox\" clrCheckbox [(ngModel)]=\"groupByProduct\" (ngModelChange)=\"refresh()\"/>\r\n <label>{{ 'catalog.group-by-product' | translate }}</label>\r\n </clr-checkbox-wrapper>\r\n <vdr-language-selector\r\n [availableLanguageCodes]=\"availableLanguages$ | async\"\r\n [currentLanguageCode]=\"contentLanguage$ | async\"\r\n (languageCodeChange)=\"setLanguage($event)\"\r\n ></vdr-language-selector>\r\n </div>\r\n </vdr-ab-left>\r\n <vdr-ab-right>\r\n <vdr-action-bar-items locationId=\"product-list\"></vdr-action-bar-items>\r\n <a\r\n class=\"btn btn-primary\"\r\n [routerLink]=\"['./create']\"\r\n *vdrIfPermissions=\"['CreateCatalog', 'CreateProduct']\"\r\n >\r\n <clr-icon shape=\"plus\"></clr-icon>\r\n <span class=\"full-label\">{{ 'catalog.create-new-product' | translate }}</span>\r\n </a>\r\n </vdr-ab-right>\r\n</vdr-action-bar>\r\n\r\n<vdr-data-table\r\n [items]=\"items$ | async\"\r\n [itemsPerPage]=\"itemsPerPage$ | async\"\r\n [totalItems]=\"totalItems$ | async\"\r\n [currentPage]=\"currentPage$ | async\"\r\n (pageChange)=\"setPageNumber($event)\"\r\n (itemsPerPageChange)=\"setItemsPerPage($event)\"\r\n>\r\n <ng-template let-result=\"item\">\r\n <td class=\"left align-middle image-col\" [class.disabled]=\"!result.enabled\">\r\n <div class=\"image-placeholder\">\r\n <img\r\n *ngIf=\"\r\n groupByProduct\r\n ? result.productAsset\r\n : result.productVariantAsset || result.productAsset as asset;\r\n else imagePlaceholder\r\n \"\r\n [src]=\"asset | assetPreview: 'tiny'\"\r\n />\r\n <ng-template #imagePlaceholder>\r\n <div class=\"placeholder\">\r\n <clr-icon shape=\"image\" size=\"48\"></clr-icon>\r\n </div>\r\n </ng-template>\r\n </div>\r\n </td>\r\n <td class=\"left align-middle\" [class.disabled]=\"!result.enabled\">\r\n {{ groupByProduct ? result.productName : result.productVariantName }}\r\n </td>\r\n <td class=\"align-middle\" [class.disabled]=\"!result.enabled\">\r\n <vdr-chip *ngIf=\"!result.enabled\">{{ 'common.disabled' | translate }}</vdr-chip>\r\n </td>\r\n <td class=\"right align-middle\" [class.disabled]=\"!result.enabled\">\r\n <vdr-table-row-action\r\n class=\"edit-button\"\r\n iconShape=\"edit\"\r\n [label]=\"'common.edit' | translate\"\r\n [linkTo]=\"['./', result.productId]\"\r\n ></vdr-table-row-action>\r\n <vdr-dropdown>\r\n <button type=\"button\" class=\"btn btn-link btn-sm\" vdrDropdownTrigger>\r\n {{ 'common.actions' | translate }}\r\n <clr-icon shape=\"caret down\"></clr-icon>\r\n </button>\r\n <vdr-dropdown-menu vdrPosition=\"bottom-right\">\r\n <button\r\n type=\"button\"\r\n class=\"delete-button\"\r\n (click)=\"deleteProduct(result.productId)\"\r\n [disabled]=\"!(['DeleteCatalog', 'DeleteProduct'] | hasPermission)\"\r\n vdrDropdownItem\r\n >\r\n <clr-icon shape=\"trash\" class=\"is-danger\"></clr-icon>\r\n {{ 'common.delete' | translate }}\r\n </button>\r\n </vdr-dropdown-menu>\r\n </vdr-dropdown>\r\n </td>\r\n </ng-template>\r\n</vdr-data-table>\r\n", styles: [".image-col{width:70px}.image-placeholder{width:50px;height:50px;background-color:var(--color-component-bg-200)}.image-placeholder img{border-radius:var(--border-radius-img)}.image-placeholder .placeholder{text-align:center;color:var(--color-grey-300)}.search-form{display:flex;align-items:center;width:100%;margin-bottom:6px}.search-input{min-width:300px}@media screen and (max-width: 768px){.search-input{min-width:100px}}.search-settings-menu{margin:0 12px}td.disabled{background-color:var(--color-component-bg-200)}.search-index-button{position:relative}.search-index-button vdr-status-badge{right:0;top:0}.run-updates-button{position:relative}.run-updates-button vdr-status-badge{left:10px;top:10px}.edit-button{margin-right:24px}\n"], components: [{ type: i1.ActionBarComponent, selector: "vdr-action-bar" }, { type: i1.ActionBarLeftComponent, selector: "vdr-ab-left", inputs: ["grow"] }, { type: i1.ProductSearchInputComponent, selector: "vdr-product-search-input", inputs: ["facetValueResults"], outputs: ["searchTermChange", "facetValueChange"] }, { type: i1.DropdownComponent, selector: "vdr-dropdown", inputs: ["manualToggle"] }, { type: i1.StatusBadgeComponent, selector: "vdr-status-badge", inputs: ["type"] }, { type: i1.DropdownMenuComponent, selector: "vdr-dropdown-menu", inputs: ["vdrPosition", "customClasses"] }, { type: i3.ClrCheckboxWrapper, selector: "clr-checkbox-wrapper,clr-toggle-wrapper" }, { type: i1.LanguageSelectorComponent, selector: "vdr-language-selector", inputs: ["currentLanguageCode", "availableLanguageCodes", "disabled"], outputs: ["languageCodeChange"] }, { type: i1.ActionBarRightComponent, selector: "vdr-ab-right", inputs: ["grow"] }, { type: i1.ActionBarItemsComponent, selector: "vdr-action-bar-items", inputs: ["locationId"] }, { type: i1.DataTableComponent, selector: "vdr-data-table", inputs: ["items", "itemsPerPage", "currentPage", "totalItems", "allSelected", "isRowSelectedFn", "emptyStateLabel"], outputs: ["allSelectChange", "rowSelectChange", "pageChange", "itemsPerPageChange"] }, { type: i1.ChipComponent, selector: "vdr-chip", inputs: ["icon", "invert", "colorFrom", "colorType"], outputs: ["iconClick"] }, { type: i1.TableRowActionComponent, selector: "vdr-table-row-action", inputs: ["linkTo", "label", "iconShape", "disabled"] }], directives: [{ type: i1.DropdownTriggerDirective, selector: "[vdrDropdownTrigger]" }, { type: i3.ClrIconCustomTag, selector: "clr-icon" }, { type: i4.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { type: i1.DropdownItemDirective, selector: "[vdrDropdownItem]" }, { type: i1.FormFieldControlDirective, selector: "input, textarea, select" }, { type: i5.CheckboxControlValueAccessor, selector: "input[type=checkbox][formControlName],input[type=checkbox][formControl],input[type=checkbox][ngModel]" }, { type: i3.ClrCheckbox, selector: "[clrCheckbox],[clrToggle]" }, { type: i5.NgControlStatus, selector: "[formControlName],[ngModel],[formControl]" }, { type: i5.NgModel, selector: "[ngModel]:not([formControlName]):not([formControl])", inputs: ["name", "disabled", "ngModel", "ngModelOptions"], outputs: ["ngModelChange"], exportAs: ["ngModel"] }, { type: i3.ClrLabel, selector: "label", inputs: ["for"] }, { type: i1.IfPermissionsDirective, selector: "[vdrIfPermissions]", inputs: ["vdrIfPermissions", "vdrIfPermissionsElse"] }, { type: i2.RouterLinkWithHref, selector: "a[routerLink],area[routerLink]", inputs: ["target", "queryParams", "fragment", "queryParamsHandling", "preserveFragment", "skipLocationChange", "replaceUrl", "state", "relativeTo", "routerLink"] }], pipes: { "async": i4.AsyncPipe, "translate": i6.TranslatePipe, "hasPermission": i1.HasPermissionPipe, "assetPreview": i1.AssetPreviewPipe } });
|
|
142
142
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.2.3", ngImport: i0, type: ProductListComponent, decorators: [{
|
|
143
143
|
type: Component,
|
|
144
144
|
args: [{ selector: 'vdr-products-list', template: "<vdr-action-bar>\r\n <vdr-ab-left [grow]=\"true\">\r\n <div class=\"search-form\">\r\n <vdr-product-search-input\r\n #productSearchInputComponent\r\n [facetValueResults]=\"facetValues$ | async\"\r\n (searchTermChange)=\"setSearchTerm($event)\"\r\n (facetValueChange)=\"setFacetValueIds($event)\"\r\n ></vdr-product-search-input>\r\n <vdr-dropdown class=\"search-settings-menu mr3\">\r\n <button\r\n type=\"button\"\r\n class=\"icon-button search-index-button\"\r\n [title]=\"\r\n (pendingSearchIndexUpdates\r\n ? 'catalog.pending-search-index-updates'\r\n : 'catalog.search-index-controls'\r\n ) | translate\r\n \"\r\n vdrDropdownTrigger\r\n >\r\n <clr-icon shape=\"cog\"></clr-icon>\r\n <vdr-status-badge *ngIf=\"pendingSearchIndexUpdates\" type=\"warning\"></vdr-status-badge>\r\n </button>\r\n <vdr-dropdown-menu vdrPosition=\"bottom-right\">\r\n <h4 class=\"dropdown-header\">{{ 'catalog.search-index-controls' | translate }}</h4>\r\n <ng-container *ngIf=\"pendingSearchIndexUpdates\">\r\n <button\r\n type=\"button\"\r\n class=\"run-updates-button\"\r\n vdrDropdownItem\r\n (click)=\"runPendingSearchIndexUpdates()\"\r\n [disabled]=\"!(['UpdateCatalog', 'UpdateProduct'] | hasPermission)\"\r\n >\r\n <vdr-status-badge type=\"warning\"></vdr-status-badge>\r\n {{\r\n 'catalog.run-pending-search-index-updates'\r\n | translate: {count: pendingSearchIndexUpdates}\r\n }}\r\n </button>\r\n <div class=\"dropdown-divider\"></div>\r\n </ng-container>\r\n <button\r\n type=\"button\"\r\n vdrDropdownItem\r\n (click)=\"rebuildSearchIndex()\"\r\n [disabled]=\"!(['UpdateCatalog', 'UpdateProduct'] | hasPermission)\"\r\n >\r\n {{ 'catalog.rebuild-search-index' | translate }}\r\n </button>\r\n </vdr-dropdown-menu>\r\n </vdr-dropdown>\r\n </div>\r\n <div class=\"flex wrap\">\r\n <clr-checkbox-wrapper class=\"mt2\">\r\n <input type=\"checkbox\" clrCheckbox [(ngModel)]=\"groupByProduct\" (ngModelChange)=\"refresh()\"/>\r\n <label>{{ 'catalog.group-by-product' | translate }}</label>\r\n </clr-checkbox-wrapper>\r\n <vdr-language-selector\r\n [availableLanguageCodes]=\"availableLanguages$ | async\"\r\n [currentLanguageCode]=\"contentLanguage$ | async\"\r\n (languageCodeChange)=\"setLanguage($event)\"\r\n ></vdr-language-selector>\r\n </div>\r\n </vdr-ab-left>\r\n <vdr-ab-right>\r\n <vdr-action-bar-items locationId=\"product-list\"></vdr-action-bar-items>\r\n <a\r\n class=\"btn btn-primary\"\r\n [routerLink]=\"['./create']\"\r\n *vdrIfPermissions=\"['CreateCatalog', 'CreateProduct']\"\r\n >\r\n <clr-icon shape=\"plus\"></clr-icon>\r\n <span class=\"full-label\">{{ 'catalog.create-new-product' | translate }}</span>\r\n </a>\r\n </vdr-ab-right>\r\n</vdr-action-bar>\r\n\r\n<vdr-data-table\r\n [items]=\"items$ | async\"\r\n [itemsPerPage]=\"itemsPerPage$ | async\"\r\n [totalItems]=\"totalItems$ | async\"\r\n [currentPage]=\"currentPage$ | async\"\r\n (pageChange)=\"setPageNumber($event)\"\r\n (itemsPerPageChange)=\"setItemsPerPage($event)\"\r\n>\r\n <ng-template let-result=\"item\">\r\n <td class=\"left align-middle image-col\" [class.disabled]=\"!result.enabled\">\r\n <div class=\"image-placeholder\">\r\n <img\r\n *ngIf=\"\r\n groupByProduct\r\n ? result.productAsset\r\n : result.productVariantAsset || result.productAsset as asset;\r\n else imagePlaceholder\r\n \"\r\n [src]=\"asset | assetPreview: 'tiny'\"\r\n />\r\n <ng-template #imagePlaceholder>\r\n <div class=\"placeholder\">\r\n <clr-icon shape=\"image\" size=\"48\"></clr-icon>\r\n </div>\r\n </ng-template>\r\n </div>\r\n </td>\r\n <td class=\"left align-middle\" [class.disabled]=\"!result.enabled\">\r\n {{ groupByProduct ? result.productName : result.productVariantName }}\r\n </td>\r\n <td class=\"align-middle\" [class.disabled]=\"!result.enabled\">\r\n <vdr-chip *ngIf=\"!result.enabled\">{{ 'common.disabled' | translate }}</vdr-chip>\r\n </td>\r\n <td class=\"right align-middle\" [class.disabled]=\"!result.enabled\">\r\n <vdr-table-row-action\r\n class=\"edit-button\"\r\n iconShape=\"edit\"\r\n [label]=\"'common.edit' | translate\"\r\n [linkTo]=\"['./', result.productId]\"\r\n ></vdr-table-row-action>\r\n <vdr-dropdown>\r\n <button type=\"button\" class=\"btn btn-link btn-sm\" vdrDropdownTrigger>\r\n {{ 'common.actions' | translate }}\r\n <clr-icon shape=\"caret down\"></clr-icon>\r\n </button>\r\n <vdr-dropdown-menu vdrPosition=\"bottom-right\">\r\n <button\r\n type=\"button\"\r\n class=\"delete-button\"\r\n (click)=\"deleteProduct(result.productId)\"\r\n [disabled]=\"!(['DeleteCatalog', 'DeleteProduct'] | hasPermission)\"\r\n vdrDropdownItem\r\n >\r\n <clr-icon shape=\"trash\" class=\"is-danger\"></clr-icon>\r\n {{ 'common.delete' | translate }}\r\n </button>\r\n </vdr-dropdown-menu>\r\n </vdr-dropdown>\r\n </td>\r\n </ng-template>\r\n</vdr-data-table>\r\n", styles: [".image-col{width:70px}.image-placeholder{width:50px;height:50px;background-color:var(--color-component-bg-200)}.image-placeholder img{border-radius:var(--border-radius-img)}.image-placeholder .placeholder{text-align:center;color:var(--color-grey-300)}.search-form{display:flex;align-items:center;width:100%;margin-bottom:6px}.search-input{min-width:300px}@media screen and (max-width: 768px){.search-input{min-width:100px}}.search-settings-menu{margin:0 12px}td.disabled{background-color:var(--color-component-bg-200)}.search-index-button{position:relative}.search-index-button vdr-status-badge{right:0;top:0}.run-updates-button{position:relative}.run-updates-button vdr-status-badge{left:10px;top:10px}.edit-button{margin-right:24px}\n"] }]
|
|
File without changes
|