@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
|
@@ -1,192 +0,0 @@
|
|
|
1
|
-
import { toggleMark } from 'prosemirror-commands';
|
|
2
|
-
import { blockTypeItem, Dropdown, DropdownSubmenu, icons, joinUpItem, liftItem, MenuItem, redoItem, selectParentNodeItem, undoItem, wrapItem, } from 'prosemirror-menu';
|
|
3
|
-
import { wrapInList } from 'prosemirror-schema-list';
|
|
4
|
-
import { insertImageItem } from './images';
|
|
5
|
-
import { linkItem } from './links';
|
|
6
|
-
import { canInsert, markActive } from './menu-common';
|
|
7
|
-
// Helpers to create specific types of items
|
|
8
|
-
function cmdItem(cmd, options) {
|
|
9
|
-
const passedOptions = {
|
|
10
|
-
label: options.title,
|
|
11
|
-
run: cmd,
|
|
12
|
-
};
|
|
13
|
-
// tslint:disable-next-line:forin
|
|
14
|
-
for (const prop in options) {
|
|
15
|
-
passedOptions[prop] = options[prop];
|
|
16
|
-
}
|
|
17
|
-
if ((!options.enable || options.enable === true) && !options.select) {
|
|
18
|
-
passedOptions[options.enable ? 'enable' : 'select'] = state => cmd(state);
|
|
19
|
-
}
|
|
20
|
-
return new MenuItem(passedOptions);
|
|
21
|
-
}
|
|
22
|
-
function markItem(markType, options) {
|
|
23
|
-
const passedOptions = {
|
|
24
|
-
active(state) {
|
|
25
|
-
return markActive(state, markType);
|
|
26
|
-
},
|
|
27
|
-
enable: true,
|
|
28
|
-
};
|
|
29
|
-
// tslint:disable-next-line:forin
|
|
30
|
-
for (const prop in options) {
|
|
31
|
-
passedOptions[prop] = options[prop];
|
|
32
|
-
}
|
|
33
|
-
return cmdItem(toggleMark(markType), passedOptions);
|
|
34
|
-
}
|
|
35
|
-
function wrapListItem(nodeType, options) {
|
|
36
|
-
return cmdItem(wrapInList(nodeType, options.attrs), options);
|
|
37
|
-
}
|
|
38
|
-
// :: (Schema) → Object
|
|
39
|
-
// Given a schema, look for default mark and node types in it and
|
|
40
|
-
// return an object with relevant menu items relating to those marks:
|
|
41
|
-
//
|
|
42
|
-
// **`toggleStrong`**`: MenuItem`
|
|
43
|
-
// : A menu item to toggle the [strong mark](#schema-basic.StrongMark).
|
|
44
|
-
//
|
|
45
|
-
// **`toggleEm`**`: MenuItem`
|
|
46
|
-
// : A menu item to toggle the [emphasis mark](#schema-basic.EmMark).
|
|
47
|
-
//
|
|
48
|
-
// **`toggleCode`**`: MenuItem`
|
|
49
|
-
// : A menu item to toggle the [code font mark](#schema-basic.CodeMark).
|
|
50
|
-
//
|
|
51
|
-
// **`toggleLink`**`: MenuItem`
|
|
52
|
-
// : A menu item to toggle the [link mark](#schema-basic.LinkMark).
|
|
53
|
-
//
|
|
54
|
-
// **`insertImage`**`: MenuItem`
|
|
55
|
-
// : A menu item to insert an [image](#schema-basic.Image).
|
|
56
|
-
//
|
|
57
|
-
// **`wrapBulletList`**`: MenuItem`
|
|
58
|
-
// : A menu item to wrap the selection in a [bullet list](#schema-list.BulletList).
|
|
59
|
-
//
|
|
60
|
-
// **`wrapOrderedList`**`: MenuItem`
|
|
61
|
-
// : A menu item to wrap the selection in an [ordered list](#schema-list.OrderedList).
|
|
62
|
-
//
|
|
63
|
-
// **`wrapBlockQuote`**`: MenuItem`
|
|
64
|
-
// : A menu item to wrap the selection in a [block quote](#schema-basic.BlockQuote).
|
|
65
|
-
//
|
|
66
|
-
// **`makeParagraph`**`: MenuItem`
|
|
67
|
-
// : A menu item to set the current textblock to be a normal
|
|
68
|
-
// [paragraph](#schema-basic.Paragraph).
|
|
69
|
-
//
|
|
70
|
-
// **`makeCodeBlock`**`: MenuItem`
|
|
71
|
-
// : A menu item to set the current textblock to be a
|
|
72
|
-
// [code block](#schema-basic.CodeBlock).
|
|
73
|
-
//
|
|
74
|
-
// **`makeHead[N]`**`: MenuItem`
|
|
75
|
-
// : Where _N_ is 1 to 6. Menu items to set the current textblock to
|
|
76
|
-
// be a [heading](#schema-basic.Heading) of level _N_.
|
|
77
|
-
//
|
|
78
|
-
// **`insertHorizontalRule`**`: MenuItem`
|
|
79
|
-
// : A menu item to insert a horizontal rule.
|
|
80
|
-
//
|
|
81
|
-
// The return value also contains some prefabricated menu elements and
|
|
82
|
-
// menus, that you can use instead of composing your own menu from
|
|
83
|
-
// scratch:
|
|
84
|
-
//
|
|
85
|
-
// **`insertMenu`**`: Dropdown`
|
|
86
|
-
// : A dropdown containing the `insertImage` and
|
|
87
|
-
// `insertHorizontalRule` items.
|
|
88
|
-
//
|
|
89
|
-
// **`typeMenu`**`: Dropdown`
|
|
90
|
-
// : A dropdown containing the items for making the current
|
|
91
|
-
// textblock a paragraph, code block, or heading.
|
|
92
|
-
//
|
|
93
|
-
// **`fullMenu`**`: [[MenuElement]]`
|
|
94
|
-
// : An array of arrays of menu elements for use as the full menu
|
|
95
|
-
// for, for example the [menu bar](https://github.com/prosemirror/prosemirror-menu#user-content-menubar).
|
|
96
|
-
export function buildMenuItems(schema, modalService) {
|
|
97
|
-
const r = {};
|
|
98
|
-
let type;
|
|
99
|
-
// tslint:disable:no-conditional-assignment
|
|
100
|
-
if ((type = schema.marks.strong)) {
|
|
101
|
-
r.toggleStrong = markItem(type, { title: 'Toggle strong style', icon: icons.strong });
|
|
102
|
-
}
|
|
103
|
-
if ((type = schema.marks.em)) {
|
|
104
|
-
r.toggleEm = markItem(type, { title: 'Toggle emphasis', icon: icons.em });
|
|
105
|
-
}
|
|
106
|
-
if ((type = schema.marks.code)) {
|
|
107
|
-
r.toggleCode = markItem(type, { title: 'Toggle code font', icon: icons.code });
|
|
108
|
-
}
|
|
109
|
-
if ((type = schema.marks.link)) {
|
|
110
|
-
r.toggleLink = linkItem(type, modalService);
|
|
111
|
-
}
|
|
112
|
-
if ((type = schema.nodes.image)) {
|
|
113
|
-
r.insertImage = insertImageItem(type, modalService);
|
|
114
|
-
}
|
|
115
|
-
if ((type = schema.nodes.bullet_list)) {
|
|
116
|
-
r.wrapBulletList = wrapListItem(type, {
|
|
117
|
-
title: 'Wrap in bullet list',
|
|
118
|
-
icon: icons.bulletList,
|
|
119
|
-
});
|
|
120
|
-
}
|
|
121
|
-
if ((type = schema.nodes.ordered_list)) {
|
|
122
|
-
r.wrapOrderedList = wrapListItem(type, {
|
|
123
|
-
title: 'Wrap in ordered list',
|
|
124
|
-
icon: icons.orderedList,
|
|
125
|
-
});
|
|
126
|
-
}
|
|
127
|
-
if ((type = schema.nodes.blockquote)) {
|
|
128
|
-
r.wrapBlockQuote = wrapItem(type, {
|
|
129
|
-
title: 'Wrap in block quote',
|
|
130
|
-
icon: icons.blockquote,
|
|
131
|
-
});
|
|
132
|
-
}
|
|
133
|
-
if ((type = schema.nodes.paragraph)) {
|
|
134
|
-
r.makeParagraph = blockTypeItem(type, {
|
|
135
|
-
title: 'Change to paragraph',
|
|
136
|
-
label: 'Plain',
|
|
137
|
-
});
|
|
138
|
-
}
|
|
139
|
-
if ((type = schema.nodes.code_block)) {
|
|
140
|
-
r.makeCodeBlock = blockTypeItem(type, {
|
|
141
|
-
title: 'Change to code block',
|
|
142
|
-
label: 'Code',
|
|
143
|
-
});
|
|
144
|
-
}
|
|
145
|
-
if ((type = schema.nodes.heading)) {
|
|
146
|
-
for (let i = 1; i <= 10; i++) {
|
|
147
|
-
r['makeHead' + i] = blockTypeItem(type, {
|
|
148
|
-
title: 'Change to heading ' + i,
|
|
149
|
-
label: 'Level ' + i,
|
|
150
|
-
attrs: { level: i },
|
|
151
|
-
});
|
|
152
|
-
}
|
|
153
|
-
}
|
|
154
|
-
if ((type = schema.nodes.horizontal_rule)) {
|
|
155
|
-
const hr = type;
|
|
156
|
-
r.insertHorizontalRule = new MenuItem({
|
|
157
|
-
title: 'Insert horizontal rule',
|
|
158
|
-
label: 'Horizontal rule',
|
|
159
|
-
class: '',
|
|
160
|
-
css: '',
|
|
161
|
-
enable(state) {
|
|
162
|
-
return canInsert(state, hr);
|
|
163
|
-
},
|
|
164
|
-
run(state, dispatch) {
|
|
165
|
-
dispatch(state.tr.replaceSelectionWith(hr.create()));
|
|
166
|
-
},
|
|
167
|
-
});
|
|
168
|
-
}
|
|
169
|
-
const cut = (arr) => arr.filter(x => x);
|
|
170
|
-
r.insertMenu = new Dropdown(cut([r.insertImage, r.insertHorizontalRule]), { label: 'Insert' });
|
|
171
|
-
r.typeMenu = new Dropdown(cut([
|
|
172
|
-
r.makeParagraph,
|
|
173
|
-
r.makeCodeBlock,
|
|
174
|
-
r.makeHead1 &&
|
|
175
|
-
new DropdownSubmenu(cut([r.makeHead1, r.makeHead2, r.makeHead3, r.makeHead4, r.makeHead5, r.makeHead6]), { label: 'Heading' }),
|
|
176
|
-
]), { label: 'Type...' });
|
|
177
|
-
const inlineMenu = cut([r.toggleStrong, r.toggleEm, r.toggleLink]);
|
|
178
|
-
r.inlineMenu = [inlineMenu];
|
|
179
|
-
r.blockMenu = [
|
|
180
|
-
cut([
|
|
181
|
-
r.wrapBulletList,
|
|
182
|
-
r.wrapOrderedList,
|
|
183
|
-
r.wrapBlockQuote,
|
|
184
|
-
joinUpItem,
|
|
185
|
-
liftItem,
|
|
186
|
-
selectParentNodeItem,
|
|
187
|
-
]),
|
|
188
|
-
];
|
|
189
|
-
r.fullMenu = [inlineMenu].concat([[r.insertMenu, r.typeMenu]], [[undoItem, redoItem]], r.blockMenu);
|
|
190
|
-
return r;
|
|
191
|
-
}
|
|
192
|
-
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoibWVudS5qcyIsInNvdXJjZVJvb3QiOiIiLCJzb3VyY2VzIjpbIi4uLy4uLy4uLy4uLy4uLy4uLy4uLy4uL3NyYy9saWIvY29yZS9zcmMvc2hhcmVkL2NvbXBvbmVudHMvcmljaC10ZXh0LWVkaXRvci9wcm9zZW1pcnJvci9tZW51L21lbnUudHMiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6IkFBQUEsT0FBTyxFQUFFLFVBQVUsRUFBRSxNQUFNLHNCQUFzQixDQUFDO0FBQ2xELE9BQU8sRUFDSCxhQUFhLEVBQ2IsUUFBUSxFQUNSLGVBQWUsRUFDZixLQUFLLEVBQ0wsVUFBVSxFQUNWLFFBQVEsRUFDUixRQUFRLEVBQ1IsUUFBUSxFQUNSLG9CQUFvQixFQUNwQixRQUFRLEVBQ1IsUUFBUSxHQUNYLE1BQU0sa0JBQWtCLENBQUM7QUFFMUIsT0FBTyxFQUFFLFVBQVUsRUFBRSxNQUFNLHlCQUF5QixDQUFDO0FBS3JELE9BQU8sRUFBRSxlQUFlLEVBQUUsTUFBTSxVQUFVLENBQUM7QUFDM0MsT0FBTyxFQUFFLFFBQVEsRUFBRSxNQUFNLFNBQVMsQ0FBQztBQUNuQyxPQUFPLEVBQUUsU0FBUyxFQUFFLFVBQVUsRUFBRSxNQUFNLGVBQWUsQ0FBQztBQUV0RCw0Q0FBNEM7QUFF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ZXcgTWVudUl0ZW0oe1xyXG4gICAgICAgICAgICB0aXRsZTogJ0luc2VydCBob3Jpem9udGFsIHJ1bGUnLFxyXG4gICAgICAgICAgICBsYWJlbDogJ0hvcml6b250YWwgcnVsZScsXHJcbiAgICAgICAgICAgIGNsYXNzOiAnJyxcclxuICAgICAgICAgICAgY3NzOiAnJyxcclxuICAgICAgICAgICAgZW5hYmxlKHN0YXRlKSB7XHJcbiAgICAgICAgICAgICAgICByZXR1cm4gY2FuSW5zZXJ0KHN0YXRlLCBocik7XHJcbiAgICAgICAgICAgIH0sXHJcbiAgICAgICAgICAgIHJ1bihzdGF0ZTogRWRpdG9yU3RhdGUsIGRpc3BhdGNoKSB7XHJcbiAgICAgICAgICAgICAgICBkaXNwYXRjaChzdGF0ZS50ci5yZXBsYWNlU2VsZWN0aW9uV2l0aChoci5jcmVhdGUoKSkpO1xyXG4gICAgICAgICAgICB9LFxyXG4gICAgICAgIH0pO1xyXG4gICAgfVxyXG5cclxuICAgIGNvbnN0IGN1dCA9IDxUPihhcnI6IFRbXSk6IFRbXSA9PiBhcnIuZmlsdGVyKHggPT4geCk7XHJcbiAgICByLmluc2VydE1lbnUgPSBuZXcgRHJvcGRvd24oY3V0KFtyLmluc2VydEltYWdlLCByLmluc2VydEhvcml6b250YWxSdWxlXSksIHsgbGFiZWw6ICdJbnNlcnQnIH0pO1xyXG4gICAgci50eXBlTWVudSA9IG5ldyBEcm9wZG93bihcclxuICAgICAgICBjdXQoW1xyXG4gICAgICAgICAgICByLm1ha2VQYXJhZ3JhcGgsXHJcbiAgICAgICAgICAgIHIubWFrZUNvZGVCbG9jayxcclxuICAgICAgICAgICAgci5tYWtlSGVhZDEgJiZcclxuICAgICAgICAgICAgICAgIG5ldyBEcm9wZG93blN1Ym1lbnUoXHJcbiAgICAgICAgICAgICAgICAgICAgY3V0KFtyLm1ha2VIZWFkMSwgci5tYWtlSGVhZDIsIHIubWFrZUhlYWQzLCByLm1ha2VIZWFkNCwgci5tYWtlSGVhZDUsIHIubWFrZUhlYWQ2XSksXHJcbiAgICAgICAgICAgICAgICAgICAgeyBsYWJlbDogJ0hlYWRpbmcnIH0sXHJcbiAgICAgICAgICAgICAgICApLFxyXG4gICAgICAgIF0pLFxyXG4gICAgICAgIHsgbGFiZWw6ICdUeXBlLi4uJyB9LFxyXG4gICAgKTtcclxuXHJcbiAgICBjb25zdCBpbmxpbmVNZW51ID0gY3V0KFtyLnRvZ2dsZVN0cm9uZywgci50b2dnbGVFbSwgci50b2dnbGVMaW5rXSk7XHJcbiAgICByLmlubGluZU1lbnUgPSBbaW5saW5lTWVudV07XHJcbiAgICByLmJsb2NrTWVudSA9IFtcclxuICAgICAgICBjdXQoW1xyXG4gICAgICAgICAgICByLndyYXBCdWxsZXRMaXN0LFxyXG4gICAgICAgICAgICByLndyYXBPcmRlcmVkTGlzdCxcclxuICAgICAgICAgICAgci53cmFwQmxvY2tRdW90ZSxcclxuICAgICAgICAgICAgam9pblVwSXRlbSxcclxuICAgICAgICAgICAgbGlmdEl0ZW0sXHJcbiAgICAgICAgICAgIHNlbGVjdFBhcmVudE5vZGVJdGVtLFxyXG4gICAgICAgIF0pLFxyXG4gICAgXTtcclxuICAgIHIuZnVsbE1lbnUgPSBbaW5saW5lTWVudV0uY29uY2F0KFtbci5pbnNlcnRNZW51LCByLnR5cGVNZW51XV0sIFtbdW5kb0l0ZW0sIHJlZG9JdGVtXV0sIHIuYmxvY2tNZW51KTtcclxuXHJcbiAgICByZXR1cm4gcjtcclxufVxyXG4iXX0=
|
|
@@ -1,112 +0,0 @@
|
|
|
1
|
-
import { Injectable } from '@angular/core';
|
|
2
|
-
import { baseKeymap } from 'prosemirror-commands';
|
|
3
|
-
import { dropCursor } from 'prosemirror-dropcursor';
|
|
4
|
-
import { gapCursor } from 'prosemirror-gapcursor';
|
|
5
|
-
import { history } from 'prosemirror-history';
|
|
6
|
-
import { keymap } from 'prosemirror-keymap';
|
|
7
|
-
import { menuBar } from 'prosemirror-menu';
|
|
8
|
-
import { DOMParser, DOMSerializer, Schema } from 'prosemirror-model';
|
|
9
|
-
import { schema } from 'prosemirror-schema-basic';
|
|
10
|
-
import { addListNodes } from 'prosemirror-schema-list';
|
|
11
|
-
import { EditorState, Plugin } from 'prosemirror-state';
|
|
12
|
-
import { EditorView } from 'prosemirror-view';
|
|
13
|
-
import { buildInputRules } from './inputrules';
|
|
14
|
-
import { buildKeymap } from './keymap';
|
|
15
|
-
import { buildMenuItems } from './menu/menu';
|
|
16
|
-
import { linkSelectPlugin } from './plugins/link-select-plugin';
|
|
17
|
-
import * as i0 from "@angular/core";
|
|
18
|
-
import * as i1 from "../../../../providers/modal/modal.service";
|
|
19
|
-
export class ProsemirrorService {
|
|
20
|
-
constructor(modalService) {
|
|
21
|
-
this.modalService = modalService;
|
|
22
|
-
// Mix the nodes from prosemirror-schema-list into the basic schema to
|
|
23
|
-
// create a schema with list support.
|
|
24
|
-
this.mySchema = new Schema({
|
|
25
|
-
nodes: addListNodes(schema.spec.nodes, 'paragraph block*', 'block'),
|
|
26
|
-
marks: schema.spec.marks,
|
|
27
|
-
});
|
|
28
|
-
this.enabled = true;
|
|
29
|
-
}
|
|
30
|
-
createEditorView(options) {
|
|
31
|
-
this.editorView = new EditorView(options.element, {
|
|
32
|
-
state: this.getStateFromText(''),
|
|
33
|
-
dispatchTransaction: tr => {
|
|
34
|
-
if (!this.enabled) {
|
|
35
|
-
return;
|
|
36
|
-
}
|
|
37
|
-
this.editorView.updateState(this.editorView.state.apply(tr));
|
|
38
|
-
if (tr.docChanged) {
|
|
39
|
-
const content = this.getTextFromState(this.editorView.state);
|
|
40
|
-
options.onTextInput(content);
|
|
41
|
-
}
|
|
42
|
-
},
|
|
43
|
-
editable: () => options.isReadOnly(),
|
|
44
|
-
});
|
|
45
|
-
}
|
|
46
|
-
update(text) {
|
|
47
|
-
if (this.editorView) {
|
|
48
|
-
const state = this.getStateFromText(text);
|
|
49
|
-
if (document.body.contains(this.editorView.dom)) {
|
|
50
|
-
this.editorView.updateState(state);
|
|
51
|
-
}
|
|
52
|
-
}
|
|
53
|
-
}
|
|
54
|
-
destroy() {
|
|
55
|
-
if (this.editorView) {
|
|
56
|
-
this.editorView.destroy();
|
|
57
|
-
}
|
|
58
|
-
}
|
|
59
|
-
setEnabled(enabled) {
|
|
60
|
-
if (this.editorView) {
|
|
61
|
-
this.enabled = enabled;
|
|
62
|
-
// Updating the state causes ProseMirror to check the
|
|
63
|
-
// `editable()` function from the contructor config object
|
|
64
|
-
// newly.
|
|
65
|
-
this.editorView.updateState(this.editorView.state);
|
|
66
|
-
}
|
|
67
|
-
}
|
|
68
|
-
getStateFromText(text) {
|
|
69
|
-
const div = document.createElement('div');
|
|
70
|
-
div.innerHTML = text ?? '';
|
|
71
|
-
return EditorState.create({
|
|
72
|
-
doc: DOMParser.fromSchema(this.mySchema).parse(div),
|
|
73
|
-
plugins: this.configurePlugins({ schema: this.mySchema, floatingMenu: false }),
|
|
74
|
-
});
|
|
75
|
-
}
|
|
76
|
-
getTextFromState(state) {
|
|
77
|
-
const div = document.createElement('div');
|
|
78
|
-
const fragment = DOMSerializer.fromSchema(this.mySchema).serializeFragment(state.doc.content);
|
|
79
|
-
div.appendChild(fragment);
|
|
80
|
-
return div.innerHTML;
|
|
81
|
-
}
|
|
82
|
-
configurePlugins(options) {
|
|
83
|
-
const plugins = [
|
|
84
|
-
buildInputRules(options.schema),
|
|
85
|
-
keymap(buildKeymap(options.schema, options.mapKeys)),
|
|
86
|
-
keymap(baseKeymap),
|
|
87
|
-
dropCursor(),
|
|
88
|
-
gapCursor(),
|
|
89
|
-
linkSelectPlugin,
|
|
90
|
-
];
|
|
91
|
-
if (options.menuBar !== false) {
|
|
92
|
-
plugins.push(menuBar({
|
|
93
|
-
floating: options.floatingMenu !== false,
|
|
94
|
-
content: options.menuContent || buildMenuItems(options.schema, this.modalService).fullMenu,
|
|
95
|
-
}));
|
|
96
|
-
}
|
|
97
|
-
if (options.history !== false) {
|
|
98
|
-
plugins.push(history());
|
|
99
|
-
}
|
|
100
|
-
return plugins.concat(new Plugin({
|
|
101
|
-
props: {
|
|
102
|
-
attributes: { class: 'vdr-prosemirror' },
|
|
103
|
-
},
|
|
104
|
-
}));
|
|
105
|
-
}
|
|
106
|
-
}
|
|
107
|
-
ProsemirrorService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.2.3", ngImport: i0, type: ProsemirrorService, deps: [{ token: i1.ModalService }], target: i0.ɵɵFactoryTarget.Injectable });
|
|
108
|
-
ProsemirrorService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "13.2.3", ngImport: i0, type: ProsemirrorService });
|
|
109
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.2.3", ngImport: i0, type: ProsemirrorService, decorators: [{
|
|
110
|
-
type: Injectable
|
|
111
|
-
}], ctorParameters: function () { return [{ type: i1.ModalService }]; } });
|
|
112
|
-
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoicHJvc2VtaXJyb3Iuc2VydmljZS5qcyIsInNvdXJjZVJvb3QiOiIiLCJzb3VyY2VzIjpbIi4uLy4uLy4uLy4uLy4uLy4uLy4uL3NyYy9saWIvY29yZS9zcmMvc2hhcmVkL2NvbXBvbmVudHMvcmljaC10ZXh0LWVkaXRvci9wcm9zZW1pcnJvci9wcm9zZW1pcnJvci5zZXJ2aWNlLnRzIl0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiJBQUFBLE9BQU8sRUFBRSxVQUFVLEVBQUUsTUFBTSxlQUFlLENBQUM7QUFDM0MsT0FBTyxFQUFFLFVBQVUsRUFBRSxNQUFNLHNCQUFzQixDQUFDO0FBQ2xELE9BQU8sRUFBRSxVQUFVLEVBQUUsTUFBTSx3QkFBd0IsQ0FBQztBQUNwRCxPQUFPLEVBQUUsU0FBUyxFQUFFLE1BQU0sdUJBQXVCLENBQUM7QUFDbEQsT0FBTyxFQUFFLE9BQU8sRU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k7XHJcbiAgICAgICAgICAgICAgICB9XHJcbiAgICAgICAgICAgIH0sXHJcbiAgICAgICAgICAgIGVkaXRhYmxlOiAoKSA9PiBvcHRpb25zLmlzUmVhZE9ubHkoKSxcclxuICAgICAgICB9KTtcclxuICAgIH1cclxuXHJcbiAgICB1cGRhdGUodGV4dDogc3RyaW5nKSB7XHJcbiAgICAgICAgaWYgKHRoaXMuZWRpdG9yVmlldykge1xyXG4gICAgICAgICAgICBjb25zdCBzdGF0ZSA9IHRoaXMuZ2V0U3RhdGVGcm9tVGV4dCh0ZXh0KTtcclxuICAgICAgICAgICAgaWYgKGRvY3VtZW50LmJvZHkuY29udGFpbnModGhpcy5lZGl0b3JWaWV3LmRvbSkpIHtcclxuICAgICAgICAgICAgICAgIHRoaXMuZWRpdG9yVmlldy51cGRhdGVTdGF0ZShzdGF0ZSk7XHJcbiAgICAgICAgICAgIH1cclxuICAgICAgICB9XHJcbiAgICB9XHJcblxyXG4gICAgZGVzdHJveSgpIHtcclxuICAgICAgICBpZiAodGhpcy5lZGl0b3JWaWV3KSB7XHJcbiAgICAgICAgICAgIHRoaXMuZWRpdG9yVmlldy5kZXN0cm95KCk7XHJcbiAgICAgICAgfVxyXG4gICAgfVxyXG5cclxuICAgIHNldEVuYWJsZWQoZW5hYmxlZDogYm9vbGVhbikge1xyXG4gICAgICAgIGlmICh0aGlzLmVkaXRvclZpZXcpIHtcclxuICAgICAgICAgICAgdGhpcy5lbmFibGVkID0gZW5hYmxlZDtcclxuICAgICAgICAgICAgLy8gVXBkYXRpbmcgdGhlIHN0YXRlIGNhdXNlcyBQcm9zZU1pcnJvciB0byBjaGVjayB0aGVcclxuICAgICAgICAgICAgLy8gYGVkaXRhYmxlKClgIGZ1bmN0aW9uIGZyb20gdGhlIGNvbnRydWN0b3IgY29uZmlnIG9iamVjdFxyXG4gICAgICAgICAgICAvLyBuZXdseS5cclxuICAgICAgICAgICAgdGhpcy5lZGl0b3JWaWV3LnVwZGF0ZVN0YXRlKHR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ICAgICBjb25zdCBwbHVnaW5zID0gW1xyXG4gICAgICAgICAgICBidWlsZElucHV0UnVsZXMob3B0aW9ucy5zY2hlbWEpLFxyXG4gICAgICAgICAgICBrZXltYXAoYnVpbGRLZXltYXAob3B0aW9ucy5zY2hlbWEsIG9wdGlvbnMubWFwS2V5cykpLFxyXG4gICAgICAgICAgICBrZXltYXAoYmFzZUtleW1hcCksXHJcbiAgICAgICAgICAgIGRyb3BDdXJzb3IoKSxcclxuICAgICAgICAgICAgZ2FwQ3Vyc29yKCksXHJcbiAgICAgICAgICAgIGxpbmtTZWxlY3RQbHVnaW4sXHJcbiAgICAgICAgXTtcclxuICAgICAgICBpZiAob3B0aW9ucy5tZW51QmFyICE9PSBmYWxzZSkge1xyXG4gICAgICAgICAgICBwbHVnaW5zLnB1c2goXHJcbiAgICAgICAgICAgICAgICBtZW51QmFyKHtcclxuICAgICAgICAgICAgICAgICAgICBmbG9hdGluZzogb3B0aW9ucy5mbG9hdGluZ01lbnUgIT09IGZhbHNlLFxyXG4gICAgICAgICAgICAgICAgICAgIGNvbnRlbnQ6XHJcbiAgICAgICAgICAgICAgICAgICAgICAgIG9wdGlvbnMubWVudUNvbnRlbnQgfHwgYnVpbGRNZW51SXRlbXMob3B0aW9ucy5zY2hlbWEsIHRoaXMubW9kYWxTZXJ2aWNlKS5mdWxsTWVudSxcclxuICAgICAgICAgICAgICAgIH0pLFxyXG4gICAgICAgICAgICApO1xyXG4gICAgICAgIH1cclxuICAgICAgICBpZiAob3B0aW9ucy5oaXN0b3J5ICE9PSBmYWxzZSkge1xyXG4gICAgICAgICAgICBwbHVnaW5zLnB1c2goaGlzdG9yeSgpKTtcclxuICAgICAgICB9XHJcblxyXG4gICAgICAgIHJldHVybiBwbHVnaW5zLmNvbmNhdChcclxuICAgICAgICAgICAgbmV3IFBsdWdpbih7XHJcbiAgICAgICAgICAgICAgICBwcm9wczoge1xyXG4gICAgICAgICAgICAgICAgICAgIGF0dHJpYnV0ZXM6IHsgY2xhc3M6ICd2ZHItcHJvc2VtaXJyb3InIH0sXHJcbiAgICAgICAgICAgICAgICB9LFxyXG4gICAgICAgICAgICB9KSxcclxuICAgICAgICApO1xyXG4gICAgfVxyXG59XHJcbiJdfQ==
|
|
@@ -1,93 +0,0 @@
|
|
|
1
|
-
import { ChangeDetectionStrategy, Component, HostBinding, Input, ViewChild, } from '@angular/core';
|
|
2
|
-
import { NG_VALUE_ACCESSOR } from '@angular/forms';
|
|
3
|
-
import { ProsemirrorService } from './prosemirror/prosemirror.service';
|
|
4
|
-
import * as i0 from "@angular/core";
|
|
5
|
-
import * as i1 from "./prosemirror/prosemirror.service";
|
|
6
|
-
import * as i2 from "@clr/angular";
|
|
7
|
-
/**
|
|
8
|
-
* @description
|
|
9
|
-
* A rich text (HTML) editor based on Prosemirror (https://prosemirror.net/)
|
|
10
|
-
*
|
|
11
|
-
* @example
|
|
12
|
-
* ```HTML
|
|
13
|
-
* <vdr-rich-text-editor
|
|
14
|
-
* [(ngModel)]="description"
|
|
15
|
-
* label="Description"
|
|
16
|
-
* ></vdr-rich-text-editor>
|
|
17
|
-
* ```
|
|
18
|
-
*
|
|
19
|
-
* @docsCategory components
|
|
20
|
-
*/
|
|
21
|
-
export class RichTextEditorComponent {
|
|
22
|
-
constructor(changeDetector, prosemirrorService) {
|
|
23
|
-
this.changeDetector = changeDetector;
|
|
24
|
-
this.prosemirrorService = prosemirrorService;
|
|
25
|
-
this._readonly = false;
|
|
26
|
-
}
|
|
27
|
-
set readonly(value) {
|
|
28
|
-
this._readonly = !!value;
|
|
29
|
-
this.prosemirrorService.setEnabled(!this._readonly);
|
|
30
|
-
}
|
|
31
|
-
ngAfterViewInit() {
|
|
32
|
-
this.prosemirrorService.createEditorView({
|
|
33
|
-
element: this.editorEl.nativeElement,
|
|
34
|
-
onTextInput: content => {
|
|
35
|
-
this.onChange(content);
|
|
36
|
-
this.changeDetector.markForCheck();
|
|
37
|
-
},
|
|
38
|
-
isReadOnly: () => !this._readonly,
|
|
39
|
-
});
|
|
40
|
-
if (this.value) {
|
|
41
|
-
this.prosemirrorService.update(this.value);
|
|
42
|
-
}
|
|
43
|
-
}
|
|
44
|
-
ngOnDestroy() {
|
|
45
|
-
this.prosemirrorService.destroy();
|
|
46
|
-
}
|
|
47
|
-
registerOnChange(fn) {
|
|
48
|
-
this.onChange = fn;
|
|
49
|
-
}
|
|
50
|
-
registerOnTouched(fn) {
|
|
51
|
-
this.onTouch = fn;
|
|
52
|
-
}
|
|
53
|
-
setDisabledState(isDisabled) {
|
|
54
|
-
this.prosemirrorService.setEnabled(!isDisabled);
|
|
55
|
-
}
|
|
56
|
-
writeValue(value) {
|
|
57
|
-
this.value = value;
|
|
58
|
-
if (this.prosemirrorService) {
|
|
59
|
-
this.prosemirrorService.update(value);
|
|
60
|
-
}
|
|
61
|
-
}
|
|
62
|
-
}
|
|
63
|
-
RichTextEditorComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.2.3", ngImport: i0, type: RichTextEditorComponent, deps: [{ token: i0.ChangeDetectorRef }, { token: i1.ProsemirrorService }], target: i0.ɵɵFactoryTarget.Component });
|
|
64
|
-
RichTextEditorComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "13.2.3", type: RichTextEditorComponent, selector: "vdr-rich-text-editor", inputs: { label: "label", readonly: "readonly" }, host: { properties: { "class.readonly": "this._readonly" } }, providers: [
|
|
65
|
-
{
|
|
66
|
-
provide: NG_VALUE_ACCESSOR,
|
|
67
|
-
useExisting: RichTextEditorComponent,
|
|
68
|
-
multi: true,
|
|
69
|
-
},
|
|
70
|
-
ProsemirrorService,
|
|
71
|
-
], viewQueries: [{ propertyName: "editorEl", first: true, predicate: ["editor"], descendants: true, static: true }], ngImport: i0, template: "<label class=\"clr-control-label\">{{ label }}</label>\r\n<div #editor></div>\r\n", styles: ["@charset \"UTF-8\";::ng-deep .ProseMirror{position:relative}::ng-deep .ProseMirror{word-wrap:break-word;white-space:pre-wrap;-webkit-font-variant-ligatures:none;font-feature-settings:none;font-variant-ligatures:none}::ng-deep .ProseMirror pre{white-space:pre-wrap}::ng-deep .ProseMirror li{position:relative}::ng-deep .ProseMirror-hideselection *::selection{background:transparent}::ng-deep .ProseMirror-hideselection *::-moz-selection{background:transparent}::ng-deep .ProseMirror-hideselection{caret-color:transparent}::ng-deep .ProseMirror-selectednode{outline:2px solid var(--color-primary-500)}::ng-deep li.ProseMirror-selectednode{outline:none}::ng-deep li.ProseMirror-selectednode:after{content:\"\";position:absolute;left:-32px;right:-2px;top:-2px;bottom:-2px;border:2px solid var(--color-primary-500);pointer-events:none}::ng-deep .ProseMirror-textblock-dropdown{min-width:3em}::ng-deep .ProseMirror-menu{margin:0 -4px;line-height:1}::ng-deep .ProseMirror-tooltip .ProseMirror-menu{width:-moz-fit-content;width:fit-content;white-space:pre}::ng-deep .ProseMirror-menuitem{margin-right:3px;display:inline-block}::ng-deep .ProseMirror-menuseparator{border-right:1px solid var(--color-component-border-200);margin-right:3px}::ng-deep .ProseMirror-menu-dropdown,::ng-deep .ProseMirror-menu-dropdown-menu{font-size:90%;white-space:nowrap}::ng-deep .ProseMirror-menu-dropdown{vertical-align:1px;cursor:pointer;position:relative;padding-right:15px}::ng-deep .ProseMirror-menu-dropdown-wrap{padding:1px 0 1px 4px;display:inline-block;position:relative}::ng-deep .ProseMirror-menu-dropdown:after{content:\"\";border-left:4px solid transparent;border-right:4px solid transparent;border-top:4px solid currentColor;opacity:.6;position:absolute;right:4px;top:calc(50% - 2px)}::ng-deep .ProseMirror-menu-dropdown-menu,::ng-deep .ProseMirror-menu-submenu{position:absolute;background:white;color:var(--color-grey-600);border:1px solid var(--color-component-border-200);padding:2px}::ng-deep .ProseMirror-menu-dropdown-menu{z-index:15;min-width:6em}::ng-deep .ProseMirror-menu-dropdown-item{cursor:pointer;padding:2px 8px 2px 4px}::ng-deep .ProseMirror-menu-dropdown-item:hover{background:var(--color-component-bg-100)}::ng-deep .ProseMirror-menu-submenu-wrap{position:relative;margin-right:-4px}::ng-deep .ProseMirror-menu-submenu-label:after{content:\"\";border-top:4px solid transparent;border-bottom:4px solid transparent;border-left:4px solid currentColor;opacity:.6;position:absolute;right:4px;top:calc(50% - 4px)}::ng-deep .ProseMirror-menu-submenu{display:none;min-width:4em;left:100%;top:-3px}::ng-deep .ProseMirror-menu-active{background:var(--color-component-bg-100);border-radius:4px}::ng-deep .ProseMirror-menu-disabled{opacity:.3}::ng-deep .ProseMirror-menu-submenu-wrap:hover .ProseMirror-menu-submenu,::ng-deep .ProseMirror-menu-submenu-wrap-active .ProseMirror-menu-submenu{display:block}::ng-deep .ProseMirror-menubar{border-top-left-radius:inherit;border-top-right-radius:inherit;position:relative;min-height:1em;color:var(--color-grey-600);padding:1px 6px;top:0;left:0;right:0;background:var(--color-component-bg-100);z-index:10;box-sizing:border-box;overflow:visible}::ng-deep .ProseMirror-icon{display:inline-block;line-height:.8;vertical-align:-2px;padding:2px 8px;cursor:pointer}::ng-deep .ProseMirror-menu-disabled.ProseMirror-icon{cursor:default}::ng-deep .ProseMirror-icon svg{fill:currentColor;height:1em}::ng-deep .ProseMirror-icon span{vertical-align:text-top}::ng-deep .ProseMirror-gapcursor{display:none;pointer-events:none;position:absolute}::ng-deep .ProseMirror-gapcursor:after{content:\"\";display:block;position:absolute;top:-2px;width:20px;border-top:1px solid black;animation:ProseMirror-cursor-blink 1.1s steps(2,start) infinite}@keyframes ProseMirror-cursor-blink{to{visibility:hidden}}::ng-deep .ProseMirror-focused .ProseMirror-gapcursor{display:block}::ng-deep .ProseMirror ul,::ng-deep .ProseMirror ol{padding-left:30px;list-style-position:initial}::ng-deep .ProseMirror blockquote{padding-left:1em;border-left:3px solid var(--color-grey-100);margin-left:0;margin-right:0}::ng-deep .ProseMirror-prompt{background:white;padding:5px 10px 5px 15px;border:1px solid silver;position:fixed;border-radius:3px;z-index:11;box-shadow:-.5px 2px 5px #0003}::ng-deep .ProseMirror-prompt h5{margin:0;font-weight:400;font-size:100%;color:var(--color-grey-500)}::ng-deep .ProseMirror-prompt input[type=text],::ng-deep .ProseMirror-prompt textarea{background:var(--color-component-bg-100);border:none;outline:none}::ng-deep .ProseMirror-prompt input[type=text]{padding:0 4px}::ng-deep .ProseMirror-prompt-close{position:absolute;left:2px;top:1px;color:var(--color-grey-400);border:none;background:transparent;padding:0}::ng-deep .ProseMirror-prompt-close:after{content:\"\\e2\\153\\2022\";font-size:12px}::ng-deep .ProseMirror-invalid{background:var(--color-warning-200);border:1px solid var(--color-warning-300);border-radius:4px;padding:5px 10px;position:absolute;min-width:10em}::ng-deep .ProseMirror-prompt-buttons{margin-top:5px;display:none}::ng-deep #editor,::ng-deep .editor{background:var(--color-form-input-bg);color:#000;background-clip:padding-box;border-radius:4px;border:2px solid rgba(0,0,0,.2);padding:5px 0;margin-bottom:23px}::ng-deep .ProseMirror p:first-child,::ng-deep .ProseMirror h1:first-child,::ng-deep .ProseMirror h2:first-child,::ng-deep .ProseMirror h3:first-child,::ng-deep .ProseMirror h4:first-child,::ng-deep .ProseMirror h5:first-child,::ng-deep .ProseMirror h6:first-child{margin-top:10px}::ng-deep .ProseMirror{padding:4px 8px 4px 14px;line-height:1.2;outline:none}::ng-deep .ProseMirror p{margin-bottom:.5rem;color:var(--color-grey-800)!important}:host{display:block;max-width:710px;margin-bottom:.5rem}:host.readonly ::ng-deep .ProseMirror-menubar{display:none}::ng-deep .ProseMirror-menubar{position:sticky;top:24px;margin-top:6px;border:1px solid var(--color-component-border-200);border-bottom:none;background-color:var(--color-component-bg-200);color:var(--color-icon-button);border-radius:var(--border-radius-input) var(--border-radius-input) 0 0;padding:6px 12px;display:flex;flex-wrap:wrap}::ng-deep .vdr-prosemirror{background:var(--color-form-input-bg);min-height:128px;min-width:200px;border:1px solid var(--color-component-border-200);border-radius:0 0 var(--border-radius-input) var(--border-radius-input);transition:border-color .2s;overflow:auto;text-align:initial}::ng-deep .vdr-prosemirror:focus{border-color:var(--color-primary-500)!important;box-shadow:0 0 1px 1px var(--color-primary-100)}::ng-deep .vdr-prosemirror hr{padding:2px 10px;border:none;margin:1em 0}::ng-deep .vdr-prosemirror hr:after{content:\"\";display:block;height:1px;background-color:silver;line-height:2px}::ng-deep .vdr-prosemirror img{cursor:default;max-width:100%}\n"], directives: [{ type: i2.ClrLabel, selector: "label", inputs: ["for"] }], changeDetection: i0.ChangeDetectionStrategy.OnPush });
|
|
72
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.2.3", ngImport: i0, type: RichTextEditorComponent, decorators: [{
|
|
73
|
-
type: Component,
|
|
74
|
-
args: [{ selector: 'vdr-rich-text-editor', changeDetection: ChangeDetectionStrategy.OnPush, providers: [
|
|
75
|
-
{
|
|
76
|
-
provide: NG_VALUE_ACCESSOR,
|
|
77
|
-
useExisting: RichTextEditorComponent,
|
|
78
|
-
multi: true,
|
|
79
|
-
},
|
|
80
|
-
ProsemirrorService,
|
|
81
|
-
], template: "<label class=\"clr-control-label\">{{ label }}</label>\r\n<div #editor></div>\r\n", styles: ["@charset \"UTF-8\";::ng-deep .ProseMirror{position:relative}::ng-deep .ProseMirror{word-wrap:break-word;white-space:pre-wrap;-webkit-font-variant-ligatures:none;font-feature-settings:none;font-variant-ligatures:none}::ng-deep .ProseMirror pre{white-space:pre-wrap}::ng-deep .ProseMirror li{position:relative}::ng-deep .ProseMirror-hideselection *::selection{background:transparent}::ng-deep .ProseMirror-hideselection *::-moz-selection{background:transparent}::ng-deep .ProseMirror-hideselection{caret-color:transparent}::ng-deep .ProseMirror-selectednode{outline:2px solid var(--color-primary-500)}::ng-deep li.ProseMirror-selectednode{outline:none}::ng-deep li.ProseMirror-selectednode:after{content:\"\";position:absolute;left:-32px;right:-2px;top:-2px;bottom:-2px;border:2px solid var(--color-primary-500);pointer-events:none}::ng-deep .ProseMirror-textblock-dropdown{min-width:3em}::ng-deep .ProseMirror-menu{margin:0 -4px;line-height:1}::ng-deep .ProseMirror-tooltip .ProseMirror-menu{width:-moz-fit-content;width:fit-content;white-space:pre}::ng-deep .ProseMirror-menuitem{margin-right:3px;display:inline-block}::ng-deep .ProseMirror-menuseparator{border-right:1px solid var(--color-component-border-200);margin-right:3px}::ng-deep .ProseMirror-menu-dropdown,::ng-deep .ProseMirror-menu-dropdown-menu{font-size:90%;white-space:nowrap}::ng-deep .ProseMirror-menu-dropdown{vertical-align:1px;cursor:pointer;position:relative;padding-right:15px}::ng-deep .ProseMirror-menu-dropdown-wrap{padding:1px 0 1px 4px;display:inline-block;position:relative}::ng-deep .ProseMirror-menu-dropdown:after{content:\"\";border-left:4px solid transparent;border-right:4px solid transparent;border-top:4px solid currentColor;opacity:.6;position:absolute;right:4px;top:calc(50% - 2px)}::ng-deep .ProseMirror-menu-dropdown-menu,::ng-deep .ProseMirror-menu-submenu{position:absolute;background:white;color:var(--color-grey-600);border:1px solid var(--color-component-border-200);padding:2px}::ng-deep .ProseMirror-menu-dropdown-menu{z-index:15;min-width:6em}::ng-deep .ProseMirror-menu-dropdown-item{cursor:pointer;padding:2px 8px 2px 4px}::ng-deep .ProseMirror-menu-dropdown-item:hover{background:var(--color-component-bg-100)}::ng-deep .ProseMirror-menu-submenu-wrap{position:relative;margin-right:-4px}::ng-deep .ProseMirror-menu-submenu-label:after{content:\"\";border-top:4px solid transparent;border-bottom:4px solid transparent;border-left:4px solid currentColor;opacity:.6;position:absolute;right:4px;top:calc(50% - 4px)}::ng-deep .ProseMirror-menu-submenu{display:none;min-width:4em;left:100%;top:-3px}::ng-deep .ProseMirror-menu-active{background:var(--color-component-bg-100);border-radius:4px}::ng-deep .ProseMirror-menu-disabled{opacity:.3}::ng-deep .ProseMirror-menu-submenu-wrap:hover .ProseMirror-menu-submenu,::ng-deep .ProseMirror-menu-submenu-wrap-active .ProseMirror-menu-submenu{display:block}::ng-deep .ProseMirror-menubar{border-top-left-radius:inherit;border-top-right-radius:inherit;position:relative;min-height:1em;color:var(--color-grey-600);padding:1px 6px;top:0;left:0;right:0;background:var(--color-component-bg-100);z-index:10;box-sizing:border-box;overflow:visible}::ng-deep .ProseMirror-icon{display:inline-block;line-height:.8;vertical-align:-2px;padding:2px 8px;cursor:pointer}::ng-deep .ProseMirror-menu-disabled.ProseMirror-icon{cursor:default}::ng-deep .ProseMirror-icon svg{fill:currentColor;height:1em}::ng-deep .ProseMirror-icon span{vertical-align:text-top}::ng-deep .ProseMirror-gapcursor{display:none;pointer-events:none;position:absolute}::ng-deep .ProseMirror-gapcursor:after{content:\"\";display:block;position:absolute;top:-2px;width:20px;border-top:1px solid black;animation:ProseMirror-cursor-blink 1.1s steps(2,start) infinite}@keyframes ProseMirror-cursor-blink{to{visibility:hidden}}::ng-deep .ProseMirror-focused .ProseMirror-gapcursor{display:block}::ng-deep .ProseMirror ul,::ng-deep .ProseMirror ol{padding-left:30px;list-style-position:initial}::ng-deep .ProseMirror blockquote{padding-left:1em;border-left:3px solid var(--color-grey-100);margin-left:0;margin-right:0}::ng-deep .ProseMirror-prompt{background:white;padding:5px 10px 5px 15px;border:1px solid silver;position:fixed;border-radius:3px;z-index:11;box-shadow:-.5px 2px 5px #0003}::ng-deep .ProseMirror-prompt h5{margin:0;font-weight:400;font-size:100%;color:var(--color-grey-500)}::ng-deep .ProseMirror-prompt input[type=text],::ng-deep .ProseMirror-prompt textarea{background:var(--color-component-bg-100);border:none;outline:none}::ng-deep .ProseMirror-prompt input[type=text]{padding:0 4px}::ng-deep .ProseMirror-prompt-close{position:absolute;left:2px;top:1px;color:var(--color-grey-400);border:none;background:transparent;padding:0}::ng-deep .ProseMirror-prompt-close:after{content:\"\\e2\\153\\2022\";font-size:12px}::ng-deep .ProseMirror-invalid{background:var(--color-warning-200);border:1px solid var(--color-warning-300);border-radius:4px;padding:5px 10px;position:absolute;min-width:10em}::ng-deep .ProseMirror-prompt-buttons{margin-top:5px;display:none}::ng-deep #editor,::ng-deep .editor{background:var(--color-form-input-bg);color:#000;background-clip:padding-box;border-radius:4px;border:2px solid rgba(0,0,0,.2);padding:5px 0;margin-bottom:23px}::ng-deep .ProseMirror p:first-child,::ng-deep .ProseMirror h1:first-child,::ng-deep .ProseMirror h2:first-child,::ng-deep .ProseMirror h3:first-child,::ng-deep .ProseMirror h4:first-child,::ng-deep .ProseMirror h5:first-child,::ng-deep .ProseMirror h6:first-child{margin-top:10px}::ng-deep .ProseMirror{padding:4px 8px 4px 14px;line-height:1.2;outline:none}::ng-deep .ProseMirror p{margin-bottom:.5rem;color:var(--color-grey-800)!important}:host{display:block;max-width:710px;margin-bottom:.5rem}:host.readonly ::ng-deep .ProseMirror-menubar{display:none}::ng-deep .ProseMirror-menubar{position:sticky;top:24px;margin-top:6px;border:1px solid var(--color-component-border-200);border-bottom:none;background-color:var(--color-component-bg-200);color:var(--color-icon-button);border-radius:var(--border-radius-input) var(--border-radius-input) 0 0;padding:6px 12px;display:flex;flex-wrap:wrap}::ng-deep .vdr-prosemirror{background:var(--color-form-input-bg);min-height:128px;min-width:200px;border:1px solid var(--color-component-border-200);border-radius:0 0 var(--border-radius-input) var(--border-radius-input);transition:border-color .2s;overflow:auto;text-align:initial}::ng-deep .vdr-prosemirror:focus{border-color:var(--color-primary-500)!important;box-shadow:0 0 1px 1px var(--color-primary-100)}::ng-deep .vdr-prosemirror hr{padding:2px 10px;border:none;margin:1em 0}::ng-deep .vdr-prosemirror hr:after{content:\"\";display:block;height:1px;background-color:silver;line-height:2px}::ng-deep .vdr-prosemirror img{cursor:default;max-width:100%}\n"] }]
|
|
82
|
-
}], ctorParameters: function () { return [{ type: i0.ChangeDetectorRef }, { type: i1.ProsemirrorService }]; }, propDecorators: { label: [{
|
|
83
|
-
type: Input
|
|
84
|
-
}], readonly: [{
|
|
85
|
-
type: Input
|
|
86
|
-
}], _readonly: [{
|
|
87
|
-
type: HostBinding,
|
|
88
|
-
args: ['class.readonly']
|
|
89
|
-
}], editorEl: [{
|
|
90
|
-
type: ViewChild,
|
|
91
|
-
args: ['editor', { static: true }]
|
|
92
|
-
}] } });
|
|
93
|
-
//# sourceMappingURL=data:application/json;base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Vmlldyh7XHJcbiAgICAgICAgICAgIGVsZW1lbnQ6IHRoaXMuZWRpdG9yRWwubmF0aXZlRWxlbWVudCxcclxuICAgICAgICAgICAgb25UZXh0SW5wdXQ6IGNvbnRlbnQgPT4ge1xyXG4gICAgICAgICAgICAgICAgdGhpcy5vbkNoYW5nZShjb250ZW50KTtcclxuICAgICAgICAgICAgICAgIHRoaXMuY2hhbmdlRGV0ZWN0b3IubWFya0ZvckNoZWNrKCk7XHJcbiAgICAgICAgICAgIH0sXHJcbiAgICAgICAgICAgIGlzUmVhZE9ubHk6ICgpID0+ICF0aGlzLl9yZWFkb25seSxcclxuICAgICAgICB9KTtcclxuICAgICAgICBpZiAodGhpcy52YWx1ZSkge1xyXG4gICAgICAgICAgICB0aGlzLnByb3NlbWlycm9yU2VydmljZS51cGRhdGUodGhpcy52YWx1ZSk7XHJcbiAgICAgICAgfVxyXG4gICAgfVxyXG5cclxuICAgIG5nT25EZXN0cm95KCkge1xyXG4gICAgICAgIHRoaXMucHJvc2VtaXJyb3JTZXJ2aWNlLmRlc3Ryb3koKTtcclxuICAgIH1cclxuXHJcbiAgICByZWdpc3Rlck9uQ2hhbmdlKGZuOiBhbnkpIHtcclxuICAgICAgICB0aGlzLm9uQ2hhbmdlID0gZm47XHJcbiAgICB9XHJcblxyXG4gICAgcmVnaXN0ZXJPblRvdWNoZWQoZm46IGFueSkge1xyXG4gICAgICAgIHRoaXMub25Ub3VjaCA9IGZuO1xyXG4gICAgfVxyXG5cclxuICAgIHNldERpc2FibGVkU3RhdGUoaXNEaXNhYmxlZDogYm9vbGVhbikge1xyXG4gICAgICAgIHRoaXMucHJvc2VtaXJyb3JTZXJ2aWNlLnNldEVuYWJsZWQoIWlzRGlzYWJsZWQpO1xyXG4gICAgfVxyXG5cclxuICAgIHdyaXRlVmFsdWUodmFsdWU6IGFueSkge1xyXG4gICAgICAgIHRoaXMudmFsdWUgPSB2YWx1ZTtcclxuICAgICAgICBpZiAodGhpcy5wcm9zZW1pcnJ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