@vendure/admin-ui 1.7.4 → 1.8.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/bundles/vendure-admin-ui-catalog.umd.js +902 -74
- package/bundles/vendure-admin-ui-catalog.umd.js.map +1 -1
- package/bundles/vendure-admin-ui-core.umd.js +2392 -820
- package/bundles/vendure-admin-ui-core.umd.js.map +1 -1
- package/bundles/vendure-admin-ui-customer.umd.js +4 -3
- package/bundles/vendure-admin-ui-customer.umd.js.map +1 -1
- package/bundles/vendure-admin-ui-dashboard.umd.js +3 -1
- package/bundles/vendure-admin-ui-dashboard.umd.js.map +1 -1
- package/bundles/vendure-admin-ui-order.umd.js +781 -175
- package/bundles/vendure-admin-ui-order.umd.js.map +1 -1
- package/bundles/vendure-admin-ui-settings.umd.js +5 -4
- package/bundles/vendure-admin-ui-settings.umd.js.map +1 -1
- package/bundles/vendure-admin-ui-system.umd.js +1 -1
- package/catalog/catalog.module.d.ts +3 -0
- package/catalog/components/assign-to-channel-dialog/assign-to-channel-dialog.component.d.ts +17 -0
- package/catalog/components/bulk-add-facet-values-dialog/bulk-add-facet-values-dialog.component.d.ts +38 -0
- package/catalog/components/bulk-add-facet-values-dialog/bulk-add-facet-values-dialog.graphql.d.ts +4 -0
- package/catalog/components/collection-list/collection-list-bulk-actions.d.ts +6 -0
- package/catalog/components/collection-list/collection-list.component.d.ts +7 -5
- package/catalog/components/collection-tree/collection-tree-node.component.d.ts +8 -4
- package/catalog/components/collection-tree/collection-tree.component.d.ts +2 -1
- package/catalog/components/facet-list/facet-list-bulk-actions.d.ts +5 -0
- package/catalog/components/facet-list/facet-list.component.d.ts +2 -1
- package/catalog/components/product-list/product-list-bulk-actions.d.ts +6 -0
- package/catalog/components/product-list/product-list.component.d.ts +2 -1
- package/catalog/public_api.d.ts +6 -0
- package/catalog/vendure-admin-ui-catalog.metadata.json +1 -1
- package/core/common/component-registry-types.d.ts +1 -1
- package/core/common/generated-types.d.ts +609 -3
- package/core/common/utilities/bulk-action-utils.d.ts +19 -0
- package/core/common/utilities/selection-manager.d.ts +7 -0
- package/core/common/version.d.ts +1 -1
- package/core/data/definitions/collection-definitions.d.ts +3 -0
- package/core/data/definitions/facet-definitions.d.ts +3 -0
- package/core/data/definitions/order-definitions.d.ts +12 -0
- package/core/data/definitions/product-definitions.d.ts +1 -0
- package/core/data/providers/collection-data.service.d.ts +4 -1
- package/core/data/providers/facet-data.service.d.ts +4 -1
- package/core/data/providers/order-data.service.d.ts +18 -1
- package/core/data/providers/product-data.service.d.ts +1 -0
- package/core/providers/bulk-action-registry/bulk-action-registry.service.d.ts +6 -0
- package/core/providers/bulk-action-registry/bulk-action-types.d.ts +149 -0
- package/core/providers/bulk-action-registry/register-bulk-action.d.ts +53 -0
- package/core/providers/modal/modal.service.d.ts +2 -0
- package/core/providers/nav-builder/nav-builder-types.d.ts +1 -0
- package/core/public_api.d.ts +18 -1
- package/core/shared/components/asset-gallery/asset-gallery.component.d.ts +3 -3
- package/core/shared/components/bulk-action-menu/bulk-action-menu.component.d.ts +29 -0
- package/core/shared/components/data-table/data-table.component.d.ts +26 -7
- package/core/shared/components/dropdown/dropdown-menu.component.d.ts +1 -0
- package/core/shared/components/radio-card/radio-card-fieldset.component.d.ts +21 -0
- package/core/shared/components/radio-card/radio-card.component.d.ts +19 -0
- package/core/shared/components/rich-text-editor/prosemirror/context-menu/context-menu.component.d.ts +28 -0
- package/core/shared/components/rich-text-editor/prosemirror/context-menu/context-menu.service.d.ts +31 -0
- package/core/shared/components/rich-text-editor/prosemirror/custom-nodes.d.ts +4 -0
- package/core/shared/components/rich-text-editor/prosemirror/inputrules.d.ts +5 -5
- package/core/shared/components/rich-text-editor/prosemirror/menu/links.d.ts +1 -1
- package/core/shared/components/rich-text-editor/prosemirror/menu/menu-common.d.ts +12 -0
- package/core/shared/components/rich-text-editor/prosemirror/menu/menu-plugin.d.ts +9 -0
- package/core/shared/components/rich-text-editor/prosemirror/menu/sub-menu-with-icon.d.ts +14 -0
- package/core/shared/components/rich-text-editor/prosemirror/plugins/image-plugin.d.ts +7 -0
- package/core/shared/components/rich-text-editor/prosemirror/plugins/link-select-plugin.d.ts +1 -1
- package/core/shared/components/rich-text-editor/prosemirror/plugins/raw-editor-plugin.d.ts +7 -0
- package/core/shared/components/rich-text-editor/prosemirror/plugins/tables-plugin.d.ts +13 -0
- package/core/shared/components/rich-text-editor/prosemirror/prosemirror.service.d.ts +7 -3
- package/core/shared/components/rich-text-editor/prosemirror/types.d.ts +0 -2
- package/core/shared/components/rich-text-editor/raw-html-dialog/raw-html-dialog.component.d.ts +18 -0
- package/core/shared/components/rich-text-editor/rich-text-editor.component.d.ts +6 -2
- package/core/shared/dynamic-form-inputs/code-editor-form-input/base-code-editor-form-input.component.d.ts +27 -0
- package/core/shared/dynamic-form-inputs/code-editor-form-input/html-editor-form-input.component.d.ts +19 -0
- package/core/shared/dynamic-form-inputs/code-editor-form-input/json-editor-form-input.component.d.ts +5 -17
- package/core/shared/dynamic-form-inputs/register-dynamic-input-components.d.ts +2 -1
- package/core/vendure-admin-ui-core.metadata.json +1 -1
- package/customer/components/customer-group-member-list/customer-group-member-list.component.d.ts +11 -4
- package/customer/vendure-admin-ui-customer.metadata.json +1 -1
- package/esm2015/catalog/catalog.module.js +25 -2
- package/esm2015/catalog/components/assign-products-to-channel-dialog/assign-products-to-channel-dialog.component.js +4 -1
- package/esm2015/catalog/components/assign-to-channel-dialog/assign-to-channel-dialog.component.js +51 -0
- package/esm2015/catalog/components/bulk-add-facet-values-dialog/bulk-add-facet-values-dialog.component.js +89 -0
- package/esm2015/catalog/components/bulk-add-facet-values-dialog/bulk-add-facet-values-dialog.graphql.js +69 -0
- package/esm2015/catalog/components/collection-detail/collection-detail.component.js +3 -3
- package/esm2015/catalog/components/collection-list/collection-list-bulk-actions.js +147 -0
- package/esm2015/catalog/components/collection-list/collection-list.component.js +17 -8
- package/esm2015/catalog/components/collection-tree/collection-tree-node.component.js +16 -7
- package/esm2015/catalog/components/collection-tree/collection-tree.component.js +3 -2
- package/esm2015/catalog/components/facet-list/facet-list-bulk-actions.js +208 -0
- package/esm2015/catalog/components/facet-list/facet-list.component.js +13 -4
- package/esm2015/catalog/components/product-detail/product-detail.component.js +35 -23
- package/esm2015/catalog/components/product-list/product-list-bulk-actions.js +173 -0
- package/esm2015/catalog/components/product-list/product-list.component.js +10 -5
- package/esm2015/catalog/components/product-variants-list/product-variants-list.component.js +2 -2
- package/esm2015/catalog/providers/routing/collection-resolver.js +2 -1
- package/esm2015/catalog/public_api.js +7 -1
- package/esm2015/core/common/component-registry-types.js +1 -1
- package/esm2015/core/common/generated-types.js +5 -1
- package/esm2015/core/common/introspection-result.js +296 -191
- package/esm2015/core/common/utilities/bulk-action-utils.js +44 -0
- package/esm2015/core/common/utilities/selection-manager.js +33 -1
- package/esm2015/core/common/version.js +2 -2
- package/esm2015/core/components/breadcrumb/breadcrumb.component.js +1 -1
- package/esm2015/core/data/definitions/collection-definitions.js +30 -1
- package/esm2015/core/data/definitions/facet-definitions.js +31 -1
- package/esm2015/core/data/definitions/order-definitions.js +114 -1
- package/esm2015/core/data/definitions/product-definitions.js +15 -1
- package/esm2015/core/data/providers/collection-data.service.js +17 -2
- package/esm2015/core/data/providers/customer-data.service.js +8 -4
- package/esm2015/core/data/providers/facet-data.service.js +18 -2
- package/esm2015/core/data/providers/order-data.service.js +38 -2
- package/esm2015/core/data/providers/product-data.service.js +7 -2
- package/esm2015/core/data/utils/remove-readonly-custom-fields.js +5 -1
- package/esm2015/core/providers/bulk-action-registry/bulk-action-registry.service.js +27 -0
- package/esm2015/core/providers/bulk-action-registry/bulk-action-types.js +2 -0
- package/esm2015/core/providers/bulk-action-registry/register-bulk-action.js +63 -0
- package/esm2015/core/providers/dashboard-widget/dashboard-widget.service.js +1 -4
- package/esm2015/core/providers/modal/modal.service.js +2 -1
- package/esm2015/core/providers/nav-builder/nav-builder-types.js +1 -1
- package/esm2015/core/public_api.js +19 -2
- package/esm2015/core/shared/components/action-bar/action-bar.component.js +4 -8
- package/esm2015/core/shared/components/asset-gallery/asset-gallery.component.js +2 -2
- package/esm2015/core/shared/components/bulk-action-menu/bulk-action-menu.component.js +99 -0
- package/esm2015/core/shared/components/data-table/data-table.component.js +64 -15
- package/esm2015/core/shared/components/dropdown/dropdown-menu.component.js +4 -3
- package/esm2015/core/shared/components/facet-value-selector/facet-value-selector.component.js +2 -2
- package/esm2015/core/shared/components/language-selector/language-selector.component.js +2 -2
- package/esm2015/core/shared/components/order-state-label/order-state-label.component.js +2 -1
- package/esm2015/core/shared/components/product-search-input/product-search-input.component.js +1 -1
- package/esm2015/core/shared/components/product-selector/product-selector.component.js +1 -1
- package/esm2015/core/shared/components/radio-card/radio-card-fieldset.component.js +57 -0
- package/esm2015/core/shared/components/radio-card/radio-card.component.js +54 -0
- package/esm2015/core/shared/components/rich-text-editor/external-image-dialog/external-image-dialog.component.js +2 -2
- package/esm2015/core/shared/components/rich-text-editor/prosemirror/context-menu/context-menu.component.js +140 -0
- package/esm2015/core/shared/components/rich-text-editor/prosemirror/context-menu/context-menu.service.js +45 -0
- package/esm2015/core/shared/components/rich-text-editor/prosemirror/custom-nodes.js +60 -0
- package/esm2015/core/shared/components/rich-text-editor/prosemirror/menu/links.js +4 -4
- package/esm2015/core/shared/components/rich-text-editor/prosemirror/menu/menu-common.js +23 -1
- package/esm2015/core/shared/components/rich-text-editor/prosemirror/menu/menu-plugin.js +12 -0
- package/esm2015/core/shared/components/rich-text-editor/prosemirror/menu/menu.js +73 -18
- package/esm2015/core/shared/components/rich-text-editor/prosemirror/menu/sub-menu-with-icon.js +16 -0
- package/esm2015/core/shared/components/rich-text-editor/prosemirror/plugins/image-plugin.js +100 -0
- package/esm2015/core/shared/components/rich-text-editor/prosemirror/plugins/raw-editor-plugin.js +97 -0
- package/esm2015/core/shared/components/rich-text-editor/prosemirror/plugins/tables-plugin.js +166 -0
- package/esm2015/core/shared/components/rich-text-editor/prosemirror/prosemirror.service.js +47 -17
- package/esm2015/core/shared/components/rich-text-editor/prosemirror/types.js +1 -1
- package/esm2015/core/shared/components/rich-text-editor/raw-html-dialog/raw-html-dialog.component.js +57 -0
- package/esm2015/core/shared/components/rich-text-editor/rich-text-editor.component.js +20 -9
- package/esm2015/core/shared/components/simple-dialog/simple-dialog.component.js +2 -2
- package/esm2015/core/shared/dynamic-form-inputs/code-editor-form-input/base-code-editor-form-input.component.js +59 -0
- package/esm2015/core/shared/dynamic-form-inputs/code-editor-form-input/html-editor-form-input.component.js +66 -0
- package/esm2015/core/shared/dynamic-form-inputs/code-editor-form-input/json-editor-form-input.component.js +47 -84
- package/esm2015/core/shared/dynamic-form-inputs/dynamic-form-input/dynamic-form-input.component.js +3 -3
- package/esm2015/core/shared/dynamic-form-inputs/register-dynamic-input-components.js +3 -1
- package/esm2015/core/shared/pipes/state-i18n-token.pipe.js +2 -1
- package/esm2015/core/shared/shared.module.js +13 -1
- package/esm2015/customer/components/customer-group-list/customer-group-list.component.js +2 -2
- package/esm2015/customer/components/customer-group-member-list/customer-group-member-list.component.js +6 -6
- package/esm2015/customer/components/customer-list/customer-list.component.js +2 -2
- package/esm2015/dashboard/dashboard.module.js +6 -2
- package/esm2015/order/components/coupon-code-selector/coupon-code-selector.component.js +42 -0
- package/esm2015/order/components/draft-order-detail/draft-order-detail.component.js +195 -0
- package/esm2015/order/components/draft-order-variant-selector/draft-order-variant-selector.component.js +59 -0
- package/esm2015/order/components/order-detail/order-detail.component.js +2 -2
- package/esm2015/order/components/order-editor/order-editor.component.js +5 -11
- package/esm2015/order/components/order-list/order-list.component.js +20 -4
- package/esm2015/order/components/order-table/order-table.component.js +16 -5
- package/esm2015/order/components/select-address-dialog/select-address-dialog.component.js +91 -0
- package/esm2015/order/components/select-address-dialog/select-address-dialog.graphql.js +14 -0
- package/esm2015/order/components/select-customer-dialog/select-customer-dialog.component.js +59 -0
- package/esm2015/order/components/select-shipping-method-dialog/select-shipping-method-dialog.component.js +30 -0
- package/esm2015/order/order.module.js +13 -1
- package/esm2015/order/order.routes.js +26 -7
- package/esm2015/order/providers/routing/order-resolver.js +29 -12
- package/esm2015/order/providers/routing/order.guard.js +41 -0
- package/esm2015/order/public_api.js +9 -1
- package/esm2015/settings/components/country-list/country-list.component.js +2 -2
- package/esm2015/settings/components/profile/profile.component.js +2 -2
- package/esm2015/settings/components/zone-list/zone-list.component.js +2 -2
- package/esm2015/settings/components/zone-member-list/zone-member-list.component.js +2 -2
- package/esm2015/system/components/health-check/health-check.component.js +1 -1
- package/fesm2015/vendure-admin-ui-catalog.js +835 -61
- package/fesm2015/vendure-admin-ui-catalog.js.map +1 -1
- package/fesm2015/vendure-admin-ui-core.js +3122 -1514
- package/fesm2015/vendure-admin-ui-core.js.map +1 -1
- package/fesm2015/vendure-admin-ui-customer.js +7 -7
- package/fesm2015/vendure-admin-ui-customer.js.map +1 -1
- package/fesm2015/vendure-admin-ui-dashboard.js +5 -1
- package/fesm2015/vendure-admin-ui-dashboard.js.map +1 -1
- package/fesm2015/vendure-admin-ui-order.js +780 -232
- package/fesm2015/vendure-admin-ui-order.js.map +1 -1
- package/fesm2015/vendure-admin-ui-settings.js +4 -4
- package/fesm2015/vendure-admin-ui-settings.js.map +1 -1
- package/fesm2015/vendure-admin-ui-system.js +1 -1
- package/order/components/coupon-code-selector/coupon-code-selector.component.d.ts +18 -0
- package/order/components/draft-order-detail/draft-order-detail.component.d.ts +49 -0
- package/order/components/draft-order-variant-selector/draft-order-variant-selector.component.d.ts +21 -0
- package/order/components/order-editor/order-editor.component.d.ts +1 -6
- package/order/components/order-list/order-list.component.d.ts +1 -0
- package/order/components/order-table/order-table.component.d.ts +11 -2
- package/order/components/select-address-dialog/select-address-dialog.component.d.ts +24 -0
- package/order/components/select-address-dialog/select-address-dialog.graphql.d.ts +1 -0
- package/order/components/select-customer-dialog/select-customer-dialog.component.d.ts +22 -0
- package/order/components/select-shipping-method-dialog/select-shipping-method-dialog.component.d.ts +16 -0
- package/order/providers/routing/order-resolver.d.ts +8 -5
- package/order/providers/routing/order.guard.d.ts +9 -0
- package/order/public_api.d.ts +8 -0
- package/order/vendure-admin-ui-order.metadata.json +1 -1
- package/package.json +13 -12
- package/settings/components/zone-member-list/zone-member-list.component.d.ts +3 -1
- package/settings/vendure-admin-ui-settings.metadata.json +1 -1
- package/static/i18n-messages/cs.json +33 -0
- package/static/i18n-messages/de.json +33 -0
- package/static/i18n-messages/en.json +36 -4
- package/static/i18n-messages/es.json +33 -0
- package/static/i18n-messages/fr.json +33 -0
- package/static/i18n-messages/it.json +33 -0
- package/static/i18n-messages/pl.json +33 -0
- package/static/i18n-messages/pt_BR.json +33 -0
- package/static/i18n-messages/pt_PT.json +33 -0
- package/static/i18n-messages/ru.json +33 -0
- package/static/i18n-messages/uk.json +33 -0
- package/static/i18n-messages/zh_Hans.json +33 -0
- package/static/i18n-messages/zh_Hant.json +33 -0
- package/static/styles/global/_forms.scss +4 -2
- package/static/styles/global/_overrides.scss +1 -1
- package/static/styles/global/_utilities.scss +4 -0
- package/static/theme.min.css +1 -1
- package/system/vendure-admin-ui-system.metadata.json +1 -1
- package/core/shared/components/rich-text-editor/prosemirror/menu/images.d.ts +0 -4
- package/esm2015/core/shared/components/rich-text-editor/prosemirror/menu/images.js +0 -36
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
(function (global, factory) {
|
|
2
|
-
typeof exports === 'object' && typeof module !== 'undefined' ? factory(exports, require('@angular/core'), require('@angular/common'), require('rxjs/operators'), require('apollo-angular'), require('@angular/common/http'), require('@vendure/common/lib/simple-deep-clone'), require('@apollo/client/core'), require('@vendure/common/lib/shared-utils'), require('rxjs'), require('graphql'), require('@vendure/common/lib/pick'), require('@angular/platform-browser'), require('@angular/platform-browser/animations'), require('@ngx-translate/core'), require('ngx-translate-messageformat-compiler'), require('@angular/router'), require('@vendure/common/lib/shared-constants'), require('lodash'), require('@angular/forms'), require('@biesbjerg/ngx-translate-extract-marker'), require('@apollo/client/link/context'), require('@apollo/client/link/core'), require('apollo-upload-client'), require('@vendure/common/lib/omit'), require('codejar'), require('@angular/cdk/drag-drop'), require('@angular/cdk/overlay'), require('@clr/angular'), require('@clr/icons'), require('@clr/icons/shapes/all-shapes'), require('@ng-select/ng-select'), require('@webcomponents/custom-elements/custom-elements.min.js'), require('ngx-pagination'), require('dayjs'), require('@angular/cdk/portal'), require('prosemirror-commands'), require('prosemirror-dropcursor'), require('prosemirror-gapcursor'), require('prosemirror-history'), require('prosemirror-keymap'), require('prosemirror-
|
|
3
|
-
typeof define === 'function' && define.amd ? define('@vendure/admin-ui/core', ['exports', '@angular/core', '@angular/common', 'rxjs/operators', 'apollo-angular', '@angular/common/http', '@vendure/common/lib/simple-deep-clone', '@apollo/client/core', '@vendure/common/lib/shared-utils', 'rxjs', 'graphql', '@vendure/common/lib/pick', '@angular/platform-browser', '@angular/platform-browser/animations', '@ngx-translate/core', 'ngx-translate-messageformat-compiler', '@angular/router', '@vendure/common/lib/shared-constants', 'lodash', '@angular/forms', '@biesbjerg/ngx-translate-extract-marker', '@apollo/client/link/context', '@apollo/client/link/core', 'apollo-upload-client', '@vendure/common/lib/omit', 'codejar', '@angular/cdk/drag-drop', '@angular/cdk/overlay', '@clr/angular', '@clr/icons', '@clr/icons/shapes/all-shapes', '@ng-select/ng-select', '@webcomponents/custom-elements/custom-elements.min.js', 'ngx-pagination', 'dayjs', '@angular/cdk/portal', 'prosemirror-commands', 'prosemirror-dropcursor', 'prosemirror-gapcursor', 'prosemirror-history', 'prosemirror-keymap', 'prosemirror-
|
|
4
|
-
(global = typeof globalThis !== 'undefined' ? globalThis : global || self, factory((global.vendure = global.vendure || {}, global.vendure['admin-ui'] = global.vendure['admin-ui'] || {}, global.vendure['admin-ui'].core = {}), global.ng.core, global.ng.common, global.rxjs.operators, global.apolloAngular, global.ng.common.http, global.simpleDeepClone, global.core, global.sharedUtils, global.rxjs, global.graphql, global.pick, global.ng.platformBrowser, global.ng.platformBrowser.animations, global.i1$2, global.i1$4, global.ng.router, global.sharedConstants, global.lodash, global.ng.forms, global.ngxTranslateExtractMarker, global.context, global.core$1, global.apolloUploadClient, global.omit, global.codejar, global.ng.cdk.dragDrop, global.ng.cdk.overlay, global.angular, null, null, global.ngSelect, null, global.ngxPagination, global.dayjs, global.ng.cdk.portal, global.prosemirrorCommands, global.prosemirrorDropcursor, global.prosemirrorGapcursor, global.prosemirrorHistory, global.prosemirrorKeymap, global.
|
|
5
|
-
}(this, (function (exports, i0, i1, operators, apolloAngular, i1$1, simpleDeepClone, core, sharedUtils, rxjs, graphql, pick, platformBrowser, animations, i1$2, i1$4, i1$3, sharedConstants, lodash, forms, ngxTranslateExtractMarker, context, core$1, apolloUploadClient, omit, codejar, dragDrop, overlay, angular, icons, allShapes, ngSelect, customElements_min_js, ngxPagination, dayjs, portal, prosemirrorCommands, prosemirrorDropcursor, prosemirrorGapcursor, prosemirrorHistory, prosemirrorKeymap,
|
|
2
|
+
typeof exports === 'object' && typeof module !== 'undefined' ? factory(exports, require('@angular/core'), require('@angular/common'), require('rxjs/operators'), require('apollo-angular'), require('@angular/common/http'), require('@vendure/common/lib/simple-deep-clone'), require('@apollo/client/core'), require('@vendure/common/lib/shared-utils'), require('rxjs'), require('graphql'), require('@vendure/common/lib/pick'), require('@angular/platform-browser'), require('@angular/platform-browser/animations'), require('@ngx-translate/core'), require('ngx-translate-messageformat-compiler'), require('@angular/router'), require('@vendure/common/lib/shared-constants'), require('lodash'), require('@angular/forms'), require('@biesbjerg/ngx-translate-extract-marker'), require('@apollo/client/link/context'), require('@apollo/client/link/core'), require('apollo-upload-client'), require('@vendure/common/lib/omit'), require('codejar'), require('@angular/cdk/drag-drop'), require('@angular/cdk/overlay'), require('@clr/angular'), require('@clr/icons'), require('@clr/icons/shapes/all-shapes'), require('@ng-select/ng-select'), require('@webcomponents/custom-elements/custom-elements.min.js'), require('ngx-pagination'), require('dayjs'), require('@angular/cdk/portal'), require('prosemirror-commands'), require('prosemirror-dropcursor'), require('prosemirror-gapcursor'), require('prosemirror-history'), require('prosemirror-keymap'), require('prosemirror-model'), require('prosemirror-schema-basic'), require('prosemirror-schema-list'), require('prosemirror-state'), require('prosemirror-tables'), require('prosemirror-view'), require('prosemirror-inputrules'), require('prosemirror-menu')) :
|
|
3
|
+
typeof define === 'function' && define.amd ? define('@vendure/admin-ui/core', ['exports', '@angular/core', '@angular/common', 'rxjs/operators', 'apollo-angular', '@angular/common/http', '@vendure/common/lib/simple-deep-clone', '@apollo/client/core', '@vendure/common/lib/shared-utils', 'rxjs', 'graphql', '@vendure/common/lib/pick', '@angular/platform-browser', '@angular/platform-browser/animations', '@ngx-translate/core', 'ngx-translate-messageformat-compiler', '@angular/router', '@vendure/common/lib/shared-constants', 'lodash', '@angular/forms', '@biesbjerg/ngx-translate-extract-marker', '@apollo/client/link/context', '@apollo/client/link/core', 'apollo-upload-client', '@vendure/common/lib/omit', 'codejar', '@angular/cdk/drag-drop', '@angular/cdk/overlay', '@clr/angular', '@clr/icons', '@clr/icons/shapes/all-shapes', '@ng-select/ng-select', '@webcomponents/custom-elements/custom-elements.min.js', 'ngx-pagination', 'dayjs', '@angular/cdk/portal', 'prosemirror-commands', 'prosemirror-dropcursor', 'prosemirror-gapcursor', 'prosemirror-history', 'prosemirror-keymap', 'prosemirror-model', 'prosemirror-schema-basic', 'prosemirror-schema-list', 'prosemirror-state', 'prosemirror-tables', 'prosemirror-view', 'prosemirror-inputrules', 'prosemirror-menu'], factory) :
|
|
4
|
+
(global = typeof globalThis !== 'undefined' ? globalThis : global || self, factory((global.vendure = global.vendure || {}, global.vendure['admin-ui'] = global.vendure['admin-ui'] || {}, global.vendure['admin-ui'].core = {}), global.ng.core, global.ng.common, global.rxjs.operators, global.apolloAngular, global.ng.common.http, global.simpleDeepClone, global.core, global.sharedUtils, global.rxjs, global.graphql, global.pick, global.ng.platformBrowser, global.ng.platformBrowser.animations, global.i1$2, global.i1$4, global.ng.router, global.sharedConstants, global.lodash, global.ng.forms, global.ngxTranslateExtractMarker, global.context, global.core$1, global.apolloUploadClient, global.omit, global.codejar, global.ng.cdk.dragDrop, global.ng.cdk.overlay, global.angular, null, null, global.ngSelect, null, global.ngxPagination, global.dayjs, global.ng.cdk.portal, global.prosemirrorCommands, global.prosemirrorDropcursor, global.prosemirrorGapcursor, global.prosemirrorHistory, global.prosemirrorKeymap, global.prosemirrorModel, global.prosemirrorSchemaBasic, global.prosemirrorSchemaList, global.prosemirrorState, global.prosemirrorTables, global.prosemirrorView, global.prosemirrorInputrules, global.prosemirrorMenu));
|
|
5
|
+
}(this, (function (exports, i0, i1, operators, apolloAngular, i1$1, simpleDeepClone, core, sharedUtils, rxjs, graphql, pick, platformBrowser, animations, i1$2, i1$4, i1$3, sharedConstants, lodash, forms, ngxTranslateExtractMarker, context, core$1, apolloUploadClient, omit, codejar, dragDrop, overlay, angular, icons, allShapes, ngSelect, customElements_min_js, ngxPagination, dayjs, portal, prosemirrorCommands, prosemirrorDropcursor, prosemirrorGapcursor, prosemirrorHistory, prosemirrorKeymap, prosemirrorModel, prosemirrorSchemaBasic, prosemirrorSchemaList, prosemirrorState, prosemirrorTables, prosemirrorView, prosemirrorInputrules, prosemirrorMenu) { 'use strict';
|
|
6
6
|
|
|
7
7
|
function _interopDefaultLegacy (e) { return e && typeof e === 'object' && 'default' in e ? e : { 'default': e }; }
|
|
8
8
|
|
|
@@ -362,12 +362,12 @@
|
|
|
362
362
|
var UPDATE_ACTIVE_ADMINISTRATOR = apolloAngular.gql(templateObject_8$8 || (templateObject_8$8 = __makeTemplateObject(["\n mutation UpdateActiveAdministrator($input: UpdateActiveAdministratorInput!) {\n updateActiveAdministrator(input: $input) {\n ...Administrator\n }\n }\n ", "\n"], ["\n mutation UpdateActiveAdministrator($input: UpdateActiveAdministratorInput!) {\n updateActiveAdministrator(input: $input) {\n ...Administrator\n }\n }\n ", "\n"])), ADMINISTRATOR_FRAGMENT);
|
|
363
363
|
var DELETE_ADMINISTRATOR = apolloAngular.gql(templateObject_9$8 || (templateObject_9$8 = __makeTemplateObject(["\n mutation DeleteAdministrator($id: ID!) {\n deleteAdministrator(id: $id) {\n result\n message\n }\n }\n"], ["\n mutation DeleteAdministrator($id: ID!) {\n deleteAdministrator(id: $id) {\n result\n message\n }\n }\n"])));
|
|
364
364
|
var GET_ROLES = apolloAngular.gql(templateObject_10$7 || (templateObject_10$7 = __makeTemplateObject(["\n query GetRoles($options: RoleListOptions) {\n roles(options: $options) {\n items {\n ...Role\n }\n totalItems\n }\n }\n ", "\n"], ["\n query GetRoles($options: RoleListOptions) {\n roles(options: $options) {\n items {\n ...Role\n }\n totalItems\n }\n }\n ", "\n"])), ROLE_FRAGMENT);
|
|
365
|
-
var GET_ROLE = apolloAngular.gql(templateObject_11$
|
|
366
|
-
var CREATE_ROLE = apolloAngular.gql(templateObject_12$
|
|
367
|
-
var UPDATE_ROLE = apolloAngular.gql(templateObject_13$
|
|
365
|
+
var GET_ROLE = apolloAngular.gql(templateObject_11$7 || (templateObject_11$7 = __makeTemplateObject(["\n query GetRole($id: ID!) {\n role(id: $id) {\n ...Role\n }\n }\n ", "\n"], ["\n query GetRole($id: ID!) {\n role(id: $id) {\n ...Role\n }\n }\n ", "\n"])), ROLE_FRAGMENT);
|
|
366
|
+
var CREATE_ROLE = apolloAngular.gql(templateObject_12$7 || (templateObject_12$7 = __makeTemplateObject(["\n mutation CreateRole($input: CreateRoleInput!) {\n createRole(input: $input) {\n ...Role\n }\n }\n ", "\n"], ["\n mutation CreateRole($input: CreateRoleInput!) {\n createRole(input: $input) {\n ...Role\n }\n }\n ", "\n"])), ROLE_FRAGMENT);
|
|
367
|
+
var UPDATE_ROLE = apolloAngular.gql(templateObject_13$7 || (templateObject_13$7 = __makeTemplateObject(["\n mutation UpdateRole($input: UpdateRoleInput!) {\n updateRole(input: $input) {\n ...Role\n }\n }\n ", "\n"], ["\n mutation UpdateRole($input: UpdateRoleInput!) {\n updateRole(input: $input) {\n ...Role\n }\n }\n ", "\n"])), ROLE_FRAGMENT);
|
|
368
368
|
var DELETE_ROLE = apolloAngular.gql(templateObject_14$5 || (templateObject_14$5 = __makeTemplateObject(["\n mutation DeleteRole($id: ID!) {\n deleteRole(id: $id) {\n result\n message\n }\n }\n"], ["\n mutation DeleteRole($id: ID!) {\n deleteRole(id: $id) {\n result\n message\n }\n }\n"])));
|
|
369
369
|
var ASSIGN_ROLE_TO_ADMINISTRATOR = apolloAngular.gql(templateObject_15$5 || (templateObject_15$5 = __makeTemplateObject(["\n mutation AssignRoleToAdministrator($administratorId: ID!, $roleId: ID!) {\n assignRoleToAdministrator(administratorId: $administratorId, roleId: $roleId) {\n ...Administrator\n }\n }\n ", "\n"], ["\n mutation AssignRoleToAdministrator($administratorId: ID!, $roleId: ID!) {\n assignRoleToAdministrator(administratorId: $administratorId, roleId: $roleId) {\n ...Administrator\n }\n }\n ", "\n"])), ADMINISTRATOR_FRAGMENT);
|
|
370
|
-
var templateObject_1$b, templateObject_2$b, templateObject_3$b, templateObject_4$a, templateObject_5$9, templateObject_6$9, templateObject_7$9, templateObject_8$8, templateObject_9$8, templateObject_10$7, templateObject_11$
|
|
370
|
+
var templateObject_1$b, templateObject_2$b, templateObject_3$b, templateObject_4$a, templateObject_5$9, templateObject_6$9, templateObject_7$9, templateObject_8$8, templateObject_9$8, templateObject_10$7, templateObject_11$7, templateObject_12$7, templateObject_13$7, templateObject_14$5, templateObject_15$5;
|
|
371
371
|
|
|
372
372
|
var AdministratorDataService = /** @class */ (function () {
|
|
373
373
|
function AdministratorDataService(baseDataService) {
|
|
@@ -545,13 +545,13 @@
|
|
|
545
545
|
var SET_DISPLAY_UI_EXTENSION_POINTS = apolloAngular.gql(templateObject_8$7 || (templateObject_8$7 = __makeTemplateObject(["\n mutation SetDisplayUiExtensionPoints($display: Boolean!) {\n setDisplayUiExtensionPoints(display: $display) @client\n }\n"], ["\n mutation SetDisplayUiExtensionPoints($display: Boolean!) {\n setDisplayUiExtensionPoints(display: $display) @client\n }\n"])));
|
|
546
546
|
var SET_CONTENT_LANGUAGE = apolloAngular.gql(templateObject_9$7 || (templateObject_9$7 = __makeTemplateObject(["\n mutation SetContentLanguage($languageCode: LanguageCode!) {\n setContentLanguage(languageCode: $languageCode) @client\n }\n"], ["\n mutation SetContentLanguage($languageCode: LanguageCode!) {\n setContentLanguage(languageCode: $languageCode) @client\n }\n"])));
|
|
547
547
|
var SET_UI_THEME = apolloAngular.gql(templateObject_10$6 || (templateObject_10$6 = __makeTemplateObject(["\n mutation SetUiTheme($theme: String!) {\n setUiTheme(theme: $theme) @client\n }\n"], ["\n mutation SetUiTheme($theme: String!) {\n setUiTheme(theme: $theme) @client\n }\n"])));
|
|
548
|
-
var GET_NEWTORK_STATUS = apolloAngular.gql(templateObject_11$
|
|
549
|
-
var GET_USER_STATUS = apolloAngular.gql(templateObject_12$
|
|
550
|
-
var GET_UI_STATE = apolloAngular.gql(templateObject_13$
|
|
548
|
+
var GET_NEWTORK_STATUS = apolloAngular.gql(templateObject_11$6 || (templateObject_11$6 = __makeTemplateObject(["\n query GetNetworkStatus {\n networkStatus @client {\n inFlightRequests\n }\n }\n"], ["\n query GetNetworkStatus {\n networkStatus @client {\n inFlightRequests\n }\n }\n"])));
|
|
549
|
+
var GET_USER_STATUS = apolloAngular.gql(templateObject_12$6 || (templateObject_12$6 = __makeTemplateObject(["\n query GetUserStatus {\n userStatus @client {\n ...UserStatus\n }\n }\n ", "\n"], ["\n query GetUserStatus {\n userStatus @client {\n ...UserStatus\n }\n }\n ", "\n"])), USER_STATUS_FRAGMENT);
|
|
550
|
+
var GET_UI_STATE = apolloAngular.gql(templateObject_13$6 || (templateObject_13$6 = __makeTemplateObject(["\n query GetUiState {\n uiState @client {\n language\n locale\n contentLanguage\n theme\n displayUiExtensionPoints\n }\n }\n"], ["\n query GetUiState {\n uiState @client {\n language\n locale\n contentLanguage\n theme\n displayUiExtensionPoints\n }\n }\n"])));
|
|
551
551
|
var GET_CLIENT_STATE = apolloAngular.gql(templateObject_14$4 || (templateObject_14$4 = __makeTemplateObject(["\n query GetClientState {\n networkStatus @client {\n inFlightRequests\n }\n userStatus @client {\n ...UserStatus\n }\n uiState @client {\n language\n locale\n contentLanguage\n theme\n displayUiExtensionPoints\n }\n }\n ", "\n"], ["\n query GetClientState {\n networkStatus @client {\n inFlightRequests\n }\n userStatus @client {\n ...UserStatus\n }\n uiState @client {\n language\n locale\n contentLanguage\n theme\n displayUiExtensionPoints\n }\n }\n ", "\n"])), USER_STATUS_FRAGMENT);
|
|
552
552
|
var SET_ACTIVE_CHANNEL = apolloAngular.gql(templateObject_15$4 || (templateObject_15$4 = __makeTemplateObject(["\n mutation SetActiveChannel($channelId: ID!) {\n setActiveChannel(channelId: $channelId) @client {\n ...UserStatus\n }\n }\n ", "\n"], ["\n mutation SetActiveChannel($channelId: ID!) {\n setActiveChannel(channelId: $channelId) @client {\n ...UserStatus\n }\n }\n ", "\n"])), USER_STATUS_FRAGMENT);
|
|
553
553
|
var UPDATE_USER_CHANNELS = apolloAngular.gql(templateObject_16$4 || (templateObject_16$4 = __makeTemplateObject(["\n mutation UpdateUserChannels($channels: [CurrentUserChannelInput!]!) {\n updateUserChannels(channels: $channels) @client {\n ...UserStatus\n }\n }\n ", "\n"], ["\n mutation UpdateUserChannels($channels: [CurrentUserChannelInput!]!) {\n updateUserChannels(channels: $channels) @client {\n ...UserStatus\n }\n }\n ", "\n"])), USER_STATUS_FRAGMENT);
|
|
554
|
-
var templateObject_1$8, templateObject_2$8, templateObject_3$8, templateObject_4$8, templateObject_5$8, templateObject_6$8, templateObject_7$8, templateObject_8$7, templateObject_9$7, templateObject_10$6, templateObject_11$
|
|
554
|
+
var templateObject_1$8, templateObject_2$8, templateObject_3$8, templateObject_4$8, templateObject_5$8, templateObject_6$8, templateObject_7$8, templateObject_8$7, templateObject_9$7, templateObject_10$6, templateObject_11$6, templateObject_12$6, templateObject_13$6, templateObject_14$4, templateObject_15$4, templateObject_16$4;
|
|
555
555
|
|
|
556
556
|
/**
|
|
557
557
|
* @description
|
|
@@ -651,9 +651,9 @@
|
|
|
651
651
|
var ZONE_FRAGMENT = apolloAngular.gql(templateObject_8$6 || (templateObject_8$6 = __makeTemplateObject(["\n fragment Zone on Zone {\n id\n createdAt\n updatedAt\n name\n members {\n ...Country\n }\n }\n ", "\n"], ["\n fragment Zone on Zone {\n id\n createdAt\n updatedAt\n name\n members {\n ...Country\n }\n }\n ", "\n"])), COUNTRY_FRAGMENT);
|
|
652
652
|
var GET_ZONES = apolloAngular.gql(templateObject_9$6 || (templateObject_9$6 = __makeTemplateObject(["\n query GetZones {\n zones {\n ...Zone\n members {\n createdAt\n updatedAt\n id\n name\n code\n enabled\n }\n }\n }\n ", "\n"], ["\n query GetZones {\n zones {\n ...Zone\n members {\n createdAt\n updatedAt\n id\n name\n code\n enabled\n }\n }\n }\n ", "\n"])), ZONE_FRAGMENT);
|
|
653
653
|
var GET_ZONE = apolloAngular.gql(templateObject_10$5 || (templateObject_10$5 = __makeTemplateObject(["\n query GetZone($id: ID!) {\n zone(id: $id) {\n ...Zone\n }\n }\n ", "\n"], ["\n query GetZone($id: ID!) {\n zone(id: $id) {\n ...Zone\n }\n }\n ", "\n"])), ZONE_FRAGMENT);
|
|
654
|
-
var CREATE_ZONE = apolloAngular.gql(templateObject_11$
|
|
655
|
-
var UPDATE_ZONE = apolloAngular.gql(templateObject_12$
|
|
656
|
-
var DELETE_ZONE = apolloAngular.gql(templateObject_13$
|
|
654
|
+
var CREATE_ZONE = apolloAngular.gql(templateObject_11$5 || (templateObject_11$5 = __makeTemplateObject(["\n mutation CreateZone($input: CreateZoneInput!) {\n createZone(input: $input) {\n ...Zone\n }\n }\n ", "\n"], ["\n mutation CreateZone($input: CreateZoneInput!) {\n createZone(input: $input) {\n ...Zone\n }\n }\n ", "\n"])), ZONE_FRAGMENT);
|
|
655
|
+
var UPDATE_ZONE = apolloAngular.gql(templateObject_12$5 || (templateObject_12$5 = __makeTemplateObject(["\n mutation UpdateZone($input: UpdateZoneInput!) {\n updateZone(input: $input) {\n ...Zone\n }\n }\n ", "\n"], ["\n mutation UpdateZone($input: UpdateZoneInput!) {\n updateZone(input: $input) {\n ...Zone\n }\n }\n ", "\n"])), ZONE_FRAGMENT);
|
|
656
|
+
var DELETE_ZONE = apolloAngular.gql(templateObject_13$5 || (templateObject_13$5 = __makeTemplateObject(["\n mutation DeleteZone($id: ID!) {\n deleteZone(id: $id) {\n message\n result\n }\n }\n"], ["\n mutation DeleteZone($id: ID!) {\n deleteZone(id: $id) {\n message\n result\n }\n }\n"])));
|
|
657
657
|
var ADD_MEMBERS_TO_ZONE = apolloAngular.gql(templateObject_14$3 || (templateObject_14$3 = __makeTemplateObject(["\n mutation AddMembersToZone($zoneId: ID!, $memberIds: [ID!]!) {\n addMembersToZone(zoneId: $zoneId, memberIds: $memberIds) {\n ...Zone\n }\n }\n ", "\n"], ["\n mutation AddMembersToZone($zoneId: ID!, $memberIds: [ID!]!) {\n addMembersToZone(zoneId: $zoneId, memberIds: $memberIds) {\n ...Zone\n }\n }\n ", "\n"])), ZONE_FRAGMENT);
|
|
658
658
|
var REMOVE_MEMBERS_FROM_ZONE = apolloAngular.gql(templateObject_15$3 || (templateObject_15$3 = __makeTemplateObject(["\n mutation RemoveMembersFromZone($zoneId: ID!, $memberIds: [ID!]!) {\n removeMembersFromZone(zoneId: $zoneId, memberIds: $memberIds) {\n ...Zone\n }\n }\n ", "\n"], ["\n mutation RemoveMembersFromZone($zoneId: ID!, $memberIds: [ID!]!) {\n removeMembersFromZone(zoneId: $zoneId, memberIds: $memberIds) {\n ...Zone\n }\n }\n ", "\n"])), ZONE_FRAGMENT);
|
|
659
659
|
var TAX_CATEGORY_FRAGMENT = apolloAngular.gql(templateObject_16$3 || (templateObject_16$3 = __makeTemplateObject(["\n fragment TaxCategory on TaxCategory {\n id\n createdAt\n updatedAt\n name\n isDefault\n }\n"], ["\n fragment TaxCategory on TaxCategory {\n id\n createdAt\n updatedAt\n name\n isDefault\n }\n"])));
|
|
@@ -668,25 +668,25 @@
|
|
|
668
668
|
var GET_TAX_RATE = apolloAngular.gql(templateObject_25$2 || (templateObject_25$2 = __makeTemplateObject(["\n query GetTaxRate($id: ID!) {\n taxRate(id: $id) {\n ...TaxRate\n }\n }\n ", "\n"], ["\n query GetTaxRate($id: ID!) {\n taxRate(id: $id) {\n ...TaxRate\n }\n }\n ", "\n"])), TAX_RATE_FRAGMENT);
|
|
669
669
|
var CREATE_TAX_RATE = apolloAngular.gql(templateObject_26$2 || (templateObject_26$2 = __makeTemplateObject(["\n mutation CreateTaxRate($input: CreateTaxRateInput!) {\n createTaxRate(input: $input) {\n ...TaxRate\n }\n }\n ", "\n"], ["\n mutation CreateTaxRate($input: CreateTaxRateInput!) {\n createTaxRate(input: $input) {\n ...TaxRate\n }\n }\n ", "\n"])), TAX_RATE_FRAGMENT);
|
|
670
670
|
var UPDATE_TAX_RATE = apolloAngular.gql(templateObject_27$2 || (templateObject_27$2 = __makeTemplateObject(["\n mutation UpdateTaxRate($input: UpdateTaxRateInput!) {\n updateTaxRate(input: $input) {\n ...TaxRate\n }\n }\n ", "\n"], ["\n mutation UpdateTaxRate($input: UpdateTaxRateInput!) {\n updateTaxRate(input: $input) {\n ...TaxRate\n }\n }\n ", "\n"])), TAX_RATE_FRAGMENT);
|
|
671
|
-
var DELETE_TAX_RATE = apolloAngular.gql(templateObject_28$
|
|
672
|
-
var CHANNEL_FRAGMENT = apolloAngular.gql(templateObject_29$
|
|
673
|
-
var GET_CHANNELS = apolloAngular.gql(templateObject_30$
|
|
674
|
-
var GET_CHANNEL = apolloAngular.gql(templateObject_31$
|
|
675
|
-
var GET_ACTIVE_CHANNEL = apolloAngular.gql(templateObject_32$
|
|
676
|
-
var CREATE_CHANNEL = apolloAngular.gql(templateObject_33$
|
|
677
|
-
var UPDATE_CHANNEL = apolloAngular.gql(templateObject_34$
|
|
678
|
-
var DELETE_CHANNEL = apolloAngular.gql(templateObject_35$
|
|
679
|
-
var PAYMENT_METHOD_FRAGMENT = apolloAngular.gql(templateObject_36$
|
|
680
|
-
var GET_PAYMENT_METHOD_LIST = apolloAngular.gql(templateObject_37$
|
|
681
|
-
var GET_PAYMENT_METHOD_OPERATIONS = apolloAngular.gql(templateObject_38$
|
|
682
|
-
var GET_PAYMENT_METHOD = apolloAngular.gql(templateObject_39$
|
|
671
|
+
var DELETE_TAX_RATE = apolloAngular.gql(templateObject_28$2 || (templateObject_28$2 = __makeTemplateObject(["\n mutation DeleteTaxRate($id: ID!) {\n deleteTaxRate(id: $id) {\n result\n message\n }\n }\n"], ["\n mutation DeleteTaxRate($id: ID!) {\n deleteTaxRate(id: $id) {\n result\n message\n }\n }\n"])));
|
|
672
|
+
var CHANNEL_FRAGMENT = apolloAngular.gql(templateObject_29$2 || (templateObject_29$2 = __makeTemplateObject(["\n fragment Channel on Channel {\n id\n createdAt\n updatedAt\n code\n token\n pricesIncludeTax\n currencyCode\n defaultLanguageCode\n defaultShippingZone {\n id\n name\n }\n defaultTaxZone {\n id\n name\n }\n }\n"], ["\n fragment Channel on Channel {\n id\n createdAt\n updatedAt\n code\n token\n pricesIncludeTax\n currencyCode\n defaultLanguageCode\n defaultShippingZone {\n id\n name\n }\n defaultTaxZone {\n id\n name\n }\n }\n"])));
|
|
673
|
+
var GET_CHANNELS = apolloAngular.gql(templateObject_30$2 || (templateObject_30$2 = __makeTemplateObject(["\n query GetChannels {\n channels {\n ...Channel\n }\n }\n ", "\n"], ["\n query GetChannels {\n channels {\n ...Channel\n }\n }\n ", "\n"])), CHANNEL_FRAGMENT);
|
|
674
|
+
var GET_CHANNEL = apolloAngular.gql(templateObject_31$2 || (templateObject_31$2 = __makeTemplateObject(["\n query GetChannel($id: ID!) {\n channel(id: $id) {\n ...Channel\n }\n }\n ", "\n"], ["\n query GetChannel($id: ID!) {\n channel(id: $id) {\n ...Channel\n }\n }\n ", "\n"])), CHANNEL_FRAGMENT);
|
|
675
|
+
var GET_ACTIVE_CHANNEL = apolloAngular.gql(templateObject_32$2 || (templateObject_32$2 = __makeTemplateObject(["\n query GetActiveChannel {\n activeChannel {\n ...Channel\n }\n }\n ", "\n"], ["\n query GetActiveChannel {\n activeChannel {\n ...Channel\n }\n }\n ", "\n"])), CHANNEL_FRAGMENT);
|
|
676
|
+
var CREATE_CHANNEL = apolloAngular.gql(templateObject_33$2 || (templateObject_33$2 = __makeTemplateObject(["\n mutation CreateChannel($input: CreateChannelInput!) {\n createChannel(input: $input) {\n ...Channel\n ...ErrorResult\n }\n }\n ", "\n ", "\n"], ["\n mutation CreateChannel($input: CreateChannelInput!) {\n createChannel(input: $input) {\n ...Channel\n ...ErrorResult\n }\n }\n ", "\n ", "\n"])), CHANNEL_FRAGMENT, ERROR_RESULT_FRAGMENT);
|
|
677
|
+
var UPDATE_CHANNEL = apolloAngular.gql(templateObject_34$2 || (templateObject_34$2 = __makeTemplateObject(["\n mutation UpdateChannel($input: UpdateChannelInput!) {\n updateChannel(input: $input) {\n ...Channel\n ...ErrorResult\n }\n }\n ", "\n ", "\n"], ["\n mutation UpdateChannel($input: UpdateChannelInput!) {\n updateChannel(input: $input) {\n ...Channel\n ...ErrorResult\n }\n }\n ", "\n ", "\n"])), CHANNEL_FRAGMENT, ERROR_RESULT_FRAGMENT);
|
|
678
|
+
var DELETE_CHANNEL = apolloAngular.gql(templateObject_35$2 || (templateObject_35$2 = __makeTemplateObject(["\n mutation DeleteChannel($id: ID!) {\n deleteChannel(id: $id) {\n result\n message\n }\n }\n"], ["\n mutation DeleteChannel($id: ID!) {\n deleteChannel(id: $id) {\n result\n message\n }\n }\n"])));
|
|
679
|
+
var PAYMENT_METHOD_FRAGMENT = apolloAngular.gql(templateObject_36$2 || (templateObject_36$2 = __makeTemplateObject(["\n fragment PaymentMethod on PaymentMethod {\n id\n createdAt\n updatedAt\n name\n code\n description\n enabled\n checker {\n ...ConfigurableOperation\n }\n handler {\n ...ConfigurableOperation\n }\n }\n ", "\n"], ["\n fragment PaymentMethod on PaymentMethod {\n id\n createdAt\n updatedAt\n name\n code\n description\n enabled\n checker {\n ...ConfigurableOperation\n }\n handler {\n ...ConfigurableOperation\n }\n }\n ", "\n"])), CONFIGURABLE_OPERATION_FRAGMENT);
|
|
680
|
+
var GET_PAYMENT_METHOD_LIST = apolloAngular.gql(templateObject_37$2 || (templateObject_37$2 = __makeTemplateObject(["\n query GetPaymentMethodList($options: PaymentMethodListOptions!) {\n paymentMethods(options: $options) {\n items {\n ...PaymentMethod\n }\n totalItems\n }\n }\n ", "\n"], ["\n query GetPaymentMethodList($options: PaymentMethodListOptions!) {\n paymentMethods(options: $options) {\n items {\n ...PaymentMethod\n }\n totalItems\n }\n }\n ", "\n"])), PAYMENT_METHOD_FRAGMENT);
|
|
681
|
+
var GET_PAYMENT_METHOD_OPERATIONS = apolloAngular.gql(templateObject_38$2 || (templateObject_38$2 = __makeTemplateObject(["\n query GetPaymentMethodOperations {\n paymentMethodEligibilityCheckers {\n ...ConfigurableOperationDef\n }\n paymentMethodHandlers {\n ...ConfigurableOperationDef\n }\n }\n ", "\n"], ["\n query GetPaymentMethodOperations {\n paymentMethodEligibilityCheckers {\n ...ConfigurableOperationDef\n }\n paymentMethodHandlers {\n ...ConfigurableOperationDef\n }\n }\n ", "\n"])), CONFIGURABLE_OPERATION_DEF_FRAGMENT);
|
|
682
|
+
var GET_PAYMENT_METHOD = apolloAngular.gql(templateObject_39$2 || (templateObject_39$2 = __makeTemplateObject(["\n query GetPaymentMethod($id: ID!) {\n paymentMethod(id: $id) {\n ...PaymentMethod\n }\n }\n ", "\n"], ["\n query GetPaymentMethod($id: ID!) {\n paymentMethod(id: $id) {\n ...PaymentMethod\n }\n }\n ", "\n"])), PAYMENT_METHOD_FRAGMENT);
|
|
683
683
|
var CREATE_PAYMENT_METHOD = apolloAngular.gql(templateObject_40$1 || (templateObject_40$1 = __makeTemplateObject(["\n mutation CreatePaymentMethod($input: CreatePaymentMethodInput!) {\n createPaymentMethod(input: $input) {\n ...PaymentMethod\n }\n }\n ", "\n"], ["\n mutation CreatePaymentMethod($input: CreatePaymentMethodInput!) {\n createPaymentMethod(input: $input) {\n ...PaymentMethod\n }\n }\n ", "\n"])), PAYMENT_METHOD_FRAGMENT);
|
|
684
684
|
var UPDATE_PAYMENT_METHOD = apolloAngular.gql(templateObject_41$1 || (templateObject_41$1 = __makeTemplateObject(["\n mutation UpdatePaymentMethod($input: UpdatePaymentMethodInput!) {\n updatePaymentMethod(input: $input) {\n ...PaymentMethod\n }\n }\n ", "\n"], ["\n mutation UpdatePaymentMethod($input: UpdatePaymentMethodInput!) {\n updatePaymentMethod(input: $input) {\n ...PaymentMethod\n }\n }\n ", "\n"])), PAYMENT_METHOD_FRAGMENT);
|
|
685
685
|
var DELETE_PAYMENT_METHOD = apolloAngular.gql(templateObject_42$1 || (templateObject_42$1 = __makeTemplateObject(["\n mutation DeletePaymentMethod($id: ID!, $force: Boolean) {\n deletePaymentMethod(id: $id, force: $force) {\n result\n message\n }\n }\n"], ["\n mutation DeletePaymentMethod($id: ID!, $force: Boolean) {\n deletePaymentMethod(id: $id, force: $force) {\n result\n message\n }\n }\n"])));
|
|
686
686
|
var GLOBAL_SETTINGS_FRAGMENT = apolloAngular.gql(templateObject_43$1 || (templateObject_43$1 = __makeTemplateObject(["\n fragment GlobalSettings on GlobalSettings {\n id\n availableLanguages\n trackInventory\n outOfStockThreshold\n serverConfig {\n permissions {\n name\n description\n assignable\n }\n orderProcess {\n name\n }\n }\n }\n"], ["\n fragment GlobalSettings on GlobalSettings {\n id\n availableLanguages\n trackInventory\n outOfStockThreshold\n serverConfig {\n permissions {\n name\n description\n assignable\n }\n orderProcess {\n name\n }\n }\n }\n"])));
|
|
687
687
|
var GET_GLOBAL_SETTINGS = apolloAngular.gql(templateObject_44$1 || (templateObject_44$1 = __makeTemplateObject(["\n query GetGlobalSettings {\n globalSettings {\n ...GlobalSettings\n }\n }\n ", "\n"], ["\n query GetGlobalSettings {\n globalSettings {\n ...GlobalSettings\n }\n }\n ", "\n"])), GLOBAL_SETTINGS_FRAGMENT);
|
|
688
688
|
var UPDATE_GLOBAL_SETTINGS = apolloAngular.gql(templateObject_45$1 || (templateObject_45$1 = __makeTemplateObject(["\n mutation UpdateGlobalSettings($input: UpdateGlobalSettingsInput!) {\n updateGlobalSettings(input: $input) {\n ...GlobalSettings\n ...ErrorResult\n }\n }\n ", "\n ", "\n"], ["\n mutation UpdateGlobalSettings($input: UpdateGlobalSettingsInput!) {\n updateGlobalSettings(input: $input) {\n ...GlobalSettings\n ...ErrorResult\n }\n }\n ", "\n ", "\n"])), GLOBAL_SETTINGS_FRAGMENT, ERROR_RESULT_FRAGMENT);
|
|
689
|
-
var CUSTOM_FIELD_CONFIG_FRAGMENT = apolloAngular.gql(templateObject_46 || (templateObject_46 = __makeTemplateObject(["\n fragment CustomFieldConfig on CustomField {\n name\n type\n list\n description {\n languageCode\n value\n }\n label {\n languageCode\n value\n }\n readonly\n nullable\n ui\n }\n"], ["\n fragment CustomFieldConfig on CustomField {\n name\n type\n list\n description {\n languageCode\n value\n }\n label {\n languageCode\n value\n }\n readonly\n nullable\n ui\n }\n"])));
|
|
689
|
+
var CUSTOM_FIELD_CONFIG_FRAGMENT = apolloAngular.gql(templateObject_46$1 || (templateObject_46$1 = __makeTemplateObject(["\n fragment CustomFieldConfig on CustomField {\n name\n type\n list\n description {\n languageCode\n value\n }\n label {\n languageCode\n value\n }\n readonly\n nullable\n ui\n }\n"], ["\n fragment CustomFieldConfig on CustomField {\n name\n type\n list\n description {\n languageCode\n value\n }\n label {\n languageCode\n value\n }\n readonly\n nullable\n ui\n }\n"])));
|
|
690
690
|
var STRING_CUSTOM_FIELD_FRAGMENT = apolloAngular.gql(templateObject_47 || (templateObject_47 = __makeTemplateObject(["\n fragment StringCustomField on StringCustomFieldConfig {\n ...CustomFieldConfig\n pattern\n options {\n label {\n languageCode\n value\n }\n value\n }\n }\n ", "\n"], ["\n fragment StringCustomField on StringCustomFieldConfig {\n ...CustomFieldConfig\n pattern\n options {\n label {\n languageCode\n value\n }\n value\n }\n }\n ", "\n"])), CUSTOM_FIELD_CONFIG_FRAGMENT);
|
|
691
691
|
var LOCALE_STRING_CUSTOM_FIELD_FRAGMENT = apolloAngular.gql(templateObject_48 || (templateObject_48 = __makeTemplateObject(["\n fragment LocaleStringCustomField on LocaleStringCustomFieldConfig {\n ...CustomFieldConfig\n pattern\n }\n ", "\n"], ["\n fragment LocaleStringCustomField on LocaleStringCustomFieldConfig {\n ...CustomFieldConfig\n pattern\n }\n ", "\n"])), CUSTOM_FIELD_CONFIG_FRAGMENT);
|
|
692
692
|
var TEXT_CUSTOM_FIELD_FRAGMENT = apolloAngular.gql(templateObject_49 || (templateObject_49 = __makeTemplateObject(["\n fragment TextCustomField on TextCustomFieldConfig {\n ...CustomFieldConfig\n }\n ", "\n"], ["\n fragment TextCustomField on TextCustomFieldConfig {\n ...CustomFieldConfig\n }\n ", "\n"])), CUSTOM_FIELD_CONFIG_FRAGMENT);
|
|
@@ -706,7 +706,7 @@
|
|
|
706
706
|
var REINDEX = apolloAngular.gql(templateObject_63 || (templateObject_63 = __makeTemplateObject(["\n mutation Reindex {\n reindex {\n ...JobInfo\n }\n }\n ", "\n"], ["\n mutation Reindex {\n reindex {\n ...JobInfo\n }\n }\n ", "\n"])), JOB_INFO_FRAGMENT);
|
|
707
707
|
var GET_PENDING_SEARCH_INDEX_UPDATES = apolloAngular.gql(templateObject_64 || (templateObject_64 = __makeTemplateObject(["\n query GetPendingSearchIndexUpdates {\n pendingSearchIndexUpdates\n }\n"], ["\n query GetPendingSearchIndexUpdates {\n pendingSearchIndexUpdates\n }\n"])));
|
|
708
708
|
var RUN_PENDING_SEARCH_INDEX_UPDATES = apolloAngular.gql(templateObject_65 || (templateObject_65 = __makeTemplateObject(["\n mutation RunPendingSearchIndexUpdates {\n runPendingSearchIndexUpdates {\n success\n }\n }\n"], ["\n mutation RunPendingSearchIndexUpdates {\n runPendingSearchIndexUpdates {\n success\n }\n }\n"])));
|
|
709
|
-
var templateObject_1$7, templateObject_2$7, templateObject_3$7, templateObject_4$7, templateObject_5$7, templateObject_6$7, templateObject_7$7, templateObject_8$6, templateObject_9$6, templateObject_10$5, templateObject_11$
|
|
709
|
+
var templateObject_1$7, templateObject_2$7, templateObject_3$7, templateObject_4$7, templateObject_5$7, templateObject_6$7, templateObject_7$7, templateObject_8$6, templateObject_9$6, templateObject_10$5, templateObject_11$5, templateObject_12$5, templateObject_13$5, templateObject_14$3, templateObject_15$3, templateObject_16$3, templateObject_17$3, templateObject_18$3, templateObject_19$3, templateObject_20$3, templateObject_21$3, templateObject_22$3, templateObject_23$2, templateObject_24$2, templateObject_25$2, templateObject_26$2, templateObject_27$2, templateObject_28$2, templateObject_29$2, templateObject_30$2, templateObject_31$2, templateObject_32$2, templateObject_33$2, templateObject_34$2, templateObject_35$2, templateObject_36$2, templateObject_37$2, templateObject_38$2, templateObject_39$2, templateObject_40$1, templateObject_41$1, templateObject_42$1, templateObject_43$1, templateObject_44$1, templateObject_45$1, templateObject_46$1, templateObject_47, templateObject_48, templateObject_49, templateObject_50, templateObject_51, templateObject_52, templateObject_53, templateObject_54, templateObject_55, templateObject_56, templateObject_57, templateObject_58, templateObject_59, templateObject_60, templateObject_61, templateObject_62, templateObject_63, templateObject_64, templateObject_65;
|
|
710
710
|
|
|
711
711
|
function initializeServerConfigService(serverConfigService) {
|
|
712
712
|
return serverConfigService.init();
|
|
@@ -902,6 +902,10 @@
|
|
|
902
902
|
if (inputTypeName === 'ModifyOrderInput') {
|
|
903
903
|
return 'Order';
|
|
904
904
|
}
|
|
905
|
+
if (inputTypeName === 'AddItemToDraftOrderInput' ||
|
|
906
|
+
inputTypeName === 'AdjustDraftOrderLineInput') {
|
|
907
|
+
return 'OrderLine';
|
|
908
|
+
}
|
|
905
909
|
var createMatch = inputTypeName.match(CREATE_ENTITY_REGEX);
|
|
906
910
|
if (createMatch) {
|
|
907
911
|
return createMatch[1];
|
|
@@ -1242,54 +1246,58 @@
|
|
|
1242
1246
|
var UPDATE_PRODUCT = apolloAngular.gql(templateObject_8$5 || (templateObject_8$5 = __makeTemplateObject(["\n mutation UpdateProduct($input: UpdateProductInput!, $variantListOptions: ProductVariantListOptions) {\n updateProduct(input: $input) {\n ...ProductDetail\n variantList(options: $variantListOptions) {\n items {\n ...ProductVariant\n }\n totalItems\n }\n }\n }\n ", "\n ", "\n"], ["\n mutation UpdateProduct($input: UpdateProductInput!, $variantListOptions: ProductVariantListOptions) {\n updateProduct(input: $input) {\n ...ProductDetail\n variantList(options: $variantListOptions) {\n items {\n ...ProductVariant\n }\n totalItems\n }\n }\n }\n ", "\n ", "\n"])), PRODUCT_DETAIL_FRAGMENT, PRODUCT_VARIANT_FRAGMENT);
|
|
1243
1247
|
var CREATE_PRODUCT = apolloAngular.gql(templateObject_9$5 || (templateObject_9$5 = __makeTemplateObject(["\n mutation CreateProduct($input: CreateProductInput!, $variantListOptions: ProductVariantListOptions) {\n createProduct(input: $input) {\n ...ProductDetail\n variantList(options: $variantListOptions) {\n items {\n ...ProductVariant\n }\n totalItems\n }\n }\n }\n ", "\n ", "\n"], ["\n mutation CreateProduct($input: CreateProductInput!, $variantListOptions: ProductVariantListOptions) {\n createProduct(input: $input) {\n ...ProductDetail\n variantList(options: $variantListOptions) {\n items {\n ...ProductVariant\n }\n totalItems\n }\n }\n }\n ", "\n ", "\n"])), PRODUCT_DETAIL_FRAGMENT, PRODUCT_VARIANT_FRAGMENT);
|
|
1244
1248
|
var DELETE_PRODUCT = apolloAngular.gql(templateObject_10$4 || (templateObject_10$4 = __makeTemplateObject(["\n mutation DeleteProduct($id: ID!) {\n deleteProduct(id: $id) {\n result\n message\n }\n }\n"], ["\n mutation DeleteProduct($id: ID!) {\n deleteProduct(id: $id) {\n result\n message\n }\n }\n"])));
|
|
1245
|
-
var
|
|
1246
|
-
var
|
|
1247
|
-
var
|
|
1248
|
-
var
|
|
1249
|
-
var
|
|
1250
|
-
var
|
|
1251
|
-
var
|
|
1252
|
-
var
|
|
1253
|
-
var
|
|
1254
|
-
var
|
|
1255
|
-
var
|
|
1256
|
-
var
|
|
1257
|
-
var
|
|
1258
|
-
var
|
|
1259
|
-
var
|
|
1260
|
-
var
|
|
1261
|
-
var
|
|
1262
|
-
var
|
|
1263
|
-
var
|
|
1264
|
-
var
|
|
1265
|
-
var
|
|
1266
|
-
var
|
|
1267
|
-
var
|
|
1268
|
-
var
|
|
1269
|
-
var
|
|
1270
|
-
var
|
|
1271
|
-
var
|
|
1272
|
-
var
|
|
1273
|
-
var
|
|
1274
|
-
var
|
|
1275
|
-
var
|
|
1276
|
-
var
|
|
1277
|
-
var
|
|
1278
|
-
var
|
|
1279
|
-
var
|
|
1280
|
-
var
|
|
1249
|
+
var DELETE_PRODUCTS = apolloAngular.gql(templateObject_11$4 || (templateObject_11$4 = __makeTemplateObject(["\n mutation DeleteProducts($ids: [ID!]!) {\n deleteProducts(ids: $ids) {\n result\n message\n }\n }\n"], ["\n mutation DeleteProducts($ids: [ID!]!) {\n deleteProducts(ids: $ids) {\n result\n message\n }\n }\n"])));
|
|
1250
|
+
var CREATE_PRODUCT_VARIANTS = apolloAngular.gql(templateObject_12$4 || (templateObject_12$4 = __makeTemplateObject(["\n mutation CreateProductVariants($input: [CreateProductVariantInput!]!) {\n createProductVariants(input: $input) {\n ...ProductVariant\n }\n }\n ", "\n"], ["\n mutation CreateProductVariants($input: [CreateProductVariantInput!]!) {\n createProductVariants(input: $input) {\n ...ProductVariant\n }\n }\n ", "\n"])), PRODUCT_VARIANT_FRAGMENT);
|
|
1251
|
+
var UPDATE_PRODUCT_VARIANTS = apolloAngular.gql(templateObject_13$4 || (templateObject_13$4 = __makeTemplateObject(["\n mutation UpdateProductVariants($input: [UpdateProductVariantInput!]!) {\n updateProductVariants(input: $input) {\n ...ProductVariant\n }\n }\n ", "\n"], ["\n mutation UpdateProductVariants($input: [UpdateProductVariantInput!]!) {\n updateProductVariants(input: $input) {\n ...ProductVariant\n }\n }\n ", "\n"])), PRODUCT_VARIANT_FRAGMENT);
|
|
1252
|
+
var CREATE_PRODUCT_OPTION_GROUP = apolloAngular.gql(templateObject_14$2 || (templateObject_14$2 = __makeTemplateObject(["\n mutation CreateProductOptionGroup($input: CreateProductOptionGroupInput!) {\n createProductOptionGroup(input: $input) {\n ...ProductOptionGroupWithOptions\n }\n }\n ", "\n"], ["\n mutation CreateProductOptionGroup($input: CreateProductOptionGroupInput!) {\n createProductOptionGroup(input: $input) {\n ...ProductOptionGroupWithOptions\n }\n }\n ", "\n"])), PRODUCT_OPTION_GROUP_WITH_OPTIONS_FRAGMENT);
|
|
1253
|
+
var GET_PRODUCT_OPTION_GROUP = apolloAngular.gql(templateObject_15$2 || (templateObject_15$2 = __makeTemplateObject(["\n query GetProductOptionGroup($id: ID!) {\n productOptionGroup(id: $id) {\n ...ProductOptionGroupWithOptions\n }\n }\n ", "\n"], ["\n query GetProductOptionGroup($id: ID!) {\n productOptionGroup(id: $id) {\n ...ProductOptionGroupWithOptions\n }\n }\n ", "\n"])), PRODUCT_OPTION_GROUP_WITH_OPTIONS_FRAGMENT);
|
|
1254
|
+
var ADD_OPTION_TO_GROUP = apolloAngular.gql(templateObject_16$2 || (templateObject_16$2 = __makeTemplateObject(["\n mutation AddOptionToGroup($input: CreateProductOptionInput!) {\n createProductOption(input: $input) {\n id\n createdAt\n updatedAt\n name\n code\n groupId\n }\n }\n"], ["\n mutation AddOptionToGroup($input: CreateProductOptionInput!) {\n createProductOption(input: $input) {\n id\n createdAt\n updatedAt\n name\n code\n groupId\n }\n }\n"])));
|
|
1255
|
+
var ADD_OPTION_GROUP_TO_PRODUCT = apolloAngular.gql(templateObject_17$2 || (templateObject_17$2 = __makeTemplateObject(["\n mutation AddOptionGroupToProduct($productId: ID!, $optionGroupId: ID!) {\n addOptionGroupToProduct(productId: $productId, optionGroupId: $optionGroupId) {\n id\n createdAt\n updatedAt\n optionGroups {\n id\n createdAt\n updatedAt\n code\n options {\n id\n createdAt\n updatedAt\n code\n }\n }\n }\n }\n"], ["\n mutation AddOptionGroupToProduct($productId: ID!, $optionGroupId: ID!) {\n addOptionGroupToProduct(productId: $productId, optionGroupId: $optionGroupId) {\n id\n createdAt\n updatedAt\n optionGroups {\n id\n createdAt\n updatedAt\n code\n options {\n id\n createdAt\n updatedAt\n code\n }\n }\n }\n }\n"])));
|
|
1256
|
+
var REMOVE_OPTION_GROUP_FROM_PRODUCT = apolloAngular.gql(templateObject_18$2 || (templateObject_18$2 = __makeTemplateObject(["\n mutation RemoveOptionGroupFromProduct($productId: ID!, $optionGroupId: ID!) {\n removeOptionGroupFromProduct(productId: $productId, optionGroupId: $optionGroupId) {\n ... on Product {\n id\n createdAt\n updatedAt\n optionGroups {\n id\n createdAt\n updatedAt\n code\n options {\n id\n createdAt\n updatedAt\n code\n }\n }\n }\n ...ErrorResult\n }\n }\n ", "\n"], ["\n mutation RemoveOptionGroupFromProduct($productId: ID!, $optionGroupId: ID!) {\n removeOptionGroupFromProduct(productId: $productId, optionGroupId: $optionGroupId) {\n ... on Product {\n id\n createdAt\n updatedAt\n optionGroups {\n id\n createdAt\n updatedAt\n code\n options {\n id\n createdAt\n updatedAt\n code\n }\n }\n }\n ...ErrorResult\n }\n }\n ", "\n"])), ERROR_RESULT_FRAGMENT);
|
|
1257
|
+
var GET_PRODUCT_WITH_VARIANTS = apolloAngular.gql(templateObject_19$2 || (templateObject_19$2 = __makeTemplateObject(["\n query GetProductWithVariants($id: ID!, $variantListOptions: ProductVariantListOptions) {\n product(id: $id) {\n ...ProductDetail\n variantList(options: $variantListOptions) {\n items {\n ...ProductVariant\n }\n totalItems\n }\n }\n }\n ", "\n ", "\n"], ["\n query GetProductWithVariants($id: ID!, $variantListOptions: ProductVariantListOptions) {\n product(id: $id) {\n ...ProductDetail\n variantList(options: $variantListOptions) {\n items {\n ...ProductVariant\n }\n totalItems\n }\n }\n }\n ", "\n ", "\n"])), PRODUCT_DETAIL_FRAGMENT, PRODUCT_VARIANT_FRAGMENT);
|
|
1258
|
+
var GET_PRODUCT_SIMPLE = apolloAngular.gql(templateObject_20$2 || (templateObject_20$2 = __makeTemplateObject(["\n query GetProductSimple($id: ID!) {\n product(id: $id) {\n id\n name\n featuredAsset {\n ...Asset\n }\n }\n }\n ", "\n"], ["\n query GetProductSimple($id: ID!) {\n product(id: $id) {\n id\n name\n featuredAsset {\n ...Asset\n }\n }\n }\n ", "\n"])), ASSET_FRAGMENT);
|
|
1259
|
+
var GET_PRODUCT_LIST = apolloAngular.gql(templateObject_21$2 || (templateObject_21$2 = __makeTemplateObject(["\n query GetProductList($options: ProductListOptions) {\n products(options: $options) {\n items {\n id\n createdAt\n updatedAt\n enabled\n languageCode\n name\n slug\n featuredAsset {\n id\n createdAt\n updatedAt\n preview\n }\n }\n totalItems\n }\n }\n"], ["\n query GetProductList($options: ProductListOptions) {\n products(options: $options) {\n items {\n id\n createdAt\n updatedAt\n enabled\n languageCode\n name\n slug\n featuredAsset {\n id\n createdAt\n updatedAt\n preview\n }\n }\n totalItems\n }\n }\n"])));
|
|
1260
|
+
var GET_PRODUCT_OPTION_GROUPS = apolloAngular.gql(templateObject_22$2 || (templateObject_22$2 = __makeTemplateObject(["\n query GetProductOptionGroups($filterTerm: String) {\n productOptionGroups(filterTerm: $filterTerm) {\n id\n createdAt\n updatedAt\n languageCode\n code\n name\n options {\n id\n createdAt\n updatedAt\n languageCode\n code\n name\n }\n }\n }\n"], ["\n query GetProductOptionGroups($filterTerm: String) {\n productOptionGroups(filterTerm: $filterTerm) {\n id\n createdAt\n updatedAt\n languageCode\n code\n name\n options {\n id\n createdAt\n updatedAt\n languageCode\n code\n name\n }\n }\n }\n"])));
|
|
1261
|
+
var GET_ASSET_LIST = apolloAngular.gql(templateObject_23$1 || (templateObject_23$1 = __makeTemplateObject(["\n query GetAssetList($options: AssetListOptions) {\n assets(options: $options) {\n items {\n ...Asset\n tags {\n ...Tag\n }\n }\n totalItems\n }\n }\n ", "\n ", "\n"], ["\n query GetAssetList($options: AssetListOptions) {\n assets(options: $options) {\n items {\n ...Asset\n tags {\n ...Tag\n }\n }\n totalItems\n }\n }\n ", "\n ", "\n"])), ASSET_FRAGMENT, TAG_FRAGMENT);
|
|
1262
|
+
var GET_ASSET = apolloAngular.gql(templateObject_24$1 || (templateObject_24$1 = __makeTemplateObject(["\n query GetAsset($id: ID!) {\n asset(id: $id) {\n ...Asset\n tags {\n ...Tag\n }\n }\n }\n ", "\n ", "\n"], ["\n query GetAsset($id: ID!) {\n asset(id: $id) {\n ...Asset\n tags {\n ...Tag\n }\n }\n }\n ", "\n ", "\n"])), ASSET_FRAGMENT, TAG_FRAGMENT);
|
|
1263
|
+
var CREATE_ASSETS = apolloAngular.gql(templateObject_25$1 || (templateObject_25$1 = __makeTemplateObject(["\n mutation CreateAssets($input: [CreateAssetInput!]!) {\n createAssets(input: $input) {\n ...Asset\n ... on Asset {\n tags {\n ...Tag\n }\n }\n ... on ErrorResult {\n message\n }\n }\n }\n ", "\n ", "\n"], ["\n mutation CreateAssets($input: [CreateAssetInput!]!) {\n createAssets(input: $input) {\n ...Asset\n ... on Asset {\n tags {\n ...Tag\n }\n }\n ... on ErrorResult {\n message\n }\n }\n }\n ", "\n ", "\n"])), ASSET_FRAGMENT, TAG_FRAGMENT);
|
|
1264
|
+
var UPDATE_ASSET = apolloAngular.gql(templateObject_26$1 || (templateObject_26$1 = __makeTemplateObject(["\n mutation UpdateAsset($input: UpdateAssetInput!) {\n updateAsset(input: $input) {\n ...Asset\n tags {\n ...Tag\n }\n }\n }\n ", "\n ", "\n"], ["\n mutation UpdateAsset($input: UpdateAssetInput!) {\n updateAsset(input: $input) {\n ...Asset\n tags {\n ...Tag\n }\n }\n }\n ", "\n ", "\n"])), ASSET_FRAGMENT, TAG_FRAGMENT);
|
|
1265
|
+
var DELETE_ASSETS = apolloAngular.gql(templateObject_27$1 || (templateObject_27$1 = __makeTemplateObject(["\n mutation DeleteAssets($input: DeleteAssetsInput!) {\n deleteAssets(input: $input) {\n result\n message\n }\n }\n"], ["\n mutation DeleteAssets($input: DeleteAssetsInput!) {\n deleteAssets(input: $input) {\n result\n message\n }\n }\n"])));
|
|
1266
|
+
var SEARCH_PRODUCTS = apolloAngular.gql(templateObject_28$1 || (templateObject_28$1 = __makeTemplateObject(["\n query SearchProducts($input: SearchInput!) {\n search(input: $input) {\n totalItems\n items {\n enabled\n productId\n productName\n productAsset {\n id\n preview\n focalPoint {\n x\n y\n }\n }\n productVariantId\n productVariantName\n productVariantAsset {\n id\n preview\n focalPoint {\n x\n y\n }\n }\n sku\n channelIds\n }\n facetValues {\n count\n facetValue {\n id\n createdAt\n updatedAt\n name\n facet {\n id\n createdAt\n updatedAt\n name\n }\n }\n }\n }\n }\n"], ["\n query SearchProducts($input: SearchInput!) {\n search(input: $input) {\n totalItems\n items {\n enabled\n productId\n productName\n productAsset {\n id\n preview\n focalPoint {\n x\n y\n }\n }\n productVariantId\n productVariantName\n productVariantAsset {\n id\n preview\n focalPoint {\n x\n y\n }\n }\n sku\n channelIds\n }\n facetValues {\n count\n facetValue {\n id\n createdAt\n updatedAt\n name\n facet {\n id\n createdAt\n updatedAt\n name\n }\n }\n }\n }\n }\n"])));
|
|
1267
|
+
var PRODUCT_SELECTOR_SEARCH = apolloAngular.gql(templateObject_29$1 || (templateObject_29$1 = __makeTemplateObject(["\n query ProductSelectorSearch($term: String!, $take: Int!) {\n search(input: { groupByProduct: false, term: $term, take: $take }) {\n items {\n productVariantId\n productVariantName\n productAsset {\n id\n preview\n focalPoint {\n x\n y\n }\n }\n price {\n ... on SinglePrice {\n value\n }\n }\n priceWithTax {\n ... on SinglePrice {\n value\n }\n }\n sku\n }\n }\n }\n"], ["\n query ProductSelectorSearch($term: String!, $take: Int!) {\n search(input: { groupByProduct: false, term: $term, take: $take }) {\n items {\n productVariantId\n productVariantName\n productAsset {\n id\n preview\n focalPoint {\n x\n y\n }\n }\n price {\n ... on SinglePrice {\n value\n }\n }\n priceWithTax {\n ... on SinglePrice {\n value\n }\n }\n sku\n }\n }\n }\n"])));
|
|
1268
|
+
var UPDATE_PRODUCT_OPTION_GROUP = apolloAngular.gql(templateObject_30$1 || (templateObject_30$1 = __makeTemplateObject(["\n mutation UpdateProductOptionGroup($input: UpdateProductOptionGroupInput!) {\n updateProductOptionGroup(input: $input) {\n ...ProductOptionGroup\n }\n }\n ", "\n"], ["\n mutation UpdateProductOptionGroup($input: UpdateProductOptionGroupInput!) {\n updateProductOptionGroup(input: $input) {\n ...ProductOptionGroup\n }\n }\n ", "\n"])), PRODUCT_OPTION_GROUP_FRAGMENT);
|
|
1269
|
+
var UPDATE_PRODUCT_OPTION = apolloAngular.gql(templateObject_31$1 || (templateObject_31$1 = __makeTemplateObject(["\n mutation UpdateProductOption($input: UpdateProductOptionInput!) {\n updateProductOption(input: $input) {\n ...ProductOption\n }\n }\n ", "\n"], ["\n mutation UpdateProductOption($input: UpdateProductOptionInput!) {\n updateProductOption(input: $input) {\n ...ProductOption\n }\n }\n ", "\n"])), PRODUCT_OPTION_FRAGMENT);
|
|
1270
|
+
var DELETE_PRODUCT_OPTION = apolloAngular.gql(templateObject_32$1 || (templateObject_32$1 = __makeTemplateObject(["\n mutation DeleteProductOption($id: ID!) {\n deleteProductOption(id: $id) {\n result\n message\n }\n }\n"], ["\n mutation DeleteProductOption($id: ID!) {\n deleteProductOption(id: $id) {\n result\n message\n }\n }\n"])));
|
|
1271
|
+
var DELETE_PRODUCT_VARIANT = apolloAngular.gql(templateObject_33$1 || (templateObject_33$1 = __makeTemplateObject(["\n mutation DeleteProductVariant($id: ID!) {\n deleteProductVariant(id: $id) {\n result\n message\n }\n }\n"], ["\n mutation DeleteProductVariant($id: ID!) {\n deleteProductVariant(id: $id) {\n result\n message\n }\n }\n"])));
|
|
1272
|
+
var GET_PRODUCT_VARIANT_OPTIONS = apolloAngular.gql(templateObject_34$1 || (templateObject_34$1 = __makeTemplateObject(["\n query GetProductVariantOptions($id: ID!) {\n product(id: $id) {\n id\n createdAt\n updatedAt\n name\n optionGroups {\n ...ProductOptionGroup\n options {\n ...ProductOption\n }\n }\n variants {\n id\n createdAt\n updatedAt\n enabled\n name\n sku\n price\n stockOnHand\n enabled\n options {\n id\n createdAt\n updatedAt\n name\n code\n groupId\n }\n }\n }\n }\n ", "\n ", "\n"], ["\n query GetProductVariantOptions($id: ID!) {\n product(id: $id) {\n id\n createdAt\n updatedAt\n name\n optionGroups {\n ...ProductOptionGroup\n options {\n ...ProductOption\n }\n }\n variants {\n id\n createdAt\n updatedAt\n enabled\n name\n sku\n price\n stockOnHand\n enabled\n options {\n id\n createdAt\n updatedAt\n name\n code\n groupId\n }\n }\n }\n }\n ", "\n ", "\n"])), PRODUCT_OPTION_GROUP_FRAGMENT, PRODUCT_OPTION_FRAGMENT);
|
|
1273
|
+
var ASSIGN_PRODUCTS_TO_CHANNEL = apolloAngular.gql(templateObject_35$1 || (templateObject_35$1 = __makeTemplateObject(["\n mutation AssignProductsToChannel($input: AssignProductsToChannelInput!) {\n assignProductsToChannel(input: $input) {\n id\n channels {\n id\n code\n }\n }\n }\n"], ["\n mutation AssignProductsToChannel($input: AssignProductsToChannelInput!) {\n assignProductsToChannel(input: $input) {\n id\n channels {\n id\n code\n }\n }\n }\n"])));
|
|
1274
|
+
var ASSIGN_VARIANTS_TO_CHANNEL = apolloAngular.gql(templateObject_36$1 || (templateObject_36$1 = __makeTemplateObject(["\n mutation AssignVariantsToChannel($input: AssignProductVariantsToChannelInput!) {\n assignProductVariantsToChannel(input: $input) {\n id\n channels {\n id\n code\n }\n }\n }\n"], ["\n mutation AssignVariantsToChannel($input: AssignProductVariantsToChannelInput!) {\n assignProductVariantsToChannel(input: $input) {\n id\n channels {\n id\n code\n }\n }\n }\n"])));
|
|
1275
|
+
var REMOVE_PRODUCTS_FROM_CHANNEL = apolloAngular.gql(templateObject_37$1 || (templateObject_37$1 = __makeTemplateObject(["\n mutation RemoveProductsFromChannel($input: RemoveProductsFromChannelInput!) {\n removeProductsFromChannel(input: $input) {\n id\n channels {\n id\n code\n }\n }\n }\n"], ["\n mutation RemoveProductsFromChannel($input: RemoveProductsFromChannelInput!) {\n removeProductsFromChannel(input: $input) {\n id\n channels {\n id\n code\n }\n }\n }\n"])));
|
|
1276
|
+
var REMOVE_VARIANTS_FROM_CHANNEL = apolloAngular.gql(templateObject_38$1 || (templateObject_38$1 = __makeTemplateObject(["\n mutation RemoveVariantsFromChannel($input: RemoveProductVariantsFromChannelInput!) {\n removeProductVariantsFromChannel(input: $input) {\n id\n channels {\n id\n code\n }\n }\n }\n"], ["\n mutation RemoveVariantsFromChannel($input: RemoveProductVariantsFromChannelInput!) {\n removeProductVariantsFromChannel(input: $input) {\n id\n channels {\n id\n code\n }\n }\n }\n"])));
|
|
1277
|
+
var GET_PRODUCT_VARIANT = apolloAngular.gql(templateObject_39$1 || (templateObject_39$1 = __makeTemplateObject(["\n query GetProductVariant($id: ID!) {\n productVariant(id: $id) {\n id\n name\n sku\n stockOnHand\n stockAllocated\n stockLevel\n useGlobalOutOfStockThreshold\n featuredAsset {\n id\n preview\n focalPoint {\n x\n y\n }\n }\n price\n priceWithTax\n product {\n id\n featuredAsset {\n id\n preview\n focalPoint {\n x\n y\n }\n }\n }\n }\n }\n"], ["\n query GetProductVariant($id: ID!) {\n productVariant(id: $id) {\n id\n name\n sku\n stockOnHand\n stockAllocated\n stockLevel\n useGlobalOutOfStockThreshold\n featuredAsset {\n id\n preview\n focalPoint {\n x\n y\n }\n }\n price\n priceWithTax\n product {\n id\n featuredAsset {\n id\n preview\n focalPoint {\n x\n y\n }\n }\n }\n }\n }\n"])));
|
|
1278
|
+
var GET_PRODUCT_VARIANT_LIST_SIMPLE = apolloAngular.gql(templateObject_40 || (templateObject_40 = __makeTemplateObject(["\n query GetProductVariantListSimple($options: ProductVariantListOptions!, $productId: ID) {\n productVariants(options: $options, productId: $productId) {\n items {\n id\n name\n sku\n featuredAsset {\n id\n preview\n focalPoint {\n x\n y\n }\n }\n product {\n id\n featuredAsset {\n id\n preview\n focalPoint {\n x\n y\n }\n }\n }\n }\n totalItems\n }\n }\n"], ["\n query GetProductVariantListSimple($options: ProductVariantListOptions!, $productId: ID) {\n productVariants(options: $options, productId: $productId) {\n items {\n id\n name\n sku\n featuredAsset {\n id\n preview\n focalPoint {\n x\n y\n }\n }\n product {\n id\n featuredAsset {\n id\n preview\n focalPoint {\n x\n y\n }\n }\n }\n }\n totalItems\n }\n }\n"])));
|
|
1279
|
+
var GET_PRODUCT_VARIANT_LIST = apolloAngular.gql(templateObject_41 || (templateObject_41 = __makeTemplateObject(["\n query GetProductVariantList($options: ProductVariantListOptions!, $productId: ID) {\n productVariants(options: $options, productId: $productId) {\n items {\n ...ProductVariant\n }\n totalItems\n }\n }\n ", "\n"], ["\n query GetProductVariantList($options: ProductVariantListOptions!, $productId: ID) {\n productVariants(options: $options, productId: $productId) {\n items {\n ...ProductVariant\n }\n totalItems\n }\n }\n ", "\n"])), PRODUCT_VARIANT_FRAGMENT);
|
|
1280
|
+
var GET_TAG_LIST = apolloAngular.gql(templateObject_42 || (templateObject_42 = __makeTemplateObject(["\n query GetTagList($options: TagListOptions) {\n tags(options: $options) {\n items {\n ...Tag\n }\n totalItems\n }\n }\n ", "\n"], ["\n query GetTagList($options: TagListOptions) {\n tags(options: $options) {\n items {\n ...Tag\n }\n totalItems\n }\n }\n ", "\n"])), TAG_FRAGMENT);
|
|
1281
|
+
var GET_TAG = apolloAngular.gql(templateObject_43 || (templateObject_43 = __makeTemplateObject(["\n query GetTag($id: ID!) {\n tag(id: $id) {\n ...Tag\n }\n }\n ", "\n"], ["\n query GetTag($id: ID!) {\n tag(id: $id) {\n ...Tag\n }\n }\n ", "\n"])), TAG_FRAGMENT);
|
|
1282
|
+
var CREATE_TAG = apolloAngular.gql(templateObject_44 || (templateObject_44 = __makeTemplateObject(["\n mutation CreateTag($input: CreateTagInput!) {\n createTag(input: $input) {\n ...Tag\n }\n }\n ", "\n"], ["\n mutation CreateTag($input: CreateTagInput!) {\n createTag(input: $input) {\n ...Tag\n }\n }\n ", "\n"])), TAG_FRAGMENT);
|
|
1283
|
+
var UPDATE_TAG = apolloAngular.gql(templateObject_45 || (templateObject_45 = __makeTemplateObject(["\n mutation UpdateTag($input: UpdateTagInput!) {\n updateTag(input: $input) {\n ...Tag\n }\n }\n ", "\n"], ["\n mutation UpdateTag($input: UpdateTagInput!) {\n updateTag(input: $input) {\n ...Tag\n }\n }\n ", "\n"])), TAG_FRAGMENT);
|
|
1284
|
+
var DELETE_TAG = apolloAngular.gql(templateObject_46 || (templateObject_46 = __makeTemplateObject(["\n mutation DeleteTag($id: ID!) {\n deleteTag(id: $id) {\n message\n result\n }\n }\n"], ["\n mutation DeleteTag($id: ID!) {\n deleteTag(id: $id) {\n message\n result\n }\n }\n"])));
|
|
1285
|
+
var templateObject_1$6, templateObject_2$6, templateObject_3$6, templateObject_4$6, templateObject_5$6, templateObject_6$6, templateObject_7$6, templateObject_8$5, templateObject_9$5, templateObject_10$4, templateObject_11$4, templateObject_12$4, templateObject_13$4, templateObject_14$2, templateObject_15$2, templateObject_16$2, templateObject_17$2, templateObject_18$2, templateObject_19$2, templateObject_20$2, templateObject_21$2, templateObject_22$2, templateObject_23$1, templateObject_24$1, templateObject_25$1, templateObject_26$1, templateObject_27$1, templateObject_28$1, templateObject_29$1, templateObject_30$1, templateObject_31$1, templateObject_32$1, templateObject_33$1, templateObject_34$1, templateObject_35$1, templateObject_36$1, templateObject_37$1, templateObject_38$1, templateObject_39$1, templateObject_40, templateObject_41, templateObject_42, templateObject_43, templateObject_44, templateObject_45, templateObject_46;
|
|
1281
1286
|
|
|
1282
1287
|
var GET_COLLECTION_FILTERS = apolloAngular.gql(templateObject_1$5 || (templateObject_1$5 = __makeTemplateObject(["\n query GetCollectionFilters {\n collectionFilters {\n ...ConfigurableOperationDef\n }\n }\n ", "\n"], ["\n query GetCollectionFilters {\n collectionFilters {\n ...ConfigurableOperationDef\n }\n }\n ", "\n"])), CONFIGURABLE_OPERATION_DEF_FRAGMENT);
|
|
1283
|
-
var COLLECTION_FRAGMENT = apolloAngular.gql(templateObject_2$5 || (templateObject_2$5 = __makeTemplateObject(["\n fragment Collection on Collection {\n id\n createdAt\n updatedAt\n name\n slug\n description\n isPrivate\n languageCode\n featuredAsset {\n ...Asset\n }\n assets {\n ...Asset\n }\n filters {\n ...ConfigurableOperation\n }\n translations {\n id\n languageCode\n name\n slug\n description\n }\n parent {\n id\n name\n }\n children {\n id\n name\n }\n }\n ", "\n ", "\n"], ["\n fragment Collection on Collection {\n id\n createdAt\n updatedAt\n name\n slug\n description\n isPrivate\n languageCode\n featuredAsset {\n ...Asset\n }\n assets {\n ...Asset\n }\n filters {\n ...ConfigurableOperation\n }\n translations {\n id\n languageCode\n name\n slug\n description\n }\n parent {\n id\n name\n }\n children {\n id\n name\n }\n }\n ", "\n ", "\n"])), ASSET_FRAGMENT, CONFIGURABLE_OPERATION_FRAGMENT);
|
|
1288
|
+
var COLLECTION_FRAGMENT = apolloAngular.gql(templateObject_2$5 || (templateObject_2$5 = __makeTemplateObject(["\n fragment Collection on Collection {\n id\n createdAt\n updatedAt\n name\n slug\n description\n isPrivate\n languageCode\n breadcrumbs {\n id\n name\n slug\n }\n featuredAsset {\n ...Asset\n }\n assets {\n ...Asset\n }\n filters {\n ...ConfigurableOperation\n }\n translations {\n id\n languageCode\n name\n slug\n description\n }\n parent {\n id\n name\n }\n children {\n id\n name\n }\n }\n ", "\n ", "\n"], ["\n fragment Collection on Collection {\n id\n createdAt\n updatedAt\n name\n slug\n description\n isPrivate\n languageCode\n breadcrumbs {\n id\n name\n slug\n }\n featuredAsset {\n ...Asset\n }\n assets {\n ...Asset\n }\n filters {\n ...ConfigurableOperation\n }\n translations {\n id\n languageCode\n name\n slug\n description\n }\n parent {\n id\n name\n }\n children {\n id\n name\n }\n }\n ", "\n ", "\n"])), ASSET_FRAGMENT, CONFIGURABLE_OPERATION_FRAGMENT);
|
|
1284
1289
|
var GET_COLLECTION_LIST = apolloAngular.gql(templateObject_3$5 || (templateObject_3$5 = __makeTemplateObject(["\n query GetCollectionList($options: CollectionListOptions) {\n collections(options: $options) {\n items {\n id\n name\n slug\n description\n isPrivate\n featuredAsset {\n ...Asset\n }\n parent {\n id\n }\n }\n totalItems\n }\n }\n ", "\n"], ["\n query GetCollectionList($options: CollectionListOptions) {\n collections(options: $options) {\n items {\n id\n name\n slug\n description\n isPrivate\n featuredAsset {\n ...Asset\n }\n parent {\n id\n }\n }\n totalItems\n }\n }\n ", "\n"])), ASSET_FRAGMENT);
|
|
1285
1290
|
var GET_COLLECTION = apolloAngular.gql(templateObject_4$5 || (templateObject_4$5 = __makeTemplateObject(["\n query GetCollection($id: ID!) {\n collection(id: $id) {\n ...Collection\n }\n }\n ", "\n"], ["\n query GetCollection($id: ID!) {\n collection(id: $id) {\n ...Collection\n }\n }\n ", "\n"])), COLLECTION_FRAGMENT);
|
|
1286
1291
|
var CREATE_COLLECTION = apolloAngular.gql(templateObject_5$5 || (templateObject_5$5 = __makeTemplateObject(["\n mutation CreateCollection($input: CreateCollectionInput!) {\n createCollection(input: $input) {\n ...Collection\n }\n }\n ", "\n"], ["\n mutation CreateCollection($input: CreateCollectionInput!) {\n createCollection(input: $input) {\n ...Collection\n }\n }\n ", "\n"])), COLLECTION_FRAGMENT);
|
|
1287
1292
|
var UPDATE_COLLECTION = apolloAngular.gql(templateObject_6$5 || (templateObject_6$5 = __makeTemplateObject(["\n mutation UpdateCollection($input: UpdateCollectionInput!) {\n updateCollection(input: $input) {\n ...Collection\n }\n }\n ", "\n"], ["\n mutation UpdateCollection($input: UpdateCollectionInput!) {\n updateCollection(input: $input) {\n ...Collection\n }\n }\n ", "\n"])), COLLECTION_FRAGMENT);
|
|
1288
1293
|
var MOVE_COLLECTION = apolloAngular.gql(templateObject_7$5 || (templateObject_7$5 = __makeTemplateObject(["\n mutation MoveCollection($input: MoveCollectionInput!) {\n moveCollection(input: $input) {\n ...Collection\n }\n }\n ", "\n"], ["\n mutation MoveCollection($input: MoveCollectionInput!) {\n moveCollection(input: $input) {\n ...Collection\n }\n }\n ", "\n"])), COLLECTION_FRAGMENT);
|
|
1289
1294
|
var DELETE_COLLECTION = apolloAngular.gql(templateObject_8$4 || (templateObject_8$4 = __makeTemplateObject(["\n mutation DeleteCollection($id: ID!) {\n deleteCollection(id: $id) {\n result\n message\n }\n }\n"], ["\n mutation DeleteCollection($id: ID!) {\n deleteCollection(id: $id) {\n result\n message\n }\n }\n"])));
|
|
1290
|
-
var
|
|
1291
|
-
var
|
|
1292
|
-
var
|
|
1295
|
+
var DELETE_COLLECTIONS = apolloAngular.gql(templateObject_9$4 || (templateObject_9$4 = __makeTemplateObject(["\n mutation DeleteCollections($ids: [ID!]!) {\n deleteCollections(ids: $ids) {\n result\n message\n }\n }\n"], ["\n mutation DeleteCollections($ids: [ID!]!) {\n deleteCollections(ids: $ids) {\n result\n message\n }\n }\n"])));
|
|
1296
|
+
var GET_COLLECTION_CONTENTS = apolloAngular.gql(templateObject_10$3 || (templateObject_10$3 = __makeTemplateObject(["\n query GetCollectionContents($id: ID!, $options: ProductVariantListOptions) {\n collection(id: $id) {\n id\n name\n productVariants(options: $options) {\n items {\n id\n productId\n name\n sku\n }\n totalItems\n }\n }\n }\n"], ["\n query GetCollectionContents($id: ID!, $options: ProductVariantListOptions) {\n collection(id: $id) {\n id\n name\n productVariants(options: $options) {\n items {\n id\n productId\n name\n sku\n }\n totalItems\n }\n }\n }\n"])));
|
|
1297
|
+
var PREVIEW_COLLECTION_CONTENTS = apolloAngular.gql(templateObject_11$3 || (templateObject_11$3 = __makeTemplateObject(["\n query PreviewCollectionContents(\n $input: PreviewCollectionVariantsInput!\n $options: ProductVariantListOptions\n ) {\n previewCollectionVariants(input: $input, options: $options) {\n items {\n id\n productId\n name\n sku\n }\n totalItems\n }\n }\n"], ["\n query PreviewCollectionContents(\n $input: PreviewCollectionVariantsInput!\n $options: ProductVariantListOptions\n ) {\n previewCollectionVariants(input: $input, options: $options) {\n items {\n id\n productId\n name\n sku\n }\n totalItems\n }\n }\n"])));
|
|
1298
|
+
var ASSIGN_COLLECTIONS_TO_CHANNEL = apolloAngular.gql(templateObject_12$3 || (templateObject_12$3 = __makeTemplateObject(["\n mutation AssignCollectionsToChannel($input: AssignCollectionsToChannelInput!) {\n assignCollectionsToChannel(input: $input) {\n id\n name\n }\n }\n"], ["\n mutation AssignCollectionsToChannel($input: AssignCollectionsToChannelInput!) {\n assignCollectionsToChannel(input: $input) {\n id\n name\n }\n }\n"])));
|
|
1299
|
+
var REMOVE_COLLECTIONS_FROM_CHANNEL = apolloAngular.gql(templateObject_13$3 || (templateObject_13$3 = __makeTemplateObject(["\n mutation RemoveCollectionsFromChannel($input: RemoveCollectionsFromChannelInput!) {\n removeCollectionsFromChannel(input: $input) {\n id\n name\n }\n }\n"], ["\n mutation RemoveCollectionsFromChannel($input: RemoveCollectionsFromChannelInput!) {\n removeCollectionsFromChannel(input: $input) {\n id\n name\n }\n }\n"])));
|
|
1300
|
+
var templateObject_1$5, templateObject_2$5, templateObject_3$5, templateObject_4$5, templateObject_5$5, templateObject_6$5, templateObject_7$5, templateObject_8$4, templateObject_9$4, templateObject_10$3, templateObject_11$3, templateObject_12$3, templateObject_13$3;
|
|
1293
1301
|
|
|
1294
1302
|
var CollectionDataService = /** @class */ (function () {
|
|
1295
1303
|
function CollectionDataService(baseDataService) {
|
|
@@ -1347,6 +1355,11 @@
|
|
|
1347
1355
|
id: id,
|
|
1348
1356
|
});
|
|
1349
1357
|
};
|
|
1358
|
+
CollectionDataService.prototype.deleteCollections = function (ids) {
|
|
1359
|
+
return this.baseDataService.mutate(DELETE_COLLECTIONS, {
|
|
1360
|
+
ids: ids,
|
|
1361
|
+
});
|
|
1362
|
+
};
|
|
1350
1363
|
CollectionDataService.prototype.previewCollectionVariants = function (input, options) {
|
|
1351
1364
|
return this.baseDataService.query(PREVIEW_COLLECTION_CONTENTS, { input: input, options: options });
|
|
1352
1365
|
};
|
|
@@ -1365,355 +1378,17 @@
|
|
|
1365
1378
|
},
|
|
1366
1379
|
});
|
|
1367
1380
|
};
|
|
1368
|
-
|
|
1369
|
-
|
|
1370
|
-
|
|
1371
|
-
var ADDRESS_FRAGMENT = apolloAngular.gql(templateObject_1$4 || (templateObject_1$4 = __makeTemplateObject(["\n fragment Address on Address {\n id\n createdAt\n updatedAt\n fullName\n company\n streetLine1\n streetLine2\n city\n province\n postalCode\n country {\n id\n code\n name\n }\n phoneNumber\n defaultShippingAddress\n defaultBillingAddress\n }\n"], ["\n fragment Address on Address {\n id\n createdAt\n updatedAt\n fullName\n company\n streetLine1\n streetLine2\n city\n province\n postalCode\n country {\n id\n code\n name\n }\n phoneNumber\n defaultShippingAddress\n defaultBillingAddress\n }\n"])));
|
|
1372
|
-
var CUSTOMER_FRAGMENT = apolloAngular.gql(templateObject_2$4 || (templateObject_2$4 = __makeTemplateObject(["\n fragment Customer on Customer {\n id\n createdAt\n updatedAt\n title\n firstName\n lastName\n phoneNumber\n emailAddress\n user {\n id\n identifier\n verified\n lastLogin\n }\n addresses {\n ...Address\n }\n }\n ", "\n"], ["\n fragment Customer on Customer {\n id\n createdAt\n updatedAt\n title\n firstName\n lastName\n phoneNumber\n emailAddress\n user {\n id\n identifier\n verified\n lastLogin\n }\n addresses {\n ...Address\n }\n }\n ", "\n"])), ADDRESS_FRAGMENT);
|
|
1373
|
-
var CUSTOMER_GROUP_FRAGMENT = apolloAngular.gql(templateObject_3$4 || (templateObject_3$4 = __makeTemplateObject(["\n fragment CustomerGroup on CustomerGroup {\n id\n createdAt\n updatedAt\n name\n }\n"], ["\n fragment CustomerGroup on CustomerGroup {\n id\n createdAt\n updatedAt\n name\n }\n"])));
|
|
1374
|
-
var GET_CUSTOMER_LIST = apolloAngular.gql(templateObject_4$4 || (templateObject_4$4 = __makeTemplateObject(["\n query GetCustomerList($options: CustomerListOptions) {\n customers(options: $options) {\n items {\n id\n createdAt\n updatedAt\n title\n firstName\n lastName\n emailAddress\n user {\n id\n verified\n }\n }\n totalItems\n }\n }\n"], ["\n query GetCustomerList($options: CustomerListOptions) {\n customers(options: $options) {\n items {\n id\n createdAt\n updatedAt\n title\n firstName\n lastName\n emailAddress\n user {\n id\n verified\n }\n }\n totalItems\n }\n }\n"])));
|
|
1375
|
-
var GET_CUSTOMER = apolloAngular.gql(templateObject_5$4 || (templateObject_5$4 = __makeTemplateObject(["\n query GetCustomer($id: ID!, $orderListOptions: OrderListOptions) {\n customer(id: $id) {\n ...Customer\n groups {\n id\n name\n }\n orders(options: $orderListOptions) {\n items {\n id\n code\n state\n totalWithTax\n currencyCode\n updatedAt\n }\n totalItems\n }\n }\n }\n ", "\n"], ["\n query GetCustomer($id: ID!, $orderListOptions: OrderListOptions) {\n customer(id: $id) {\n ...Customer\n groups {\n id\n name\n }\n orders(options: $orderListOptions) {\n items {\n id\n code\n state\n totalWithTax\n currencyCode\n updatedAt\n }\n totalItems\n }\n }\n }\n ", "\n"])), CUSTOMER_FRAGMENT);
|
|
1376
|
-
var CREATE_CUSTOMER = apolloAngular.gql(templateObject_6$4 || (templateObject_6$4 = __makeTemplateObject(["\n mutation CreateCustomer($input: CreateCustomerInput!, $password: String) {\n createCustomer(input: $input, password: $password) {\n ...Customer\n ...ErrorResult\n }\n }\n ", "\n ", "\n"], ["\n mutation CreateCustomer($input: CreateCustomerInput!, $password: String) {\n createCustomer(input: $input, password: $password) {\n ...Customer\n ...ErrorResult\n }\n }\n ", "\n ", "\n"])), CUSTOMER_FRAGMENT, ERROR_RESULT_FRAGMENT);
|
|
1377
|
-
var UPDATE_CUSTOMER = apolloAngular.gql(templateObject_7$4 || (templateObject_7$4 = __makeTemplateObject(["\n mutation UpdateCustomer($input: UpdateCustomerInput!) {\n updateCustomer(input: $input) {\n ...Customer\n ...ErrorResult\n }\n }\n ", "\n ", "\n"], ["\n mutation UpdateCustomer($input: UpdateCustomerInput!) {\n updateCustomer(input: $input) {\n ...Customer\n ...ErrorResult\n }\n }\n ", "\n ", "\n"])), CUSTOMER_FRAGMENT, ERROR_RESULT_FRAGMENT);
|
|
1378
|
-
var DELETE_CUSTOMER = apolloAngular.gql(templateObject_8$3 || (templateObject_8$3 = __makeTemplateObject(["\n mutation DeleteCustomer($id: ID!) {\n deleteCustomer(id: $id) {\n result\n message\n }\n }\n"], ["\n mutation DeleteCustomer($id: ID!) {\n deleteCustomer(id: $id) {\n result\n message\n }\n }\n"])));
|
|
1379
|
-
var CREATE_CUSTOMER_ADDRESS = apolloAngular.gql(templateObject_9$3 || (templateObject_9$3 = __makeTemplateObject(["\n mutation CreateCustomerAddress($customerId: ID!, $input: CreateAddressInput!) {\n createCustomerAddress(customerId: $customerId, input: $input) {\n ...Address\n }\n }\n ", "\n"], ["\n mutation CreateCustomerAddress($customerId: ID!, $input: CreateAddressInput!) {\n createCustomerAddress(customerId: $customerId, input: $input) {\n ...Address\n }\n }\n ", "\n"])), ADDRESS_FRAGMENT);
|
|
1380
|
-
var UPDATE_CUSTOMER_ADDRESS = apolloAngular.gql(templateObject_10$2 || (templateObject_10$2 = __makeTemplateObject(["\n mutation UpdateCustomerAddress($input: UpdateAddressInput!) {\n updateCustomerAddress(input: $input) {\n ...Address\n }\n }\n ", "\n"], ["\n mutation UpdateCustomerAddress($input: UpdateAddressInput!) {\n updateCustomerAddress(input: $input) {\n ...Address\n }\n }\n ", "\n"])), ADDRESS_FRAGMENT);
|
|
1381
|
-
var DELETE_CUSTOMER_ADDRESS = apolloAngular.gql(templateObject_11$1 || (templateObject_11$1 = __makeTemplateObject(["\n mutation DeleteCustomerAddress($id: ID!) {\n deleteCustomerAddress(id: $id) {\n success\n }\n }\n"], ["\n mutation DeleteCustomerAddress($id: ID!) {\n deleteCustomerAddress(id: $id) {\n success\n }\n }\n"])));
|
|
1382
|
-
var CREATE_CUSTOMER_GROUP = apolloAngular.gql(templateObject_12$1 || (templateObject_12$1 = __makeTemplateObject(["\n mutation CreateCustomerGroup($input: CreateCustomerGroupInput!) {\n createCustomerGroup(input: $input) {\n ...CustomerGroup\n }\n }\n ", "\n"], ["\n mutation CreateCustomerGroup($input: CreateCustomerGroupInput!) {\n createCustomerGroup(input: $input) {\n ...CustomerGroup\n }\n }\n ", "\n"])), CUSTOMER_GROUP_FRAGMENT);
|
|
1383
|
-
var UPDATE_CUSTOMER_GROUP = apolloAngular.gql(templateObject_13$1 || (templateObject_13$1 = __makeTemplateObject(["\n mutation UpdateCustomerGroup($input: UpdateCustomerGroupInput!) {\n updateCustomerGroup(input: $input) {\n ...CustomerGroup\n }\n }\n ", "\n"], ["\n mutation UpdateCustomerGroup($input: UpdateCustomerGroupInput!) {\n updateCustomerGroup(input: $input) {\n ...CustomerGroup\n }\n }\n ", "\n"])), CUSTOMER_GROUP_FRAGMENT);
|
|
1384
|
-
var DELETE_CUSTOMER_GROUP = apolloAngular.gql(templateObject_14$1 || (templateObject_14$1 = __makeTemplateObject(["\n mutation DeleteCustomerGroup($id: ID!) {\n deleteCustomerGroup(id: $id) {\n result\n message\n }\n }\n"], ["\n mutation DeleteCustomerGroup($id: ID!) {\n deleteCustomerGroup(id: $id) {\n result\n message\n }\n }\n"])));
|
|
1385
|
-
var GET_CUSTOMER_GROUPS = apolloAngular.gql(templateObject_15$1 || (templateObject_15$1 = __makeTemplateObject(["\n query GetCustomerGroups($options: CustomerGroupListOptions) {\n customerGroups(options: $options) {\n items {\n ...CustomerGroup\n }\n totalItems\n }\n }\n ", "\n"], ["\n query GetCustomerGroups($options: CustomerGroupListOptions) {\n customerGroups(options: $options) {\n items {\n ...CustomerGroup\n }\n totalItems\n }\n }\n ", "\n"])), CUSTOMER_GROUP_FRAGMENT);
|
|
1386
|
-
var GET_CUSTOMER_GROUP_WITH_CUSTOMERS = apolloAngular.gql(templateObject_16$1 || (templateObject_16$1 = __makeTemplateObject(["\n query GetCustomerGroupWithCustomers($id: ID!, $options: CustomerListOptions) {\n customerGroup(id: $id) {\n ...CustomerGroup\n customers(options: $options) {\n items {\n id\n createdAt\n updatedAt\n emailAddress\n firstName\n lastName\n }\n totalItems\n }\n }\n }\n ", "\n"], ["\n query GetCustomerGroupWithCustomers($id: ID!, $options: CustomerListOptions) {\n customerGroup(id: $id) {\n ...CustomerGroup\n customers(options: $options) {\n items {\n id\n createdAt\n updatedAt\n emailAddress\n firstName\n lastName\n }\n totalItems\n }\n }\n }\n ", "\n"])), CUSTOMER_GROUP_FRAGMENT);
|
|
1387
|
-
var ADD_CUSTOMERS_TO_GROUP = apolloAngular.gql(templateObject_17$1 || (templateObject_17$1 = __makeTemplateObject(["\n mutation AddCustomersToGroup($groupId: ID!, $customerIds: [ID!]!) {\n addCustomersToGroup(customerGroupId: $groupId, customerIds: $customerIds) {\n ...CustomerGroup\n }\n }\n ", "\n"], ["\n mutation AddCustomersToGroup($groupId: ID!, $customerIds: [ID!]!) {\n addCustomersToGroup(customerGroupId: $groupId, customerIds: $customerIds) {\n ...CustomerGroup\n }\n }\n ", "\n"])), CUSTOMER_GROUP_FRAGMENT);
|
|
1388
|
-
var REMOVE_CUSTOMERS_FROM_GROUP = apolloAngular.gql(templateObject_18$1 || (templateObject_18$1 = __makeTemplateObject(["\n mutation RemoveCustomersFromGroup($groupId: ID!, $customerIds: [ID!]!) {\n removeCustomersFromGroup(customerGroupId: $groupId, customerIds: $customerIds) {\n ...CustomerGroup\n }\n }\n ", "\n"], ["\n mutation RemoveCustomersFromGroup($groupId: ID!, $customerIds: [ID!]!) {\n removeCustomersFromGroup(customerGroupId: $groupId, customerIds: $customerIds) {\n ...CustomerGroup\n }\n }\n ", "\n"])), CUSTOMER_GROUP_FRAGMENT);
|
|
1389
|
-
var GET_CUSTOMER_HISTORY = apolloAngular.gql(templateObject_19$1 || (templateObject_19$1 = __makeTemplateObject(["\n query GetCustomerHistory($id: ID!, $options: HistoryEntryListOptions) {\n customer(id: $id) {\n id\n history(options: $options) {\n totalItems\n items {\n id\n type\n createdAt\n isPublic\n administrator {\n id\n firstName\n lastName\n }\n data\n }\n }\n }\n }\n"], ["\n query GetCustomerHistory($id: ID!, $options: HistoryEntryListOptions) {\n customer(id: $id) {\n id\n history(options: $options) {\n totalItems\n items {\n id\n type\n createdAt\n isPublic\n administrator {\n id\n firstName\n lastName\n }\n data\n }\n }\n }\n }\n"])));
|
|
1390
|
-
var ADD_NOTE_TO_CUSTOMER = apolloAngular.gql(templateObject_20$1 || (templateObject_20$1 = __makeTemplateObject(["\n mutation AddNoteToCustomer($input: AddNoteToCustomerInput!) {\n addNoteToCustomer(input: $input) {\n id\n }\n }\n"], ["\n mutation AddNoteToCustomer($input: AddNoteToCustomerInput!) {\n addNoteToCustomer(input: $input) {\n id\n }\n }\n"])));
|
|
1391
|
-
var UPDATE_CUSTOMER_NOTE = apolloAngular.gql(templateObject_21$1 || (templateObject_21$1 = __makeTemplateObject(["\n mutation UpdateCustomerNote($input: UpdateCustomerNoteInput!) {\n updateCustomerNote(input: $input) {\n id\n data\n isPublic\n }\n }\n"], ["\n mutation UpdateCustomerNote($input: UpdateCustomerNoteInput!) {\n updateCustomerNote(input: $input) {\n id\n data\n isPublic\n }\n }\n"])));
|
|
1392
|
-
var DELETE_CUSTOMER_NOTE = apolloAngular.gql(templateObject_22$1 || (templateObject_22$1 = __makeTemplateObject(["\n mutation DeleteCustomerNote($id: ID!) {\n deleteCustomerNote(id: $id) {\n result\n message\n }\n }\n"], ["\n mutation DeleteCustomerNote($id: ID!) {\n deleteCustomerNote(id: $id) {\n result\n message\n }\n }\n"])));
|
|
1393
|
-
var templateObject_1$4, templateObject_2$4, templateObject_3$4, templateObject_4$4, templateObject_5$4, templateObject_6$4, templateObject_7$4, templateObject_8$3, templateObject_9$3, templateObject_10$2, templateObject_11$1, templateObject_12$1, templateObject_13$1, templateObject_14$1, templateObject_15$1, templateObject_16$1, templateObject_17$1, templateObject_18$1, templateObject_19$1, templateObject_20$1, templateObject_21$1, templateObject_22$1;
|
|
1394
|
-
|
|
1395
|
-
var CustomerDataService = /** @class */ (function () {
|
|
1396
|
-
function CustomerDataService(baseDataService) {
|
|
1397
|
-
this.baseDataService = baseDataService;
|
|
1398
|
-
}
|
|
1399
|
-
CustomerDataService.prototype.getCustomerList = function (take, skip, filterTerm) {
|
|
1400
|
-
if (take === void 0) { take = 10; }
|
|
1401
|
-
if (skip === void 0) { skip = 0; }
|
|
1402
|
-
var filter = filterTerm
|
|
1403
|
-
? {
|
|
1404
|
-
filter: {
|
|
1405
|
-
emailAddress: {
|
|
1406
|
-
contains: filterTerm,
|
|
1407
|
-
},
|
|
1408
|
-
},
|
|
1409
|
-
}
|
|
1410
|
-
: {};
|
|
1411
|
-
return this.baseDataService.query(GET_CUSTOMER_LIST, {
|
|
1412
|
-
options: Object.assign({ take: take, skip: skip }, filter),
|
|
1413
|
-
});
|
|
1414
|
-
};
|
|
1415
|
-
CustomerDataService.prototype.getCustomer = function (id, orderListOptions) {
|
|
1416
|
-
return this.baseDataService.query(GET_CUSTOMER, {
|
|
1417
|
-
id: id,
|
|
1418
|
-
orderListOptions: orderListOptions,
|
|
1419
|
-
});
|
|
1420
|
-
};
|
|
1421
|
-
CustomerDataService.prototype.createCustomer = function (input, password) {
|
|
1422
|
-
return this.baseDataService.mutate(CREATE_CUSTOMER, {
|
|
1423
|
-
input: input,
|
|
1424
|
-
password: password,
|
|
1425
|
-
});
|
|
1426
|
-
};
|
|
1427
|
-
CustomerDataService.prototype.updateCustomer = function (input) {
|
|
1428
|
-
return this.baseDataService.mutate(UPDATE_CUSTOMER, {
|
|
1429
|
-
input: input,
|
|
1430
|
-
});
|
|
1431
|
-
};
|
|
1432
|
-
CustomerDataService.prototype.deleteCustomer = function (id) {
|
|
1433
|
-
return this.baseDataService.mutate(DELETE_CUSTOMER, { id: id });
|
|
1434
|
-
};
|
|
1435
|
-
CustomerDataService.prototype.createCustomerAddress = function (customerId, input) {
|
|
1436
|
-
return this.baseDataService.mutate(CREATE_CUSTOMER_ADDRESS, {
|
|
1437
|
-
customerId: customerId,
|
|
1438
|
-
input: input,
|
|
1439
|
-
});
|
|
1440
|
-
};
|
|
1441
|
-
CustomerDataService.prototype.updateCustomerAddress = function (input) {
|
|
1442
|
-
return this.baseDataService.mutate(UPDATE_CUSTOMER_ADDRESS, {
|
|
1443
|
-
input: input,
|
|
1444
|
-
});
|
|
1445
|
-
};
|
|
1446
|
-
CustomerDataService.prototype.deleteCustomerAddress = function (id) {
|
|
1447
|
-
return this.baseDataService.mutate(DELETE_CUSTOMER_ADDRESS, { id: id });
|
|
1448
|
-
};
|
|
1449
|
-
CustomerDataService.prototype.createCustomerGroup = function (input) {
|
|
1450
|
-
return this.baseDataService.mutate(CREATE_CUSTOMER_GROUP, {
|
|
1451
|
-
input: input,
|
|
1452
|
-
});
|
|
1453
|
-
};
|
|
1454
|
-
CustomerDataService.prototype.updateCustomerGroup = function (input) {
|
|
1455
|
-
return this.baseDataService.mutate(UPDATE_CUSTOMER_GROUP, {
|
|
1381
|
+
CollectionDataService.prototype.assignCollectionsToChannel = function (input) {
|
|
1382
|
+
return this.baseDataService.mutate(ASSIGN_COLLECTIONS_TO_CHANNEL, {
|
|
1456
1383
|
input: input,
|
|
1457
1384
|
});
|
|
1458
1385
|
};
|
|
1459
|
-
|
|
1460
|
-
return this.baseDataService.mutate(
|
|
1461
|
-
};
|
|
1462
|
-
CustomerDataService.prototype.getCustomerGroupList = function (options) {
|
|
1463
|
-
return this.baseDataService.query(GET_CUSTOMER_GROUPS, {
|
|
1464
|
-
options: options,
|
|
1465
|
-
});
|
|
1466
|
-
};
|
|
1467
|
-
CustomerDataService.prototype.getCustomerGroupWithCustomers = function (id, options) {
|
|
1468
|
-
return this.baseDataService.query(GET_CUSTOMER_GROUP_WITH_CUSTOMERS, {
|
|
1469
|
-
id: id,
|
|
1470
|
-
options: options,
|
|
1471
|
-
});
|
|
1472
|
-
};
|
|
1473
|
-
CustomerDataService.prototype.addCustomersToGroup = function (groupId, customerIds) {
|
|
1474
|
-
return this.baseDataService.mutate(ADD_CUSTOMERS_TO_GROUP, {
|
|
1475
|
-
groupId: groupId,
|
|
1476
|
-
customerIds: customerIds,
|
|
1477
|
-
});
|
|
1478
|
-
};
|
|
1479
|
-
CustomerDataService.prototype.removeCustomersFromGroup = function (groupId, customerIds) {
|
|
1480
|
-
return this.baseDataService.mutate(REMOVE_CUSTOMERS_FROM_GROUP, {
|
|
1481
|
-
groupId: groupId,
|
|
1482
|
-
customerIds: customerIds,
|
|
1483
|
-
});
|
|
1484
|
-
};
|
|
1485
|
-
CustomerDataService.prototype.getCustomerHistory = function (id, options) {
|
|
1486
|
-
return this.baseDataService.query(GET_CUSTOMER_HISTORY, {
|
|
1487
|
-
id: id,
|
|
1488
|
-
options: options,
|
|
1489
|
-
});
|
|
1490
|
-
};
|
|
1491
|
-
CustomerDataService.prototype.addNoteToCustomer = function (customerId, note) {
|
|
1492
|
-
return this.baseDataService.mutate(ADD_NOTE_TO_CUSTOMER, {
|
|
1493
|
-
input: {
|
|
1494
|
-
note: note,
|
|
1495
|
-
isPublic: false,
|
|
1496
|
-
id: customerId,
|
|
1497
|
-
},
|
|
1498
|
-
});
|
|
1499
|
-
};
|
|
1500
|
-
CustomerDataService.prototype.updateCustomerNote = function (input) {
|
|
1501
|
-
return this.baseDataService.mutate(UPDATE_CUSTOMER_NOTE, {
|
|
1386
|
+
CollectionDataService.prototype.removeCollectionsFromChannel = function (input) {
|
|
1387
|
+
return this.baseDataService.mutate(REMOVE_COLLECTIONS_FROM_CHANNEL, {
|
|
1502
1388
|
input: input,
|
|
1503
1389
|
});
|
|
1504
1390
|
};
|
|
1505
|
-
|
|
1506
|
-
return this.baseDataService.mutate(DELETE_CUSTOMER_NOTE, {
|
|
1507
|
-
id: id,
|
|
1508
|
-
});
|
|
1509
|
-
};
|
|
1510
|
-
return CustomerDataService;
|
|
1511
|
-
}());
|
|
1512
|
-
|
|
1513
|
-
var FACET_VALUE_FRAGMENT = apolloAngular.gql(templateObject_1$3 || (templateObject_1$3 = __makeTemplateObject(["\n fragment FacetValue on FacetValue {\n id\n createdAt\n updatedAt\n languageCode\n code\n name\n translations {\n id\n languageCode\n name\n }\n facet {\n id\n createdAt\n updatedAt\n name\n }\n }\n"], ["\n fragment FacetValue on FacetValue {\n id\n createdAt\n updatedAt\n languageCode\n code\n name\n translations {\n id\n languageCode\n name\n }\n facet {\n id\n createdAt\n updatedAt\n name\n }\n }\n"])));
|
|
1514
|
-
var FACET_WITH_VALUES_FRAGMENT = apolloAngular.gql(templateObject_2$3 || (templateObject_2$3 = __makeTemplateObject(["\n fragment FacetWithValues on Facet {\n id\n createdAt\n updatedAt\n languageCode\n isPrivate\n code\n name\n translations {\n id\n languageCode\n name\n }\n values {\n ...FacetValue\n }\n }\n ", "\n"], ["\n fragment FacetWithValues on Facet {\n id\n createdAt\n updatedAt\n languageCode\n isPrivate\n code\n name\n translations {\n id\n languageCode\n name\n }\n values {\n ...FacetValue\n }\n }\n ", "\n"])), FACET_VALUE_FRAGMENT);
|
|
1515
|
-
var CREATE_FACET = apolloAngular.gql(templateObject_3$3 || (templateObject_3$3 = __makeTemplateObject(["\n mutation CreateFacet($input: CreateFacetInput!) {\n createFacet(input: $input) {\n ...FacetWithValues\n }\n }\n ", "\n"], ["\n mutation CreateFacet($input: CreateFacetInput!) {\n createFacet(input: $input) {\n ...FacetWithValues\n }\n }\n ", "\n"])), FACET_WITH_VALUES_FRAGMENT);
|
|
1516
|
-
var UPDATE_FACET = apolloAngular.gql(templateObject_4$3 || (templateObject_4$3 = __makeTemplateObject(["\n mutation UpdateFacet($input: UpdateFacetInput!) {\n updateFacet(input: $input) {\n ...FacetWithValues\n }\n }\n ", "\n"], ["\n mutation UpdateFacet($input: UpdateFacetInput!) {\n updateFacet(input: $input) {\n ...FacetWithValues\n }\n }\n ", "\n"])), FACET_WITH_VALUES_FRAGMENT);
|
|
1517
|
-
var DELETE_FACET = apolloAngular.gql(templateObject_5$3 || (templateObject_5$3 = __makeTemplateObject(["\n mutation DeleteFacet($id: ID!, $force: Boolean) {\n deleteFacet(id: $id, force: $force) {\n result\n message\n }\n }\n"], ["\n mutation DeleteFacet($id: ID!, $force: Boolean) {\n deleteFacet(id: $id, force: $force) {\n result\n message\n }\n }\n"])));
|
|
1518
|
-
var CREATE_FACET_VALUES = apolloAngular.gql(templateObject_6$3 || (templateObject_6$3 = __makeTemplateObject(["\n mutation CreateFacetValues($input: [CreateFacetValueInput!]!) {\n createFacetValues(input: $input) {\n ...FacetValue\n }\n }\n ", "\n"], ["\n mutation CreateFacetValues($input: [CreateFacetValueInput!]!) {\n createFacetValues(input: $input) {\n ...FacetValue\n }\n }\n ", "\n"])), FACET_VALUE_FRAGMENT);
|
|
1519
|
-
var UPDATE_FACET_VALUES = apolloAngular.gql(templateObject_7$3 || (templateObject_7$3 = __makeTemplateObject(["\n mutation UpdateFacetValues($input: [UpdateFacetValueInput!]!) {\n updateFacetValues(input: $input) {\n ...FacetValue\n }\n }\n ", "\n"], ["\n mutation UpdateFacetValues($input: [UpdateFacetValueInput!]!) {\n updateFacetValues(input: $input) {\n ...FacetValue\n }\n }\n ", "\n"])), FACET_VALUE_FRAGMENT);
|
|
1520
|
-
var DELETE_FACET_VALUES = apolloAngular.gql(templateObject_8$2 || (templateObject_8$2 = __makeTemplateObject(["\n mutation DeleteFacetValues($ids: [ID!]!, $force: Boolean) {\n deleteFacetValues(ids: $ids, force: $force) {\n result\n message\n }\n }\n"], ["\n mutation DeleteFacetValues($ids: [ID!]!, $force: Boolean) {\n deleteFacetValues(ids: $ids, force: $force) {\n result\n message\n }\n }\n"])));
|
|
1521
|
-
var GET_FACET_LIST = apolloAngular.gql(templateObject_9$2 || (templateObject_9$2 = __makeTemplateObject(["\n query GetFacetList($options: FacetListOptions) {\n facets(options: $options) {\n items {\n ...FacetWithValues\n }\n totalItems\n }\n }\n ", "\n"], ["\n query GetFacetList($options: FacetListOptions) {\n facets(options: $options) {\n items {\n ...FacetWithValues\n }\n totalItems\n }\n }\n ", "\n"])), FACET_WITH_VALUES_FRAGMENT);
|
|
1522
|
-
var GET_FACET_WITH_VALUES = apolloAngular.gql(templateObject_10$1 || (templateObject_10$1 = __makeTemplateObject(["\n query GetFacetWithValues($id: ID!) {\n facet(id: $id) {\n ...FacetWithValues\n }\n }\n ", "\n"], ["\n query GetFacetWithValues($id: ID!) {\n facet(id: $id) {\n ...FacetWithValues\n }\n }\n ", "\n"])), FACET_WITH_VALUES_FRAGMENT);
|
|
1523
|
-
var templateObject_1$3, templateObject_2$3, templateObject_3$3, templateObject_4$3, templateObject_5$3, templateObject_6$3, templateObject_7$3, templateObject_8$2, templateObject_9$2, templateObject_10$1;
|
|
1524
|
-
|
|
1525
|
-
var FacetDataService = /** @class */ (function () {
|
|
1526
|
-
function FacetDataService(baseDataService) {
|
|
1527
|
-
this.baseDataService = baseDataService;
|
|
1528
|
-
}
|
|
1529
|
-
FacetDataService.prototype.getFacets = function (take, skip) {
|
|
1530
|
-
if (take === void 0) { take = 10; }
|
|
1531
|
-
if (skip === void 0) { skip = 0; }
|
|
1532
|
-
return this.baseDataService.query(GET_FACET_LIST, {
|
|
1533
|
-
options: {
|
|
1534
|
-
take: take,
|
|
1535
|
-
skip: skip,
|
|
1536
|
-
},
|
|
1537
|
-
});
|
|
1538
|
-
};
|
|
1539
|
-
FacetDataService.prototype.getAllFacets = function () {
|
|
1540
|
-
return this.baseDataService.query(GET_FACET_LIST, {});
|
|
1541
|
-
};
|
|
1542
|
-
FacetDataService.prototype.getFacet = function (id) {
|
|
1543
|
-
return this.baseDataService.query(GET_FACET_WITH_VALUES, {
|
|
1544
|
-
id: id,
|
|
1545
|
-
});
|
|
1546
|
-
};
|
|
1547
|
-
FacetDataService.prototype.createFacet = function (facet) {
|
|
1548
|
-
var input = {
|
|
1549
|
-
input: pick.pick(facet, ['code', 'isPrivate', 'translations', 'values', 'customFields']),
|
|
1550
|
-
};
|
|
1551
|
-
return this.baseDataService.mutate(CREATE_FACET, input);
|
|
1552
|
-
};
|
|
1553
|
-
FacetDataService.prototype.updateFacet = function (facet) {
|
|
1554
|
-
var input = {
|
|
1555
|
-
input: pick.pick(facet, ['id', 'code', 'isPrivate', 'translations', 'customFields']),
|
|
1556
|
-
};
|
|
1557
|
-
return this.baseDataService.mutate(UPDATE_FACET, input);
|
|
1558
|
-
};
|
|
1559
|
-
FacetDataService.prototype.deleteFacet = function (id, force) {
|
|
1560
|
-
return this.baseDataService.mutate(DELETE_FACET, {
|
|
1561
|
-
id: id,
|
|
1562
|
-
force: force,
|
|
1563
|
-
});
|
|
1564
|
-
};
|
|
1565
|
-
FacetDataService.prototype.createFacetValues = function (facetValues) {
|
|
1566
|
-
var input = {
|
|
1567
|
-
input: facetValues.map(pick.pick(['facetId', 'code', 'translations', 'customFields'])),
|
|
1568
|
-
};
|
|
1569
|
-
return this.baseDataService.mutate(CREATE_FACET_VALUES, input);
|
|
1570
|
-
};
|
|
1571
|
-
FacetDataService.prototype.updateFacetValues = function (facetValues) {
|
|
1572
|
-
var input = {
|
|
1573
|
-
input: facetValues.map(pick.pick(['id', 'code', 'translations', 'customFields'])),
|
|
1574
|
-
};
|
|
1575
|
-
return this.baseDataService.mutate(UPDATE_FACET_VALUES, input);
|
|
1576
|
-
};
|
|
1577
|
-
FacetDataService.prototype.deleteFacetValues = function (ids, force) {
|
|
1578
|
-
return this.baseDataService.mutate(DELETE_FACET_VALUES, {
|
|
1579
|
-
ids: ids,
|
|
1580
|
-
force: force,
|
|
1581
|
-
});
|
|
1582
|
-
};
|
|
1583
|
-
return FacetDataService;
|
|
1584
|
-
}());
|
|
1585
|
-
|
|
1586
|
-
var DISCOUNT_FRAGMENT = apolloAngular.gql(templateObject_1$2 || (templateObject_1$2 = __makeTemplateObject(["\n fragment Discount on Discount {\n adjustmentSource\n amount\n amountWithTax\n description\n type\n }\n"], ["\n fragment Discount on Discount {\n adjustmentSource\n amount\n amountWithTax\n description\n type\n }\n"])));
|
|
1587
|
-
var PAYMENT_FRAGMENT = apolloAngular.gql(templateObject_2$2 || (templateObject_2$2 = __makeTemplateObject(["\n fragment Payment on Payment {\n id\n transactionId\n amount\n method\n state\n metadata\n }\n"], ["\n fragment Payment on Payment {\n id\n transactionId\n amount\n method\n state\n metadata\n }\n"])));
|
|
1588
|
-
var REFUND_FRAGMENT = apolloAngular.gql(templateObject_3$2 || (templateObject_3$2 = __makeTemplateObject(["\n fragment Refund on Refund {\n id\n state\n items\n shipping\n adjustment\n transactionId\n paymentId\n }\n"], ["\n fragment Refund on Refund {\n id\n state\n items\n shipping\n adjustment\n transactionId\n paymentId\n }\n"])));
|
|
1589
|
-
var ORDER_ADDRESS_FRAGMENT = apolloAngular.gql(templateObject_4$2 || (templateObject_4$2 = __makeTemplateObject(["\n fragment OrderAddress on OrderAddress {\n fullName\n company\n streetLine1\n streetLine2\n city\n province\n postalCode\n country\n countryCode\n phoneNumber\n }\n"], ["\n fragment OrderAddress on OrderAddress {\n fullName\n company\n streetLine1\n streetLine2\n city\n province\n postalCode\n country\n countryCode\n phoneNumber\n }\n"])));
|
|
1590
|
-
var ORDER_FRAGMENT = apolloAngular.gql(templateObject_5$2 || (templateObject_5$2 = __makeTemplateObject(["\n fragment Order on Order {\n id\n createdAt\n updatedAt\n orderPlacedAt\n code\n state\n nextStates\n total\n totalWithTax\n currencyCode\n customer {\n id\n firstName\n lastName\n }\n shippingLines {\n shippingMethod {\n name\n }\n }\n }\n"], ["\n fragment Order on Order {\n id\n createdAt\n updatedAt\n orderPlacedAt\n code\n state\n nextStates\n total\n totalWithTax\n currencyCode\n customer {\n id\n firstName\n lastName\n }\n shippingLines {\n shippingMethod {\n name\n }\n }\n }\n"])));
|
|
1591
|
-
var FULFILLMENT_FRAGMENT = apolloAngular.gql(templateObject_6$2 || (templateObject_6$2 = __makeTemplateObject(["\n fragment Fulfillment on Fulfillment {\n id\n state\n nextStates\n createdAt\n updatedAt\n method\n summary {\n orderLine {\n id\n }\n quantity\n }\n trackingCode\n }\n"], ["\n fragment Fulfillment on Fulfillment {\n id\n state\n nextStates\n createdAt\n updatedAt\n method\n summary {\n orderLine {\n id\n }\n quantity\n }\n trackingCode\n }\n"])));
|
|
1592
|
-
var ORDER_LINE_FRAGMENT = apolloAngular.gql(templateObject_7$2 || (templateObject_7$2 = __makeTemplateObject(["\n fragment OrderLine on OrderLine {\n id\n featuredAsset {\n preview\n }\n productVariant {\n id\n name\n sku\n trackInventory\n stockOnHand\n }\n discounts {\n ...Discount\n }\n fulfillments {\n ...Fulfillment\n }\n unitPrice\n unitPriceWithTax\n proratedUnitPrice\n proratedUnitPriceWithTax\n quantity\n items {\n id\n refundId\n cancelled\n }\n linePrice\n lineTax\n linePriceWithTax\n discountedLinePrice\n discountedLinePriceWithTax\n }\n"], ["\n fragment OrderLine on OrderLine {\n id\n featuredAsset {\n preview\n }\n productVariant {\n id\n name\n sku\n trackInventory\n stockOnHand\n }\n discounts {\n ...Discount\n }\n fulfillments {\n ...Fulfillment\n }\n unitPrice\n unitPriceWithTax\n proratedUnitPrice\n proratedUnitPriceWithTax\n quantity\n items {\n id\n refundId\n cancelled\n }\n linePrice\n lineTax\n linePriceWithTax\n discountedLinePrice\n discountedLinePriceWithTax\n }\n"])));
|
|
1593
|
-
var ORDER_DETAIL_FRAGMENT = apolloAngular.gql(templateObject_8$1 || (templateObject_8$1 = __makeTemplateObject(["\n fragment OrderDetail on Order {\n id\n createdAt\n updatedAt\n code\n state\n nextStates\n active\n couponCodes\n customer {\n id\n firstName\n lastName\n }\n lines {\n ...OrderLine\n }\n surcharges {\n id\n sku\n description\n price\n priceWithTax\n taxRate\n }\n discounts {\n ...Discount\n }\n promotions {\n id\n couponCode\n }\n subTotal\n subTotalWithTax\n total\n totalWithTax\n currencyCode\n shipping\n shippingWithTax\n shippingLines {\n shippingMethod {\n id\n code\n name\n fulfillmentHandlerCode\n description\n }\n }\n taxSummary {\n description\n taxBase\n taxRate\n taxTotal\n }\n shippingAddress {\n ...OrderAddress\n }\n billingAddress {\n ...OrderAddress\n }\n payments {\n id\n createdAt\n transactionId\n amount\n method\n state\n nextStates\n errorMessage\n metadata\n refunds {\n id\n createdAt\n state\n items\n adjustment\n total\n paymentId\n reason\n transactionId\n method\n metadata\n orderItems {\n id\n }\n }\n }\n fulfillments {\n ...Fulfillment\n }\n modifications {\n id\n createdAt\n isSettled\n priceChange\n note\n payment {\n id\n amount\n }\n orderItems {\n id\n }\n refund {\n id\n paymentId\n total\n }\n surcharges {\n id\n }\n }\n }\n ", "\n ", "\n ", "\n ", "\n"], ["\n fragment OrderDetail on Order {\n id\n createdAt\n updatedAt\n code\n state\n nextStates\n active\n couponCodes\n customer {\n id\n firstName\n lastName\n }\n lines {\n ...OrderLine\n }\n surcharges {\n id\n sku\n description\n price\n priceWithTax\n taxRate\n }\n discounts {\n ...Discount\n }\n promotions {\n id\n couponCode\n }\n subTotal\n subTotalWithTax\n total\n totalWithTax\n currencyCode\n shipping\n shippingWithTax\n shippingLines {\n shippingMethod {\n id\n code\n name\n fulfillmentHandlerCode\n description\n }\n }\n taxSummary {\n description\n taxBase\n taxRate\n taxTotal\n }\n shippingAddress {\n ...OrderAddress\n }\n billingAddress {\n ...OrderAddress\n }\n payments {\n id\n createdAt\n transactionId\n amount\n method\n state\n nextStates\n errorMessage\n metadata\n refunds {\n id\n createdAt\n state\n items\n adjustment\n total\n paymentId\n reason\n transactionId\n method\n metadata\n orderItems {\n id\n }\n }\n }\n fulfillments {\n ...Fulfillment\n }\n modifications {\n id\n createdAt\n isSettled\n priceChange\n note\n payment {\n id\n amount\n }\n orderItems {\n id\n }\n refund {\n id\n paymentId\n total\n }\n surcharges {\n id\n }\n }\n }\n ", "\n ", "\n ", "\n ", "\n"])), DISCOUNT_FRAGMENT, ORDER_ADDRESS_FRAGMENT, FULFILLMENT_FRAGMENT, ORDER_LINE_FRAGMENT);
|
|
1594
|
-
var GET_ORDERS_LIST = apolloAngular.gql(templateObject_9$1 || (templateObject_9$1 = __makeTemplateObject(["\n query GetOrderList($options: OrderListOptions) {\n orders(options: $options) {\n items {\n ...Order\n }\n totalItems\n }\n }\n ", "\n"], ["\n query GetOrderList($options: OrderListOptions) {\n orders(options: $options) {\n items {\n ...Order\n }\n totalItems\n }\n }\n ", "\n"])), ORDER_FRAGMENT);
|
|
1595
|
-
var GET_ORDER = apolloAngular.gql(templateObject_10 || (templateObject_10 = __makeTemplateObject(["\n query GetOrder($id: ID!) {\n order(id: $id) {\n ...OrderDetail\n }\n }\n ", "\n"], ["\n query GetOrder($id: ID!) {\n order(id: $id) {\n ...OrderDetail\n }\n }\n ", "\n"])), ORDER_DETAIL_FRAGMENT);
|
|
1596
|
-
var SETTLE_PAYMENT = apolloAngular.gql(templateObject_11 || (templateObject_11 = __makeTemplateObject(["\n mutation SettlePayment($id: ID!) {\n settlePayment(id: $id) {\n ...Payment\n ...ErrorResult\n ... on SettlePaymentError {\n paymentErrorMessage\n }\n ... on PaymentStateTransitionError {\n transitionError\n }\n ... on OrderStateTransitionError {\n transitionError\n }\n }\n }\n ", "\n ", "\n"], ["\n mutation SettlePayment($id: ID!) {\n settlePayment(id: $id) {\n ...Payment\n ...ErrorResult\n ... on SettlePaymentError {\n paymentErrorMessage\n }\n ... on PaymentStateTransitionError {\n transitionError\n }\n ... on OrderStateTransitionError {\n transitionError\n }\n }\n }\n ", "\n ", "\n"])), ERROR_RESULT_FRAGMENT, PAYMENT_FRAGMENT);
|
|
1597
|
-
var CANCEL_PAYMENT = apolloAngular.gql(templateObject_12 || (templateObject_12 = __makeTemplateObject(["\n mutation CancelPayment($id: ID!) {\n cancelPayment(id: $id) {\n ...Payment\n ...ErrorResult\n ... on CancelPaymentError {\n paymentErrorMessage\n }\n ... on PaymentStateTransitionError {\n transitionError\n }\n }\n }\n ", "\n ", "\n"], ["\n mutation CancelPayment($id: ID!) {\n cancelPayment(id: $id) {\n ...Payment\n ...ErrorResult\n ... on CancelPaymentError {\n paymentErrorMessage\n }\n ... on PaymentStateTransitionError {\n transitionError\n }\n }\n }\n ", "\n ", "\n"])), ERROR_RESULT_FRAGMENT, PAYMENT_FRAGMENT);
|
|
1598
|
-
var TRANSITION_PAYMENT_TO_STATE = apolloAngular.gql(templateObject_13 || (templateObject_13 = __makeTemplateObject(["\n mutation TransitionPaymentToState($id: ID!, $state: String!) {\n transitionPaymentToState(id: $id, state: $state) {\n ...Payment\n ...ErrorResult\n ... on PaymentStateTransitionError {\n transitionError\n }\n }\n }\n ", "\n ", "\n"], ["\n mutation TransitionPaymentToState($id: ID!, $state: String!) {\n transitionPaymentToState(id: $id, state: $state) {\n ...Payment\n ...ErrorResult\n ... on PaymentStateTransitionError {\n transitionError\n }\n }\n }\n ", "\n ", "\n"])), PAYMENT_FRAGMENT, ERROR_RESULT_FRAGMENT);
|
|
1599
|
-
var CREATE_FULFILLMENT = apolloAngular.gql(templateObject_14 || (templateObject_14 = __makeTemplateObject(["\n mutation CreateFulfillment($input: FulfillOrderInput!) {\n addFulfillmentToOrder(input: $input) {\n ...Fulfillment\n ... on CreateFulfillmentError {\n errorCode\n message\n fulfillmentHandlerError\n }\n ... on FulfillmentStateTransitionError {\n errorCode\n message\n transitionError\n }\n ...ErrorResult\n }\n }\n ", "\n ", "\n"], ["\n mutation CreateFulfillment($input: FulfillOrderInput!) {\n addFulfillmentToOrder(input: $input) {\n ...Fulfillment\n ... on CreateFulfillmentError {\n errorCode\n message\n fulfillmentHandlerError\n }\n ... on FulfillmentStateTransitionError {\n errorCode\n message\n transitionError\n }\n ...ErrorResult\n }\n }\n ", "\n ", "\n"])), FULFILLMENT_FRAGMENT, ERROR_RESULT_FRAGMENT);
|
|
1600
|
-
var CANCEL_ORDER = apolloAngular.gql(templateObject_15 || (templateObject_15 = __makeTemplateObject(["\n mutation CancelOrder($input: CancelOrderInput!) {\n cancelOrder(input: $input) {\n ...OrderDetail\n ...ErrorResult\n }\n }\n ", "\n ", "\n"], ["\n mutation CancelOrder($input: CancelOrderInput!) {\n cancelOrder(input: $input) {\n ...OrderDetail\n ...ErrorResult\n }\n }\n ", "\n ", "\n"])), ORDER_DETAIL_FRAGMENT, ERROR_RESULT_FRAGMENT);
|
|
1601
|
-
var REFUND_ORDER = apolloAngular.gql(templateObject_16 || (templateObject_16 = __makeTemplateObject(["\n mutation RefundOrder($input: RefundOrderInput!) {\n refundOrder(input: $input) {\n ...Refund\n ...ErrorResult\n }\n }\n ", "\n ", "\n"], ["\n mutation RefundOrder($input: RefundOrderInput!) {\n refundOrder(input: $input) {\n ...Refund\n ...ErrorResult\n }\n }\n ", "\n ", "\n"])), REFUND_FRAGMENT, ERROR_RESULT_FRAGMENT);
|
|
1602
|
-
var SETTLE_REFUND = apolloAngular.gql(templateObject_17 || (templateObject_17 = __makeTemplateObject(["\n mutation SettleRefund($input: SettleRefundInput!) {\n settleRefund(input: $input) {\n ...Refund\n ...ErrorResult\n }\n }\n ", "\n ", "\n"], ["\n mutation SettleRefund($input: SettleRefundInput!) {\n settleRefund(input: $input) {\n ...Refund\n ...ErrorResult\n }\n }\n ", "\n ", "\n"])), REFUND_FRAGMENT, ERROR_RESULT_FRAGMENT);
|
|
1603
|
-
var GET_ORDER_HISTORY = apolloAngular.gql(templateObject_18 || (templateObject_18 = __makeTemplateObject(["\n query GetOrderHistory($id: ID!, $options: HistoryEntryListOptions) {\n order(id: $id) {\n id\n history(options: $options) {\n totalItems\n items {\n id\n type\n createdAt\n isPublic\n administrator {\n id\n firstName\n lastName\n }\n data\n }\n }\n }\n }\n"], ["\n query GetOrderHistory($id: ID!, $options: HistoryEntryListOptions) {\n order(id: $id) {\n id\n history(options: $options) {\n totalItems\n items {\n id\n type\n createdAt\n isPublic\n administrator {\n id\n firstName\n lastName\n }\n data\n }\n }\n }\n }\n"])));
|
|
1604
|
-
var ADD_NOTE_TO_ORDER = apolloAngular.gql(templateObject_19 || (templateObject_19 = __makeTemplateObject(["\n mutation AddNoteToOrder($input: AddNoteToOrderInput!) {\n addNoteToOrder(input: $input) {\n id\n }\n }\n"], ["\n mutation AddNoteToOrder($input: AddNoteToOrderInput!) {\n addNoteToOrder(input: $input) {\n id\n }\n }\n"])));
|
|
1605
|
-
var UPDATE_ORDER_NOTE = apolloAngular.gql(templateObject_20 || (templateObject_20 = __makeTemplateObject(["\n mutation UpdateOrderNote($input: UpdateOrderNoteInput!) {\n updateOrderNote(input: $input) {\n id\n data\n isPublic\n }\n }\n"], ["\n mutation UpdateOrderNote($input: UpdateOrderNoteInput!) {\n updateOrderNote(input: $input) {\n id\n data\n isPublic\n }\n }\n"])));
|
|
1606
|
-
var DELETE_ORDER_NOTE = apolloAngular.gql(templateObject_21 || (templateObject_21 = __makeTemplateObject(["\n mutation DeleteOrderNote($id: ID!) {\n deleteOrderNote(id: $id) {\n result\n message\n }\n }\n"], ["\n mutation DeleteOrderNote($id: ID!) {\n deleteOrderNote(id: $id) {\n result\n message\n }\n }\n"])));
|
|
1607
|
-
var TRANSITION_ORDER_TO_STATE = apolloAngular.gql(templateObject_22 || (templateObject_22 = __makeTemplateObject(["\n mutation TransitionOrderToState($id: ID!, $state: String!) {\n transitionOrderToState(id: $id, state: $state) {\n ...Order\n ...ErrorResult\n ... on OrderStateTransitionError {\n transitionError\n }\n }\n }\n ", "\n ", "\n"], ["\n mutation TransitionOrderToState($id: ID!, $state: String!) {\n transitionOrderToState(id: $id, state: $state) {\n ...Order\n ...ErrorResult\n ... on OrderStateTransitionError {\n transitionError\n }\n }\n }\n ", "\n ", "\n"])), ORDER_FRAGMENT, ERROR_RESULT_FRAGMENT);
|
|
1608
|
-
var UPDATE_ORDER_CUSTOM_FIELDS = apolloAngular.gql(templateObject_23 || (templateObject_23 = __makeTemplateObject(["\n mutation UpdateOrderCustomFields($input: UpdateOrderInput!) {\n setOrderCustomFields(input: $input) {\n ...Order\n }\n }\n ", "\n"], ["\n mutation UpdateOrderCustomFields($input: UpdateOrderInput!) {\n setOrderCustomFields(input: $input) {\n ...Order\n }\n }\n ", "\n"])), ORDER_FRAGMENT);
|
|
1609
|
-
var TRANSITION_FULFILLMENT_TO_STATE = apolloAngular.gql(templateObject_24 || (templateObject_24 = __makeTemplateObject(["\n mutation TransitionFulfillmentToState($id: ID!, $state: String!) {\n transitionFulfillmentToState(id: $id, state: $state) {\n ...Fulfillment\n ...ErrorResult\n ... on FulfillmentStateTransitionError {\n transitionError\n }\n }\n }\n ", "\n ", "\n"], ["\n mutation TransitionFulfillmentToState($id: ID!, $state: String!) {\n transitionFulfillmentToState(id: $id, state: $state) {\n ...Fulfillment\n ...ErrorResult\n ... on FulfillmentStateTransitionError {\n transitionError\n }\n }\n }\n ", "\n ", "\n"])), FULFILLMENT_FRAGMENT, ERROR_RESULT_FRAGMENT);
|
|
1610
|
-
var GET_ORDER_SUMMARY = apolloAngular.gql(templateObject_25 || (templateObject_25 = __makeTemplateObject(["\n query GetOrderSummary($start: DateTime!, $end: DateTime!) {\n orders(options: { filter: { orderPlacedAt: { between: { start: $start, end: $end } } } }) {\n totalItems\n items {\n id\n total\n currencyCode\n }\n }\n }\n"], ["\n query GetOrderSummary($start: DateTime!, $end: DateTime!) {\n orders(options: { filter: { orderPlacedAt: { between: { start: $start, end: $end } } } }) {\n totalItems\n items {\n id\n total\n currencyCode\n }\n }\n }\n"])));
|
|
1611
|
-
var MODIFY_ORDER = apolloAngular.gql(templateObject_26 || (templateObject_26 = __makeTemplateObject(["\n mutation ModifyOrder($input: ModifyOrderInput!) {\n modifyOrder(input: $input) {\n ...OrderDetail\n ...ErrorResult\n }\n }\n ", "\n ", "\n"], ["\n mutation ModifyOrder($input: ModifyOrderInput!) {\n modifyOrder(input: $input) {\n ...OrderDetail\n ...ErrorResult\n }\n }\n ", "\n ", "\n"])), ORDER_DETAIL_FRAGMENT, ERROR_RESULT_FRAGMENT);
|
|
1612
|
-
var ADD_MANUAL_PAYMENT_TO_ORDER = apolloAngular.gql(templateObject_27 || (templateObject_27 = __makeTemplateObject(["\n mutation AddManualPayment($input: ManualPaymentInput!) {\n addManualPaymentToOrder(input: $input) {\n ...OrderDetail\n ...ErrorResult\n }\n }\n ", "\n ", "\n"], ["\n mutation AddManualPayment($input: ManualPaymentInput!) {\n addManualPaymentToOrder(input: $input) {\n ...OrderDetail\n ...ErrorResult\n }\n }\n ", "\n ", "\n"])), ORDER_DETAIL_FRAGMENT, ERROR_RESULT_FRAGMENT);
|
|
1613
|
-
var templateObject_1$2, templateObject_2$2, templateObject_3$2, templateObject_4$2, templateObject_5$2, templateObject_6$2, templateObject_7$2, templateObject_8$1, templateObject_9$1, templateObject_10, templateObject_11, templateObject_12, templateObject_13, templateObject_14, templateObject_15, templateObject_16, templateObject_17, templateObject_18, templateObject_19, templateObject_20, templateObject_21, templateObject_22, templateObject_23, templateObject_24, templateObject_25, templateObject_26, templateObject_27;
|
|
1614
|
-
|
|
1615
|
-
var OrderDataService = /** @class */ (function () {
|
|
1616
|
-
function OrderDataService(baseDataService) {
|
|
1617
|
-
this.baseDataService = baseDataService;
|
|
1618
|
-
}
|
|
1619
|
-
OrderDataService.prototype.getOrders = function (options) {
|
|
1620
|
-
if (options === void 0) { options = { take: 10 }; }
|
|
1621
|
-
return this.baseDataService.query(GET_ORDERS_LIST, {
|
|
1622
|
-
options: options,
|
|
1623
|
-
});
|
|
1624
|
-
};
|
|
1625
|
-
OrderDataService.prototype.getOrder = function (id) {
|
|
1626
|
-
return this.baseDataService.query(GET_ORDER, { id: id });
|
|
1627
|
-
};
|
|
1628
|
-
OrderDataService.prototype.getOrderHistory = function (id, options) {
|
|
1629
|
-
return this.baseDataService.query(GET_ORDER_HISTORY, {
|
|
1630
|
-
id: id,
|
|
1631
|
-
options: options,
|
|
1632
|
-
});
|
|
1633
|
-
};
|
|
1634
|
-
OrderDataService.prototype.settlePayment = function (id) {
|
|
1635
|
-
return this.baseDataService.mutate(SETTLE_PAYMENT, {
|
|
1636
|
-
id: id,
|
|
1637
|
-
});
|
|
1638
|
-
};
|
|
1639
|
-
OrderDataService.prototype.cancelPayment = function (id) {
|
|
1640
|
-
return this.baseDataService.mutate(CANCEL_PAYMENT, {
|
|
1641
|
-
id: id,
|
|
1642
|
-
});
|
|
1643
|
-
};
|
|
1644
|
-
OrderDataService.prototype.transitionPaymentToState = function (id, state) {
|
|
1645
|
-
return this.baseDataService.mutate(TRANSITION_PAYMENT_TO_STATE, {
|
|
1646
|
-
id: id,
|
|
1647
|
-
state: state,
|
|
1648
|
-
});
|
|
1649
|
-
};
|
|
1650
|
-
OrderDataService.prototype.createFulfillment = function (input) {
|
|
1651
|
-
return this.baseDataService.mutate(CREATE_FULFILLMENT, {
|
|
1652
|
-
input: input,
|
|
1653
|
-
});
|
|
1654
|
-
};
|
|
1655
|
-
OrderDataService.prototype.transitionFulfillmentToState = function (id, state) {
|
|
1656
|
-
return this.baseDataService.mutate(TRANSITION_FULFILLMENT_TO_STATE, {
|
|
1657
|
-
id: id,
|
|
1658
|
-
state: state,
|
|
1659
|
-
});
|
|
1660
|
-
};
|
|
1661
|
-
OrderDataService.prototype.cancelOrder = function (input) {
|
|
1662
|
-
return this.baseDataService.mutate(CANCEL_ORDER, {
|
|
1663
|
-
input: input,
|
|
1664
|
-
});
|
|
1665
|
-
};
|
|
1666
|
-
OrderDataService.prototype.refundOrder = function (input) {
|
|
1667
|
-
return this.baseDataService.mutate(REFUND_ORDER, {
|
|
1668
|
-
input: input,
|
|
1669
|
-
});
|
|
1670
|
-
};
|
|
1671
|
-
OrderDataService.prototype.settleRefund = function (input, orderId) {
|
|
1672
|
-
return this.baseDataService.mutate(SETTLE_REFUND, {
|
|
1673
|
-
input: input,
|
|
1674
|
-
});
|
|
1675
|
-
};
|
|
1676
|
-
OrderDataService.prototype.addNoteToOrder = function (input) {
|
|
1677
|
-
return this.baseDataService.mutate(ADD_NOTE_TO_ORDER, {
|
|
1678
|
-
input: input,
|
|
1679
|
-
});
|
|
1680
|
-
};
|
|
1681
|
-
OrderDataService.prototype.updateOrderNote = function (input) {
|
|
1682
|
-
return this.baseDataService.mutate(UPDATE_ORDER_NOTE, {
|
|
1683
|
-
input: input,
|
|
1684
|
-
});
|
|
1685
|
-
};
|
|
1686
|
-
OrderDataService.prototype.deleteOrderNote = function (id) {
|
|
1687
|
-
return this.baseDataService.mutate(DELETE_ORDER_NOTE, {
|
|
1688
|
-
id: id,
|
|
1689
|
-
});
|
|
1690
|
-
};
|
|
1691
|
-
OrderDataService.prototype.transitionToState = function (id, state) {
|
|
1692
|
-
return this.baseDataService.mutate(TRANSITION_ORDER_TO_STATE, {
|
|
1693
|
-
id: id,
|
|
1694
|
-
state: state,
|
|
1695
|
-
});
|
|
1696
|
-
};
|
|
1697
|
-
OrderDataService.prototype.updateOrderCustomFields = function (input) {
|
|
1698
|
-
return this.baseDataService.mutate(UPDATE_ORDER_CUSTOM_FIELDS, {
|
|
1699
|
-
input: input,
|
|
1700
|
-
});
|
|
1701
|
-
};
|
|
1702
|
-
OrderDataService.prototype.getOrderSummary = function (start, end) {
|
|
1703
|
-
return this.baseDataService.query(GET_ORDER_SUMMARY, {
|
|
1704
|
-
start: start.toISOString(),
|
|
1705
|
-
end: end.toISOString(),
|
|
1706
|
-
});
|
|
1707
|
-
};
|
|
1708
|
-
OrderDataService.prototype.modifyOrder = function (input) {
|
|
1709
|
-
return this.baseDataService.mutate(MODIFY_ORDER, {
|
|
1710
|
-
input: input,
|
|
1711
|
-
});
|
|
1712
|
-
};
|
|
1713
|
-
OrderDataService.prototype.addManualPaymentToOrder = function (input) {
|
|
1714
|
-
return this.baseDataService.mutate(ADD_MANUAL_PAYMENT_TO_ORDER, { input: input });
|
|
1715
|
-
};
|
|
1716
|
-
return OrderDataService;
|
|
1391
|
+
return CollectionDataService;
|
|
1717
1392
|
}());
|
|
1718
1393
|
|
|
1719
1394
|
exports.AdjustmentType = void 0;
|
|
@@ -2063,6 +1738,7 @@
|
|
|
2063
1738
|
ErrorCode["UNKNOWN_ERROR"] = "UNKNOWN_ERROR";
|
|
2064
1739
|
ErrorCode["MIME_TYPE_ERROR"] = "MIME_TYPE_ERROR";
|
|
2065
1740
|
ErrorCode["LANGUAGE_NOT_AVAILABLE_ERROR"] = "LANGUAGE_NOT_AVAILABLE_ERROR";
|
|
1741
|
+
ErrorCode["FACET_IN_USE_ERROR"] = "FACET_IN_USE_ERROR";
|
|
2066
1742
|
ErrorCode["CHANNEL_DEFAULT_LANGUAGE_ERROR"] = "CHANNEL_DEFAULT_LANGUAGE_ERROR";
|
|
2067
1743
|
ErrorCode["SETTLE_PAYMENT_ERROR"] = "SETTLE_PAYMENT_ERROR";
|
|
2068
1744
|
ErrorCode["CANCEL_PAYMENT_ERROR"] = "CANCEL_PAYMENT_ERROR";
|
|
@@ -2098,6 +1774,9 @@
|
|
|
2098
1774
|
ErrorCode["COUPON_CODE_INVALID_ERROR"] = "COUPON_CODE_INVALID_ERROR";
|
|
2099
1775
|
ErrorCode["COUPON_CODE_EXPIRED_ERROR"] = "COUPON_CODE_EXPIRED_ERROR";
|
|
2100
1776
|
ErrorCode["COUPON_CODE_LIMIT_ERROR"] = "COUPON_CODE_LIMIT_ERROR";
|
|
1777
|
+
ErrorCode["ORDER_MODIFICATION_ERROR"] = "ORDER_MODIFICATION_ERROR";
|
|
1778
|
+
ErrorCode["INELIGIBLE_SHIPPING_METHOD_ERROR"] = "INELIGIBLE_SHIPPING_METHOD_ERROR";
|
|
1779
|
+
ErrorCode["NO_ACTIVE_ORDER_ERROR"] = "NO_ACTIVE_ORDER_ERROR";
|
|
2101
1780
|
})(exports.ErrorCode || (exports.ErrorCode = {}));
|
|
2102
1781
|
exports.GlobalFlag = void 0;
|
|
2103
1782
|
(function (GlobalFlag) {
|
|
@@ -2699,6 +2378,425 @@
|
|
|
2699
2378
|
StockMovementType["RETURN"] = "RETURN";
|
|
2700
2379
|
})(exports.StockMovementType || (exports.StockMovementType = {}));
|
|
2701
2380
|
|
|
2381
|
+
var ADDRESS_FRAGMENT = apolloAngular.gql(templateObject_1$4 || (templateObject_1$4 = __makeTemplateObject(["\n fragment Address on Address {\n id\n createdAt\n updatedAt\n fullName\n company\n streetLine1\n streetLine2\n city\n province\n postalCode\n country {\n id\n code\n name\n }\n phoneNumber\n defaultShippingAddress\n defaultBillingAddress\n }\n"], ["\n fragment Address on Address {\n id\n createdAt\n updatedAt\n fullName\n company\n streetLine1\n streetLine2\n city\n province\n postalCode\n country {\n id\n code\n name\n }\n phoneNumber\n defaultShippingAddress\n defaultBillingAddress\n }\n"])));
|
|
2382
|
+
var CUSTOMER_FRAGMENT = apolloAngular.gql(templateObject_2$4 || (templateObject_2$4 = __makeTemplateObject(["\n fragment Customer on Customer {\n id\n createdAt\n updatedAt\n title\n firstName\n lastName\n phoneNumber\n emailAddress\n user {\n id\n identifier\n verified\n lastLogin\n }\n addresses {\n ...Address\n }\n }\n ", "\n"], ["\n fragment Customer on Customer {\n id\n createdAt\n updatedAt\n title\n firstName\n lastName\n phoneNumber\n emailAddress\n user {\n id\n identifier\n verified\n lastLogin\n }\n addresses {\n ...Address\n }\n }\n ", "\n"])), ADDRESS_FRAGMENT);
|
|
2383
|
+
var CUSTOMER_GROUP_FRAGMENT = apolloAngular.gql(templateObject_3$4 || (templateObject_3$4 = __makeTemplateObject(["\n fragment CustomerGroup on CustomerGroup {\n id\n createdAt\n updatedAt\n name\n }\n"], ["\n fragment CustomerGroup on CustomerGroup {\n id\n createdAt\n updatedAt\n name\n }\n"])));
|
|
2384
|
+
var GET_CUSTOMER_LIST = apolloAngular.gql(templateObject_4$4 || (templateObject_4$4 = __makeTemplateObject(["\n query GetCustomerList($options: CustomerListOptions) {\n customers(options: $options) {\n items {\n id\n createdAt\n updatedAt\n title\n firstName\n lastName\n emailAddress\n user {\n id\n verified\n }\n }\n totalItems\n }\n }\n"], ["\n query GetCustomerList($options: CustomerListOptions) {\n customers(options: $options) {\n items {\n id\n createdAt\n updatedAt\n title\n firstName\n lastName\n emailAddress\n user {\n id\n verified\n }\n }\n totalItems\n }\n }\n"])));
|
|
2385
|
+
var GET_CUSTOMER = apolloAngular.gql(templateObject_5$4 || (templateObject_5$4 = __makeTemplateObject(["\n query GetCustomer($id: ID!, $orderListOptions: OrderListOptions) {\n customer(id: $id) {\n ...Customer\n groups {\n id\n name\n }\n orders(options: $orderListOptions) {\n items {\n id\n code\n state\n totalWithTax\n currencyCode\n updatedAt\n }\n totalItems\n }\n }\n }\n ", "\n"], ["\n query GetCustomer($id: ID!, $orderListOptions: OrderListOptions) {\n customer(id: $id) {\n ...Customer\n groups {\n id\n name\n }\n orders(options: $orderListOptions) {\n items {\n id\n code\n state\n totalWithTax\n currencyCode\n updatedAt\n }\n totalItems\n }\n }\n }\n ", "\n"])), CUSTOMER_FRAGMENT);
|
|
2386
|
+
var CREATE_CUSTOMER = apolloAngular.gql(templateObject_6$4 || (templateObject_6$4 = __makeTemplateObject(["\n mutation CreateCustomer($input: CreateCustomerInput!, $password: String) {\n createCustomer(input: $input, password: $password) {\n ...Customer\n ...ErrorResult\n }\n }\n ", "\n ", "\n"], ["\n mutation CreateCustomer($input: CreateCustomerInput!, $password: String) {\n createCustomer(input: $input, password: $password) {\n ...Customer\n ...ErrorResult\n }\n }\n ", "\n ", "\n"])), CUSTOMER_FRAGMENT, ERROR_RESULT_FRAGMENT);
|
|
2387
|
+
var UPDATE_CUSTOMER = apolloAngular.gql(templateObject_7$4 || (templateObject_7$4 = __makeTemplateObject(["\n mutation UpdateCustomer($input: UpdateCustomerInput!) {\n updateCustomer(input: $input) {\n ...Customer\n ...ErrorResult\n }\n }\n ", "\n ", "\n"], ["\n mutation UpdateCustomer($input: UpdateCustomerInput!) {\n updateCustomer(input: $input) {\n ...Customer\n ...ErrorResult\n }\n }\n ", "\n ", "\n"])), CUSTOMER_FRAGMENT, ERROR_RESULT_FRAGMENT);
|
|
2388
|
+
var DELETE_CUSTOMER = apolloAngular.gql(templateObject_8$3 || (templateObject_8$3 = __makeTemplateObject(["\n mutation DeleteCustomer($id: ID!) {\n deleteCustomer(id: $id) {\n result\n message\n }\n }\n"], ["\n mutation DeleteCustomer($id: ID!) {\n deleteCustomer(id: $id) {\n result\n message\n }\n }\n"])));
|
|
2389
|
+
var CREATE_CUSTOMER_ADDRESS = apolloAngular.gql(templateObject_9$3 || (templateObject_9$3 = __makeTemplateObject(["\n mutation CreateCustomerAddress($customerId: ID!, $input: CreateAddressInput!) {\n createCustomerAddress(customerId: $customerId, input: $input) {\n ...Address\n }\n }\n ", "\n"], ["\n mutation CreateCustomerAddress($customerId: ID!, $input: CreateAddressInput!) {\n createCustomerAddress(customerId: $customerId, input: $input) {\n ...Address\n }\n }\n ", "\n"])), ADDRESS_FRAGMENT);
|
|
2390
|
+
var UPDATE_CUSTOMER_ADDRESS = apolloAngular.gql(templateObject_10$2 || (templateObject_10$2 = __makeTemplateObject(["\n mutation UpdateCustomerAddress($input: UpdateAddressInput!) {\n updateCustomerAddress(input: $input) {\n ...Address\n }\n }\n ", "\n"], ["\n mutation UpdateCustomerAddress($input: UpdateAddressInput!) {\n updateCustomerAddress(input: $input) {\n ...Address\n }\n }\n ", "\n"])), ADDRESS_FRAGMENT);
|
|
2391
|
+
var DELETE_CUSTOMER_ADDRESS = apolloAngular.gql(templateObject_11$2 || (templateObject_11$2 = __makeTemplateObject(["\n mutation DeleteCustomerAddress($id: ID!) {\n deleteCustomerAddress(id: $id) {\n success\n }\n }\n"], ["\n mutation DeleteCustomerAddress($id: ID!) {\n deleteCustomerAddress(id: $id) {\n success\n }\n }\n"])));
|
|
2392
|
+
var CREATE_CUSTOMER_GROUP = apolloAngular.gql(templateObject_12$2 || (templateObject_12$2 = __makeTemplateObject(["\n mutation CreateCustomerGroup($input: CreateCustomerGroupInput!) {\n createCustomerGroup(input: $input) {\n ...CustomerGroup\n }\n }\n ", "\n"], ["\n mutation CreateCustomerGroup($input: CreateCustomerGroupInput!) {\n createCustomerGroup(input: $input) {\n ...CustomerGroup\n }\n }\n ", "\n"])), CUSTOMER_GROUP_FRAGMENT);
|
|
2393
|
+
var UPDATE_CUSTOMER_GROUP = apolloAngular.gql(templateObject_13$2 || (templateObject_13$2 = __makeTemplateObject(["\n mutation UpdateCustomerGroup($input: UpdateCustomerGroupInput!) {\n updateCustomerGroup(input: $input) {\n ...CustomerGroup\n }\n }\n ", "\n"], ["\n mutation UpdateCustomerGroup($input: UpdateCustomerGroupInput!) {\n updateCustomerGroup(input: $input) {\n ...CustomerGroup\n }\n }\n ", "\n"])), CUSTOMER_GROUP_FRAGMENT);
|
|
2394
|
+
var DELETE_CUSTOMER_GROUP = apolloAngular.gql(templateObject_14$1 || (templateObject_14$1 = __makeTemplateObject(["\n mutation DeleteCustomerGroup($id: ID!) {\n deleteCustomerGroup(id: $id) {\n result\n message\n }\n }\n"], ["\n mutation DeleteCustomerGroup($id: ID!) {\n deleteCustomerGroup(id: $id) {\n result\n message\n }\n }\n"])));
|
|
2395
|
+
var GET_CUSTOMER_GROUPS = apolloAngular.gql(templateObject_15$1 || (templateObject_15$1 = __makeTemplateObject(["\n query GetCustomerGroups($options: CustomerGroupListOptions) {\n customerGroups(options: $options) {\n items {\n ...CustomerGroup\n }\n totalItems\n }\n }\n ", "\n"], ["\n query GetCustomerGroups($options: CustomerGroupListOptions) {\n customerGroups(options: $options) {\n items {\n ...CustomerGroup\n }\n totalItems\n }\n }\n ", "\n"])), CUSTOMER_GROUP_FRAGMENT);
|
|
2396
|
+
var GET_CUSTOMER_GROUP_WITH_CUSTOMERS = apolloAngular.gql(templateObject_16$1 || (templateObject_16$1 = __makeTemplateObject(["\n query GetCustomerGroupWithCustomers($id: ID!, $options: CustomerListOptions) {\n customerGroup(id: $id) {\n ...CustomerGroup\n customers(options: $options) {\n items {\n id\n createdAt\n updatedAt\n emailAddress\n firstName\n lastName\n }\n totalItems\n }\n }\n }\n ", "\n"], ["\n query GetCustomerGroupWithCustomers($id: ID!, $options: CustomerListOptions) {\n customerGroup(id: $id) {\n ...CustomerGroup\n customers(options: $options) {\n items {\n id\n createdAt\n updatedAt\n emailAddress\n firstName\n lastName\n }\n totalItems\n }\n }\n }\n ", "\n"])), CUSTOMER_GROUP_FRAGMENT);
|
|
2397
|
+
var ADD_CUSTOMERS_TO_GROUP = apolloAngular.gql(templateObject_17$1 || (templateObject_17$1 = __makeTemplateObject(["\n mutation AddCustomersToGroup($groupId: ID!, $customerIds: [ID!]!) {\n addCustomersToGroup(customerGroupId: $groupId, customerIds: $customerIds) {\n ...CustomerGroup\n }\n }\n ", "\n"], ["\n mutation AddCustomersToGroup($groupId: ID!, $customerIds: [ID!]!) {\n addCustomersToGroup(customerGroupId: $groupId, customerIds: $customerIds) {\n ...CustomerGroup\n }\n }\n ", "\n"])), CUSTOMER_GROUP_FRAGMENT);
|
|
2398
|
+
var REMOVE_CUSTOMERS_FROM_GROUP = apolloAngular.gql(templateObject_18$1 || (templateObject_18$1 = __makeTemplateObject(["\n mutation RemoveCustomersFromGroup($groupId: ID!, $customerIds: [ID!]!) {\n removeCustomersFromGroup(customerGroupId: $groupId, customerIds: $customerIds) {\n ...CustomerGroup\n }\n }\n ", "\n"], ["\n mutation RemoveCustomersFromGroup($groupId: ID!, $customerIds: [ID!]!) {\n removeCustomersFromGroup(customerGroupId: $groupId, customerIds: $customerIds) {\n ...CustomerGroup\n }\n }\n ", "\n"])), CUSTOMER_GROUP_FRAGMENT);
|
|
2399
|
+
var GET_CUSTOMER_HISTORY = apolloAngular.gql(templateObject_19$1 || (templateObject_19$1 = __makeTemplateObject(["\n query GetCustomerHistory($id: ID!, $options: HistoryEntryListOptions) {\n customer(id: $id) {\n id\n history(options: $options) {\n totalItems\n items {\n id\n type\n createdAt\n isPublic\n administrator {\n id\n firstName\n lastName\n }\n data\n }\n }\n }\n }\n"], ["\n query GetCustomerHistory($id: ID!, $options: HistoryEntryListOptions) {\n customer(id: $id) {\n id\n history(options: $options) {\n totalItems\n items {\n id\n type\n createdAt\n isPublic\n administrator {\n id\n firstName\n lastName\n }\n data\n }\n }\n }\n }\n"])));
|
|
2400
|
+
var ADD_NOTE_TO_CUSTOMER = apolloAngular.gql(templateObject_20$1 || (templateObject_20$1 = __makeTemplateObject(["\n mutation AddNoteToCustomer($input: AddNoteToCustomerInput!) {\n addNoteToCustomer(input: $input) {\n id\n }\n }\n"], ["\n mutation AddNoteToCustomer($input: AddNoteToCustomerInput!) {\n addNoteToCustomer(input: $input) {\n id\n }\n }\n"])));
|
|
2401
|
+
var UPDATE_CUSTOMER_NOTE = apolloAngular.gql(templateObject_21$1 || (templateObject_21$1 = __makeTemplateObject(["\n mutation UpdateCustomerNote($input: UpdateCustomerNoteInput!) {\n updateCustomerNote(input: $input) {\n id\n data\n isPublic\n }\n }\n"], ["\n mutation UpdateCustomerNote($input: UpdateCustomerNoteInput!) {\n updateCustomerNote(input: $input) {\n id\n data\n isPublic\n }\n }\n"])));
|
|
2402
|
+
var DELETE_CUSTOMER_NOTE = apolloAngular.gql(templateObject_22$1 || (templateObject_22$1 = __makeTemplateObject(["\n mutation DeleteCustomerNote($id: ID!) {\n deleteCustomerNote(id: $id) {\n result\n message\n }\n }\n"], ["\n mutation DeleteCustomerNote($id: ID!) {\n deleteCustomerNote(id: $id) {\n result\n message\n }\n }\n"])));
|
|
2403
|
+
var templateObject_1$4, templateObject_2$4, templateObject_3$4, templateObject_4$4, templateObject_5$4, templateObject_6$4, templateObject_7$4, templateObject_8$3, templateObject_9$3, templateObject_10$2, templateObject_11$2, templateObject_12$2, templateObject_13$2, templateObject_14$1, templateObject_15$1, templateObject_16$1, templateObject_17$1, templateObject_18$1, templateObject_19$1, templateObject_20$1, templateObject_21$1, templateObject_22$1;
|
|
2404
|
+
|
|
2405
|
+
var CustomerDataService = /** @class */ (function () {
|
|
2406
|
+
function CustomerDataService(baseDataService) {
|
|
2407
|
+
this.baseDataService = baseDataService;
|
|
2408
|
+
}
|
|
2409
|
+
CustomerDataService.prototype.getCustomerList = function (take, skip, filterTerm) {
|
|
2410
|
+
if (take === void 0) { take = 10; }
|
|
2411
|
+
if (skip === void 0) { skip = 0; }
|
|
2412
|
+
var filter = filterTerm
|
|
2413
|
+
? {
|
|
2414
|
+
filter: {
|
|
2415
|
+
emailAddress: {
|
|
2416
|
+
contains: filterTerm,
|
|
2417
|
+
},
|
|
2418
|
+
lastName: {
|
|
2419
|
+
contains: filterTerm,
|
|
2420
|
+
},
|
|
2421
|
+
},
|
|
2422
|
+
}
|
|
2423
|
+
: {};
|
|
2424
|
+
return this.baseDataService.query(GET_CUSTOMER_LIST, {
|
|
2425
|
+
options: Object.assign(Object.assign({ take: take, skip: skip }, filter), { filterOperator: exports.LogicalOperator.OR }),
|
|
2426
|
+
});
|
|
2427
|
+
};
|
|
2428
|
+
CustomerDataService.prototype.getCustomer = function (id, orderListOptions) {
|
|
2429
|
+
return this.baseDataService.query(GET_CUSTOMER, {
|
|
2430
|
+
id: id,
|
|
2431
|
+
orderListOptions: orderListOptions,
|
|
2432
|
+
});
|
|
2433
|
+
};
|
|
2434
|
+
CustomerDataService.prototype.createCustomer = function (input, password) {
|
|
2435
|
+
return this.baseDataService.mutate(CREATE_CUSTOMER, {
|
|
2436
|
+
input: input,
|
|
2437
|
+
password: password,
|
|
2438
|
+
});
|
|
2439
|
+
};
|
|
2440
|
+
CustomerDataService.prototype.updateCustomer = function (input) {
|
|
2441
|
+
return this.baseDataService.mutate(UPDATE_CUSTOMER, {
|
|
2442
|
+
input: input,
|
|
2443
|
+
});
|
|
2444
|
+
};
|
|
2445
|
+
CustomerDataService.prototype.deleteCustomer = function (id) {
|
|
2446
|
+
return this.baseDataService.mutate(DELETE_CUSTOMER, { id: id });
|
|
2447
|
+
};
|
|
2448
|
+
CustomerDataService.prototype.createCustomerAddress = function (customerId, input) {
|
|
2449
|
+
return this.baseDataService.mutate(CREATE_CUSTOMER_ADDRESS, {
|
|
2450
|
+
customerId: customerId,
|
|
2451
|
+
input: input,
|
|
2452
|
+
});
|
|
2453
|
+
};
|
|
2454
|
+
CustomerDataService.prototype.updateCustomerAddress = function (input) {
|
|
2455
|
+
return this.baseDataService.mutate(UPDATE_CUSTOMER_ADDRESS, {
|
|
2456
|
+
input: input,
|
|
2457
|
+
});
|
|
2458
|
+
};
|
|
2459
|
+
CustomerDataService.prototype.deleteCustomerAddress = function (id) {
|
|
2460
|
+
return this.baseDataService.mutate(DELETE_CUSTOMER_ADDRESS, { id: id });
|
|
2461
|
+
};
|
|
2462
|
+
CustomerDataService.prototype.createCustomerGroup = function (input) {
|
|
2463
|
+
return this.baseDataService.mutate(CREATE_CUSTOMER_GROUP, {
|
|
2464
|
+
input: input,
|
|
2465
|
+
});
|
|
2466
|
+
};
|
|
2467
|
+
CustomerDataService.prototype.updateCustomerGroup = function (input) {
|
|
2468
|
+
return this.baseDataService.mutate(UPDATE_CUSTOMER_GROUP, {
|
|
2469
|
+
input: input,
|
|
2470
|
+
});
|
|
2471
|
+
};
|
|
2472
|
+
CustomerDataService.prototype.deleteCustomerGroup = function (id) {
|
|
2473
|
+
return this.baseDataService.mutate(DELETE_CUSTOMER_GROUP, { id: id });
|
|
2474
|
+
};
|
|
2475
|
+
CustomerDataService.prototype.getCustomerGroupList = function (options) {
|
|
2476
|
+
return this.baseDataService.query(GET_CUSTOMER_GROUPS, {
|
|
2477
|
+
options: options,
|
|
2478
|
+
});
|
|
2479
|
+
};
|
|
2480
|
+
CustomerDataService.prototype.getCustomerGroupWithCustomers = function (id, options) {
|
|
2481
|
+
return this.baseDataService.query(GET_CUSTOMER_GROUP_WITH_CUSTOMERS, {
|
|
2482
|
+
id: id,
|
|
2483
|
+
options: options,
|
|
2484
|
+
});
|
|
2485
|
+
};
|
|
2486
|
+
CustomerDataService.prototype.addCustomersToGroup = function (groupId, customerIds) {
|
|
2487
|
+
return this.baseDataService.mutate(ADD_CUSTOMERS_TO_GROUP, {
|
|
2488
|
+
groupId: groupId,
|
|
2489
|
+
customerIds: customerIds,
|
|
2490
|
+
});
|
|
2491
|
+
};
|
|
2492
|
+
CustomerDataService.prototype.removeCustomersFromGroup = function (groupId, customerIds) {
|
|
2493
|
+
return this.baseDataService.mutate(REMOVE_CUSTOMERS_FROM_GROUP, {
|
|
2494
|
+
groupId: groupId,
|
|
2495
|
+
customerIds: customerIds,
|
|
2496
|
+
});
|
|
2497
|
+
};
|
|
2498
|
+
CustomerDataService.prototype.getCustomerHistory = function (id, options) {
|
|
2499
|
+
return this.baseDataService.query(GET_CUSTOMER_HISTORY, {
|
|
2500
|
+
id: id,
|
|
2501
|
+
options: options,
|
|
2502
|
+
});
|
|
2503
|
+
};
|
|
2504
|
+
CustomerDataService.prototype.addNoteToCustomer = function (customerId, note) {
|
|
2505
|
+
return this.baseDataService.mutate(ADD_NOTE_TO_CUSTOMER, {
|
|
2506
|
+
input: {
|
|
2507
|
+
note: note,
|
|
2508
|
+
isPublic: false,
|
|
2509
|
+
id: customerId,
|
|
2510
|
+
},
|
|
2511
|
+
});
|
|
2512
|
+
};
|
|
2513
|
+
CustomerDataService.prototype.updateCustomerNote = function (input) {
|
|
2514
|
+
return this.baseDataService.mutate(UPDATE_CUSTOMER_NOTE, {
|
|
2515
|
+
input: input,
|
|
2516
|
+
});
|
|
2517
|
+
};
|
|
2518
|
+
CustomerDataService.prototype.deleteCustomerNote = function (id) {
|
|
2519
|
+
return this.baseDataService.mutate(DELETE_CUSTOMER_NOTE, {
|
|
2520
|
+
id: id,
|
|
2521
|
+
});
|
|
2522
|
+
};
|
|
2523
|
+
return CustomerDataService;
|
|
2524
|
+
}());
|
|
2525
|
+
|
|
2526
|
+
var FACET_VALUE_FRAGMENT = apolloAngular.gql(templateObject_1$3 || (templateObject_1$3 = __makeTemplateObject(["\n fragment FacetValue on FacetValue {\n id\n createdAt\n updatedAt\n languageCode\n code\n name\n translations {\n id\n languageCode\n name\n }\n facet {\n id\n createdAt\n updatedAt\n name\n }\n }\n"], ["\n fragment FacetValue on FacetValue {\n id\n createdAt\n updatedAt\n languageCode\n code\n name\n translations {\n id\n languageCode\n name\n }\n facet {\n id\n createdAt\n updatedAt\n name\n }\n }\n"])));
|
|
2527
|
+
var FACET_WITH_VALUES_FRAGMENT = apolloAngular.gql(templateObject_2$3 || (templateObject_2$3 = __makeTemplateObject(["\n fragment FacetWithValues on Facet {\n id\n createdAt\n updatedAt\n languageCode\n isPrivate\n code\n name\n translations {\n id\n languageCode\n name\n }\n values {\n ...FacetValue\n }\n }\n ", "\n"], ["\n fragment FacetWithValues on Facet {\n id\n createdAt\n updatedAt\n languageCode\n isPrivate\n code\n name\n translations {\n id\n languageCode\n name\n }\n values {\n ...FacetValue\n }\n }\n ", "\n"])), FACET_VALUE_FRAGMENT);
|
|
2528
|
+
var CREATE_FACET = apolloAngular.gql(templateObject_3$3 || (templateObject_3$3 = __makeTemplateObject(["\n mutation CreateFacet($input: CreateFacetInput!) {\n createFacet(input: $input) {\n ...FacetWithValues\n }\n }\n ", "\n"], ["\n mutation CreateFacet($input: CreateFacetInput!) {\n createFacet(input: $input) {\n ...FacetWithValues\n }\n }\n ", "\n"])), FACET_WITH_VALUES_FRAGMENT);
|
|
2529
|
+
var UPDATE_FACET = apolloAngular.gql(templateObject_4$3 || (templateObject_4$3 = __makeTemplateObject(["\n mutation UpdateFacet($input: UpdateFacetInput!) {\n updateFacet(input: $input) {\n ...FacetWithValues\n }\n }\n ", "\n"], ["\n mutation UpdateFacet($input: UpdateFacetInput!) {\n updateFacet(input: $input) {\n ...FacetWithValues\n }\n }\n ", "\n"])), FACET_WITH_VALUES_FRAGMENT);
|
|
2530
|
+
var DELETE_FACET = apolloAngular.gql(templateObject_5$3 || (templateObject_5$3 = __makeTemplateObject(["\n mutation DeleteFacet($id: ID!, $force: Boolean) {\n deleteFacet(id: $id, force: $force) {\n result\n message\n }\n }\n"], ["\n mutation DeleteFacet($id: ID!, $force: Boolean) {\n deleteFacet(id: $id, force: $force) {\n result\n message\n }\n }\n"])));
|
|
2531
|
+
var DELETE_FACETS = apolloAngular.gql(templateObject_6$3 || (templateObject_6$3 = __makeTemplateObject(["\n mutation DeleteFacets($ids: [ID!]!, $force: Boolean) {\n deleteFacets(ids: $ids, force: $force) {\n result\n message\n }\n }\n"], ["\n mutation DeleteFacets($ids: [ID!]!, $force: Boolean) {\n deleteFacets(ids: $ids, force: $force) {\n result\n message\n }\n }\n"])));
|
|
2532
|
+
var CREATE_FACET_VALUES = apolloAngular.gql(templateObject_7$3 || (templateObject_7$3 = __makeTemplateObject(["\n mutation CreateFacetValues($input: [CreateFacetValueInput!]!) {\n createFacetValues(input: $input) {\n ...FacetValue\n }\n }\n ", "\n"], ["\n mutation CreateFacetValues($input: [CreateFacetValueInput!]!) {\n createFacetValues(input: $input) {\n ...FacetValue\n }\n }\n ", "\n"])), FACET_VALUE_FRAGMENT);
|
|
2533
|
+
var UPDATE_FACET_VALUES = apolloAngular.gql(templateObject_8$2 || (templateObject_8$2 = __makeTemplateObject(["\n mutation UpdateFacetValues($input: [UpdateFacetValueInput!]!) {\n updateFacetValues(input: $input) {\n ...FacetValue\n }\n }\n ", "\n"], ["\n mutation UpdateFacetValues($input: [UpdateFacetValueInput!]!) {\n updateFacetValues(input: $input) {\n ...FacetValue\n }\n }\n ", "\n"])), FACET_VALUE_FRAGMENT);
|
|
2534
|
+
var DELETE_FACET_VALUES = apolloAngular.gql(templateObject_9$2 || (templateObject_9$2 = __makeTemplateObject(["\n mutation DeleteFacetValues($ids: [ID!]!, $force: Boolean) {\n deleteFacetValues(ids: $ids, force: $force) {\n result\n message\n }\n }\n"], ["\n mutation DeleteFacetValues($ids: [ID!]!, $force: Boolean) {\n deleteFacetValues(ids: $ids, force: $force) {\n result\n message\n }\n }\n"])));
|
|
2535
|
+
var GET_FACET_LIST = apolloAngular.gql(templateObject_10$1 || (templateObject_10$1 = __makeTemplateObject(["\n query GetFacetList($options: FacetListOptions) {\n facets(options: $options) {\n items {\n ...FacetWithValues\n }\n totalItems\n }\n }\n ", "\n"], ["\n query GetFacetList($options: FacetListOptions) {\n facets(options: $options) {\n items {\n ...FacetWithValues\n }\n totalItems\n }\n }\n ", "\n"])), FACET_WITH_VALUES_FRAGMENT);
|
|
2536
|
+
var GET_FACET_WITH_VALUES = apolloAngular.gql(templateObject_11$1 || (templateObject_11$1 = __makeTemplateObject(["\n query GetFacetWithValues($id: ID!) {\n facet(id: $id) {\n ...FacetWithValues\n }\n }\n ", "\n"], ["\n query GetFacetWithValues($id: ID!) {\n facet(id: $id) {\n ...FacetWithValues\n }\n }\n ", "\n"])), FACET_WITH_VALUES_FRAGMENT);
|
|
2537
|
+
var ASSIGN_FACETS_TO_CHANNEL = apolloAngular.gql(templateObject_12$1 || (templateObject_12$1 = __makeTemplateObject(["\n mutation AssignFacetsToChannel($input: AssignFacetsToChannelInput!) {\n assignFacetsToChannel(input: $input) {\n id\n }\n }\n"], ["\n mutation AssignFacetsToChannel($input: AssignFacetsToChannelInput!) {\n assignFacetsToChannel(input: $input) {\n id\n }\n }\n"])));
|
|
2538
|
+
var REMOVE_FACETS_FROM_CHANNEL = apolloAngular.gql(templateObject_13$1 || (templateObject_13$1 = __makeTemplateObject(["\n mutation RemoveFacetsFromChannel($input: RemoveFacetsFromChannelInput!) {\n removeFacetsFromChannel(input: $input) {\n ... on Facet {\n id\n }\n ... on FacetInUseError {\n errorCode\n message\n variantCount\n productCount\n }\n }\n }\n"], ["\n mutation RemoveFacetsFromChannel($input: RemoveFacetsFromChannelInput!) {\n removeFacetsFromChannel(input: $input) {\n ... on Facet {\n id\n }\n ... on FacetInUseError {\n errorCode\n message\n variantCount\n productCount\n }\n }\n }\n"])));
|
|
2539
|
+
var templateObject_1$3, templateObject_2$3, templateObject_3$3, templateObject_4$3, templateObject_5$3, templateObject_6$3, templateObject_7$3, templateObject_8$2, templateObject_9$2, templateObject_10$1, templateObject_11$1, templateObject_12$1, templateObject_13$1;
|
|
2540
|
+
|
|
2541
|
+
var FacetDataService = /** @class */ (function () {
|
|
2542
|
+
function FacetDataService(baseDataService) {
|
|
2543
|
+
this.baseDataService = baseDataService;
|
|
2544
|
+
}
|
|
2545
|
+
FacetDataService.prototype.getFacets = function (take, skip) {
|
|
2546
|
+
if (take === void 0) { take = 10; }
|
|
2547
|
+
if (skip === void 0) { skip = 0; }
|
|
2548
|
+
return this.baseDataService.query(GET_FACET_LIST, {
|
|
2549
|
+
options: {
|
|
2550
|
+
take: take,
|
|
2551
|
+
skip: skip,
|
|
2552
|
+
},
|
|
2553
|
+
});
|
|
2554
|
+
};
|
|
2555
|
+
FacetDataService.prototype.getAllFacets = function () {
|
|
2556
|
+
return this.baseDataService.query(GET_FACET_LIST, {});
|
|
2557
|
+
};
|
|
2558
|
+
FacetDataService.prototype.getFacet = function (id) {
|
|
2559
|
+
return this.baseDataService.query(GET_FACET_WITH_VALUES, {
|
|
2560
|
+
id: id,
|
|
2561
|
+
});
|
|
2562
|
+
};
|
|
2563
|
+
FacetDataService.prototype.createFacet = function (facet) {
|
|
2564
|
+
var input = {
|
|
2565
|
+
input: pick.pick(facet, ['code', 'isPrivate', 'translations', 'values', 'customFields']),
|
|
2566
|
+
};
|
|
2567
|
+
return this.baseDataService.mutate(CREATE_FACET, input);
|
|
2568
|
+
};
|
|
2569
|
+
FacetDataService.prototype.updateFacet = function (facet) {
|
|
2570
|
+
var input = {
|
|
2571
|
+
input: pick.pick(facet, ['id', 'code', 'isPrivate', 'translations', 'customFields']),
|
|
2572
|
+
};
|
|
2573
|
+
return this.baseDataService.mutate(UPDATE_FACET, input);
|
|
2574
|
+
};
|
|
2575
|
+
FacetDataService.prototype.deleteFacet = function (id, force) {
|
|
2576
|
+
return this.baseDataService.mutate(DELETE_FACET, {
|
|
2577
|
+
id: id,
|
|
2578
|
+
force: force,
|
|
2579
|
+
});
|
|
2580
|
+
};
|
|
2581
|
+
FacetDataService.prototype.deleteFacets = function (ids, force) {
|
|
2582
|
+
return this.baseDataService.mutate(DELETE_FACETS, {
|
|
2583
|
+
ids: ids,
|
|
2584
|
+
force: force,
|
|
2585
|
+
});
|
|
2586
|
+
};
|
|
2587
|
+
FacetDataService.prototype.createFacetValues = function (facetValues) {
|
|
2588
|
+
var input = {
|
|
2589
|
+
input: facetValues.map(pick.pick(['facetId', 'code', 'translations', 'customFields'])),
|
|
2590
|
+
};
|
|
2591
|
+
return this.baseDataService.mutate(CREATE_FACET_VALUES, input);
|
|
2592
|
+
};
|
|
2593
|
+
FacetDataService.prototype.updateFacetValues = function (facetValues) {
|
|
2594
|
+
var input = {
|
|
2595
|
+
input: facetValues.map(pick.pick(['id', 'code', 'translations', 'customFields'])),
|
|
2596
|
+
};
|
|
2597
|
+
return this.baseDataService.mutate(UPDATE_FACET_VALUES, input);
|
|
2598
|
+
};
|
|
2599
|
+
FacetDataService.prototype.deleteFacetValues = function (ids, force) {
|
|
2600
|
+
return this.baseDataService.mutate(DELETE_FACET_VALUES, {
|
|
2601
|
+
ids: ids,
|
|
2602
|
+
force: force,
|
|
2603
|
+
});
|
|
2604
|
+
};
|
|
2605
|
+
FacetDataService.prototype.assignFacetsToChannel = function (input) {
|
|
2606
|
+
return this.baseDataService.mutate(ASSIGN_FACETS_TO_CHANNEL, {
|
|
2607
|
+
input: input,
|
|
2608
|
+
});
|
|
2609
|
+
};
|
|
2610
|
+
FacetDataService.prototype.removeFacetsFromChannel = function (input) {
|
|
2611
|
+
return this.baseDataService.mutate(REMOVE_FACETS_FROM_CHANNEL, {
|
|
2612
|
+
input: input,
|
|
2613
|
+
});
|
|
2614
|
+
};
|
|
2615
|
+
return FacetDataService;
|
|
2616
|
+
}());
|
|
2617
|
+
|
|
2618
|
+
var DISCOUNT_FRAGMENT = apolloAngular.gql(templateObject_1$2 || (templateObject_1$2 = __makeTemplateObject(["\n fragment Discount on Discount {\n adjustmentSource\n amount\n amountWithTax\n description\n type\n }\n"], ["\n fragment Discount on Discount {\n adjustmentSource\n amount\n amountWithTax\n description\n type\n }\n"])));
|
|
2619
|
+
var PAYMENT_FRAGMENT = apolloAngular.gql(templateObject_2$2 || (templateObject_2$2 = __makeTemplateObject(["\n fragment Payment on Payment {\n id\n transactionId\n amount\n method\n state\n metadata\n }\n"], ["\n fragment Payment on Payment {\n id\n transactionId\n amount\n method\n state\n metadata\n }\n"])));
|
|
2620
|
+
var REFUND_FRAGMENT = apolloAngular.gql(templateObject_3$2 || (templateObject_3$2 = __makeTemplateObject(["\n fragment Refund on Refund {\n id\n state\n items\n shipping\n adjustment\n transactionId\n paymentId\n }\n"], ["\n fragment Refund on Refund {\n id\n state\n items\n shipping\n adjustment\n transactionId\n paymentId\n }\n"])));
|
|
2621
|
+
var ORDER_ADDRESS_FRAGMENT = apolloAngular.gql(templateObject_4$2 || (templateObject_4$2 = __makeTemplateObject(["\n fragment OrderAddress on OrderAddress {\n fullName\n company\n streetLine1\n streetLine2\n city\n province\n postalCode\n country\n countryCode\n phoneNumber\n }\n"], ["\n fragment OrderAddress on OrderAddress {\n fullName\n company\n streetLine1\n streetLine2\n city\n province\n postalCode\n country\n countryCode\n phoneNumber\n }\n"])));
|
|
2622
|
+
var ORDER_FRAGMENT = apolloAngular.gql(templateObject_5$2 || (templateObject_5$2 = __makeTemplateObject(["\n fragment Order on Order {\n id\n createdAt\n updatedAt\n orderPlacedAt\n code\n state\n nextStates\n total\n totalWithTax\n currencyCode\n customer {\n id\n firstName\n lastName\n }\n shippingLines {\n shippingMethod {\n name\n }\n }\n }\n"], ["\n fragment Order on Order {\n id\n createdAt\n updatedAt\n orderPlacedAt\n code\n state\n nextStates\n total\n totalWithTax\n currencyCode\n customer {\n id\n firstName\n lastName\n }\n shippingLines {\n shippingMethod {\n name\n }\n }\n }\n"])));
|
|
2623
|
+
var FULFILLMENT_FRAGMENT = apolloAngular.gql(templateObject_6$2 || (templateObject_6$2 = __makeTemplateObject(["\n fragment Fulfillment on Fulfillment {\n id\n state\n nextStates\n createdAt\n updatedAt\n method\n summary {\n orderLine {\n id\n }\n quantity\n }\n trackingCode\n }\n"], ["\n fragment Fulfillment on Fulfillment {\n id\n state\n nextStates\n createdAt\n updatedAt\n method\n summary {\n orderLine {\n id\n }\n quantity\n }\n trackingCode\n }\n"])));
|
|
2624
|
+
var ORDER_LINE_FRAGMENT = apolloAngular.gql(templateObject_7$2 || (templateObject_7$2 = __makeTemplateObject(["\n fragment OrderLine on OrderLine {\n id\n featuredAsset {\n preview\n }\n productVariant {\n id\n name\n sku\n trackInventory\n stockOnHand\n }\n discounts {\n ...Discount\n }\n fulfillments {\n ...Fulfillment\n }\n unitPrice\n unitPriceWithTax\n proratedUnitPrice\n proratedUnitPriceWithTax\n quantity\n items {\n id\n refundId\n cancelled\n }\n linePrice\n lineTax\n linePriceWithTax\n discountedLinePrice\n discountedLinePriceWithTax\n }\n"], ["\n fragment OrderLine on OrderLine {\n id\n featuredAsset {\n preview\n }\n productVariant {\n id\n name\n sku\n trackInventory\n stockOnHand\n }\n discounts {\n ...Discount\n }\n fulfillments {\n ...Fulfillment\n }\n unitPrice\n unitPriceWithTax\n proratedUnitPrice\n proratedUnitPriceWithTax\n quantity\n items {\n id\n refundId\n cancelled\n }\n linePrice\n lineTax\n linePriceWithTax\n discountedLinePrice\n discountedLinePriceWithTax\n }\n"])));
|
|
2625
|
+
var ORDER_DETAIL_FRAGMENT = apolloAngular.gql(templateObject_8$1 || (templateObject_8$1 = __makeTemplateObject(["\n fragment OrderDetail on Order {\n id\n createdAt\n updatedAt\n code\n state\n nextStates\n active\n couponCodes\n customer {\n id\n firstName\n lastName\n }\n lines {\n ...OrderLine\n }\n surcharges {\n id\n sku\n description\n price\n priceWithTax\n taxRate\n }\n discounts {\n ...Discount\n }\n promotions {\n id\n couponCode\n }\n subTotal\n subTotalWithTax\n total\n totalWithTax\n currencyCode\n shipping\n shippingWithTax\n shippingLines {\n shippingMethod {\n id\n code\n name\n fulfillmentHandlerCode\n description\n }\n }\n taxSummary {\n description\n taxBase\n taxRate\n taxTotal\n }\n shippingAddress {\n ...OrderAddress\n }\n billingAddress {\n ...OrderAddress\n }\n payments {\n id\n createdAt\n transactionId\n amount\n method\n state\n nextStates\n errorMessage\n metadata\n refunds {\n id\n createdAt\n state\n items\n adjustment\n total\n paymentId\n reason\n transactionId\n method\n metadata\n orderItems {\n id\n }\n }\n }\n fulfillments {\n ...Fulfillment\n }\n modifications {\n id\n createdAt\n isSettled\n priceChange\n note\n payment {\n id\n amount\n }\n orderItems {\n id\n }\n refund {\n id\n paymentId\n total\n }\n surcharges {\n id\n }\n }\n }\n ", "\n ", "\n ", "\n ", "\n"], ["\n fragment OrderDetail on Order {\n id\n createdAt\n updatedAt\n code\n state\n nextStates\n active\n couponCodes\n customer {\n id\n firstName\n lastName\n }\n lines {\n ...OrderLine\n }\n surcharges {\n id\n sku\n description\n price\n priceWithTax\n taxRate\n }\n discounts {\n ...Discount\n }\n promotions {\n id\n couponCode\n }\n subTotal\n subTotalWithTax\n total\n totalWithTax\n currencyCode\n shipping\n shippingWithTax\n shippingLines {\n shippingMethod {\n id\n code\n name\n fulfillmentHandlerCode\n description\n }\n }\n taxSummary {\n description\n taxBase\n taxRate\n taxTotal\n }\n shippingAddress {\n ...OrderAddress\n }\n billingAddress {\n ...OrderAddress\n }\n payments {\n id\n createdAt\n transactionId\n amount\n method\n state\n nextStates\n errorMessage\n metadata\n refunds {\n id\n createdAt\n state\n items\n adjustment\n total\n paymentId\n reason\n transactionId\n method\n metadata\n orderItems {\n id\n }\n }\n }\n fulfillments {\n ...Fulfillment\n }\n modifications {\n id\n createdAt\n isSettled\n priceChange\n note\n payment {\n id\n amount\n }\n orderItems {\n id\n }\n refund {\n id\n paymentId\n total\n }\n surcharges {\n id\n }\n }\n }\n ", "\n ", "\n ", "\n ", "\n"])), DISCOUNT_FRAGMENT, ORDER_ADDRESS_FRAGMENT, FULFILLMENT_FRAGMENT, ORDER_LINE_FRAGMENT);
|
|
2626
|
+
var GET_ORDERS_LIST = apolloAngular.gql(templateObject_9$1 || (templateObject_9$1 = __makeTemplateObject(["\n query GetOrderList($options: OrderListOptions) {\n orders(options: $options) {\n items {\n ...Order\n }\n totalItems\n }\n }\n ", "\n"], ["\n query GetOrderList($options: OrderListOptions) {\n orders(options: $options) {\n items {\n ...Order\n }\n totalItems\n }\n }\n ", "\n"])), ORDER_FRAGMENT);
|
|
2627
|
+
var GET_ORDER = apolloAngular.gql(templateObject_10 || (templateObject_10 = __makeTemplateObject(["\n query GetOrder($id: ID!) {\n order(id: $id) {\n ...OrderDetail\n }\n }\n ", "\n"], ["\n query GetOrder($id: ID!) {\n order(id: $id) {\n ...OrderDetail\n }\n }\n ", "\n"])), ORDER_DETAIL_FRAGMENT);
|
|
2628
|
+
var SETTLE_PAYMENT = apolloAngular.gql(templateObject_11 || (templateObject_11 = __makeTemplateObject(["\n mutation SettlePayment($id: ID!) {\n settlePayment(id: $id) {\n ...Payment\n ...ErrorResult\n ... on SettlePaymentError {\n paymentErrorMessage\n }\n ... on PaymentStateTransitionError {\n transitionError\n }\n ... on OrderStateTransitionError {\n transitionError\n }\n }\n }\n ", "\n ", "\n"], ["\n mutation SettlePayment($id: ID!) {\n settlePayment(id: $id) {\n ...Payment\n ...ErrorResult\n ... on SettlePaymentError {\n paymentErrorMessage\n }\n ... on PaymentStateTransitionError {\n transitionError\n }\n ... on OrderStateTransitionError {\n transitionError\n }\n }\n }\n ", "\n ", "\n"])), ERROR_RESULT_FRAGMENT, PAYMENT_FRAGMENT);
|
|
2629
|
+
var CANCEL_PAYMENT = apolloAngular.gql(templateObject_12 || (templateObject_12 = __makeTemplateObject(["\n mutation CancelPayment($id: ID!) {\n cancelPayment(id: $id) {\n ...Payment\n ...ErrorResult\n ... on CancelPaymentError {\n paymentErrorMessage\n }\n ... on PaymentStateTransitionError {\n transitionError\n }\n }\n }\n ", "\n ", "\n"], ["\n mutation CancelPayment($id: ID!) {\n cancelPayment(id: $id) {\n ...Payment\n ...ErrorResult\n ... on CancelPaymentError {\n paymentErrorMessage\n }\n ... on PaymentStateTransitionError {\n transitionError\n }\n }\n }\n ", "\n ", "\n"])), ERROR_RESULT_FRAGMENT, PAYMENT_FRAGMENT);
|
|
2630
|
+
var TRANSITION_PAYMENT_TO_STATE = apolloAngular.gql(templateObject_13 || (templateObject_13 = __makeTemplateObject(["\n mutation TransitionPaymentToState($id: ID!, $state: String!) {\n transitionPaymentToState(id: $id, state: $state) {\n ...Payment\n ...ErrorResult\n ... on PaymentStateTransitionError {\n transitionError\n }\n }\n }\n ", "\n ", "\n"], ["\n mutation TransitionPaymentToState($id: ID!, $state: String!) {\n transitionPaymentToState(id: $id, state: $state) {\n ...Payment\n ...ErrorResult\n ... on PaymentStateTransitionError {\n transitionError\n }\n }\n }\n ", "\n ", "\n"])), PAYMENT_FRAGMENT, ERROR_RESULT_FRAGMENT);
|
|
2631
|
+
var CREATE_FULFILLMENT = apolloAngular.gql(templateObject_14 || (templateObject_14 = __makeTemplateObject(["\n mutation CreateFulfillment($input: FulfillOrderInput!) {\n addFulfillmentToOrder(input: $input) {\n ...Fulfillment\n ... on CreateFulfillmentError {\n errorCode\n message\n fulfillmentHandlerError\n }\n ... on FulfillmentStateTransitionError {\n errorCode\n message\n transitionError\n }\n ...ErrorResult\n }\n }\n ", "\n ", "\n"], ["\n mutation CreateFulfillment($input: FulfillOrderInput!) {\n addFulfillmentToOrder(input: $input) {\n ...Fulfillment\n ... on CreateFulfillmentError {\n errorCode\n message\n fulfillmentHandlerError\n }\n ... on FulfillmentStateTransitionError {\n errorCode\n message\n transitionError\n }\n ...ErrorResult\n }\n }\n ", "\n ", "\n"])), FULFILLMENT_FRAGMENT, ERROR_RESULT_FRAGMENT);
|
|
2632
|
+
var CANCEL_ORDER = apolloAngular.gql(templateObject_15 || (templateObject_15 = __makeTemplateObject(["\n mutation CancelOrder($input: CancelOrderInput!) {\n cancelOrder(input: $input) {\n ...OrderDetail\n ...ErrorResult\n }\n }\n ", "\n ", "\n"], ["\n mutation CancelOrder($input: CancelOrderInput!) {\n cancelOrder(input: $input) {\n ...OrderDetail\n ...ErrorResult\n }\n }\n ", "\n ", "\n"])), ORDER_DETAIL_FRAGMENT, ERROR_RESULT_FRAGMENT);
|
|
2633
|
+
var REFUND_ORDER = apolloAngular.gql(templateObject_16 || (templateObject_16 = __makeTemplateObject(["\n mutation RefundOrder($input: RefundOrderInput!) {\n refundOrder(input: $input) {\n ...Refund\n ...ErrorResult\n }\n }\n ", "\n ", "\n"], ["\n mutation RefundOrder($input: RefundOrderInput!) {\n refundOrder(input: $input) {\n ...Refund\n ...ErrorResult\n }\n }\n ", "\n ", "\n"])), REFUND_FRAGMENT, ERROR_RESULT_FRAGMENT);
|
|
2634
|
+
var SETTLE_REFUND = apolloAngular.gql(templateObject_17 || (templateObject_17 = __makeTemplateObject(["\n mutation SettleRefund($input: SettleRefundInput!) {\n settleRefund(input: $input) {\n ...Refund\n ...ErrorResult\n }\n }\n ", "\n ", "\n"], ["\n mutation SettleRefund($input: SettleRefundInput!) {\n settleRefund(input: $input) {\n ...Refund\n ...ErrorResult\n }\n }\n ", "\n ", "\n"])), REFUND_FRAGMENT, ERROR_RESULT_FRAGMENT);
|
|
2635
|
+
var GET_ORDER_HISTORY = apolloAngular.gql(templateObject_18 || (templateObject_18 = __makeTemplateObject(["\n query GetOrderHistory($id: ID!, $options: HistoryEntryListOptions) {\n order(id: $id) {\n id\n history(options: $options) {\n totalItems\n items {\n id\n type\n createdAt\n isPublic\n administrator {\n id\n firstName\n lastName\n }\n data\n }\n }\n }\n }\n"], ["\n query GetOrderHistory($id: ID!, $options: HistoryEntryListOptions) {\n order(id: $id) {\n id\n history(options: $options) {\n totalItems\n items {\n id\n type\n createdAt\n isPublic\n administrator {\n id\n firstName\n lastName\n }\n data\n }\n }\n }\n }\n"])));
|
|
2636
|
+
var ADD_NOTE_TO_ORDER = apolloAngular.gql(templateObject_19 || (templateObject_19 = __makeTemplateObject(["\n mutation AddNoteToOrder($input: AddNoteToOrderInput!) {\n addNoteToOrder(input: $input) {\n id\n }\n }\n"], ["\n mutation AddNoteToOrder($input: AddNoteToOrderInput!) {\n addNoteToOrder(input: $input) {\n id\n }\n }\n"])));
|
|
2637
|
+
var UPDATE_ORDER_NOTE = apolloAngular.gql(templateObject_20 || (templateObject_20 = __makeTemplateObject(["\n mutation UpdateOrderNote($input: UpdateOrderNoteInput!) {\n updateOrderNote(input: $input) {\n id\n data\n isPublic\n }\n }\n"], ["\n mutation UpdateOrderNote($input: UpdateOrderNoteInput!) {\n updateOrderNote(input: $input) {\n id\n data\n isPublic\n }\n }\n"])));
|
|
2638
|
+
var DELETE_ORDER_NOTE = apolloAngular.gql(templateObject_21 || (templateObject_21 = __makeTemplateObject(["\n mutation DeleteOrderNote($id: ID!) {\n deleteOrderNote(id: $id) {\n result\n message\n }\n }\n"], ["\n mutation DeleteOrderNote($id: ID!) {\n deleteOrderNote(id: $id) {\n result\n message\n }\n }\n"])));
|
|
2639
|
+
var TRANSITION_ORDER_TO_STATE = apolloAngular.gql(templateObject_22 || (templateObject_22 = __makeTemplateObject(["\n mutation TransitionOrderToState($id: ID!, $state: String!) {\n transitionOrderToState(id: $id, state: $state) {\n ...Order\n ...ErrorResult\n ... on OrderStateTransitionError {\n transitionError\n }\n }\n }\n ", "\n ", "\n"], ["\n mutation TransitionOrderToState($id: ID!, $state: String!) {\n transitionOrderToState(id: $id, state: $state) {\n ...Order\n ...ErrorResult\n ... on OrderStateTransitionError {\n transitionError\n }\n }\n }\n ", "\n ", "\n"])), ORDER_FRAGMENT, ERROR_RESULT_FRAGMENT);
|
|
2640
|
+
var UPDATE_ORDER_CUSTOM_FIELDS = apolloAngular.gql(templateObject_23 || (templateObject_23 = __makeTemplateObject(["\n mutation UpdateOrderCustomFields($input: UpdateOrderInput!) {\n setOrderCustomFields(input: $input) {\n ...Order\n }\n }\n ", "\n"], ["\n mutation UpdateOrderCustomFields($input: UpdateOrderInput!) {\n setOrderCustomFields(input: $input) {\n ...Order\n }\n }\n ", "\n"])), ORDER_FRAGMENT);
|
|
2641
|
+
var TRANSITION_FULFILLMENT_TO_STATE = apolloAngular.gql(templateObject_24 || (templateObject_24 = __makeTemplateObject(["\n mutation TransitionFulfillmentToState($id: ID!, $state: String!) {\n transitionFulfillmentToState(id: $id, state: $state) {\n ...Fulfillment\n ...ErrorResult\n ... on FulfillmentStateTransitionError {\n transitionError\n }\n }\n }\n ", "\n ", "\n"], ["\n mutation TransitionFulfillmentToState($id: ID!, $state: String!) {\n transitionFulfillmentToState(id: $id, state: $state) {\n ...Fulfillment\n ...ErrorResult\n ... on FulfillmentStateTransitionError {\n transitionError\n }\n }\n }\n ", "\n ", "\n"])), FULFILLMENT_FRAGMENT, ERROR_RESULT_FRAGMENT);
|
|
2642
|
+
var GET_ORDER_SUMMARY = apolloAngular.gql(templateObject_25 || (templateObject_25 = __makeTemplateObject(["\n query GetOrderSummary($start: DateTime!, $end: DateTime!) {\n orders(options: { filter: { orderPlacedAt: { between: { start: $start, end: $end } } } }) {\n totalItems\n items {\n id\n total\n currencyCode\n }\n }\n }\n"], ["\n query GetOrderSummary($start: DateTime!, $end: DateTime!) {\n orders(options: { filter: { orderPlacedAt: { between: { start: $start, end: $end } } } }) {\n totalItems\n items {\n id\n total\n currencyCode\n }\n }\n }\n"])));
|
|
2643
|
+
var MODIFY_ORDER = apolloAngular.gql(templateObject_26 || (templateObject_26 = __makeTemplateObject(["\n mutation ModifyOrder($input: ModifyOrderInput!) {\n modifyOrder(input: $input) {\n ...OrderDetail\n ...ErrorResult\n }\n }\n ", "\n ", "\n"], ["\n mutation ModifyOrder($input: ModifyOrderInput!) {\n modifyOrder(input: $input) {\n ...OrderDetail\n ...ErrorResult\n }\n }\n ", "\n ", "\n"])), ORDER_DETAIL_FRAGMENT, ERROR_RESULT_FRAGMENT);
|
|
2644
|
+
var ADD_MANUAL_PAYMENT_TO_ORDER = apolloAngular.gql(templateObject_27 || (templateObject_27 = __makeTemplateObject(["\n mutation AddManualPayment($input: ManualPaymentInput!) {\n addManualPaymentToOrder(input: $input) {\n ...OrderDetail\n ...ErrorResult\n }\n }\n ", "\n ", "\n"], ["\n mutation AddManualPayment($input: ManualPaymentInput!) {\n addManualPaymentToOrder(input: $input) {\n ...OrderDetail\n ...ErrorResult\n }\n }\n ", "\n ", "\n"])), ORDER_DETAIL_FRAGMENT, ERROR_RESULT_FRAGMENT);
|
|
2645
|
+
var CREATE_DRAFT_ORDER = apolloAngular.gql(templateObject_28 || (templateObject_28 = __makeTemplateObject(["\n mutation CreateDraftOrder {\n createDraftOrder {\n ...OrderDetail\n }\n }\n ", "\n"], ["\n mutation CreateDraftOrder {\n createDraftOrder {\n ...OrderDetail\n }\n }\n ", "\n"])), ORDER_DETAIL_FRAGMENT);
|
|
2646
|
+
var DELETE_DRAFT_ORDER = apolloAngular.gql(templateObject_29 || (templateObject_29 = __makeTemplateObject(["\n mutation DeleteDraftOrder($orderId: ID!) {\n deleteDraftOrder(orderId: $orderId) {\n result\n message\n }\n }\n"], ["\n mutation DeleteDraftOrder($orderId: ID!) {\n deleteDraftOrder(orderId: $orderId) {\n result\n message\n }\n }\n"])));
|
|
2647
|
+
var ADD_ITEM_TO_DRAFT_ORDER = apolloAngular.gql(templateObject_30 || (templateObject_30 = __makeTemplateObject(["\n mutation AddItemToDraftOrder($orderId: ID!, $input: AddItemToDraftOrderInput!) {\n addItemToDraftOrder(orderId: $orderId, input: $input) {\n ...OrderDetail\n ...ErrorResult\n }\n }\n ", "\n ", "\n"], ["\n mutation AddItemToDraftOrder($orderId: ID!, $input: AddItemToDraftOrderInput!) {\n addItemToDraftOrder(orderId: $orderId, input: $input) {\n ...OrderDetail\n ...ErrorResult\n }\n }\n ", "\n ", "\n"])), ORDER_DETAIL_FRAGMENT, ERROR_RESULT_FRAGMENT);
|
|
2648
|
+
var ADJUST_DRAFT_ORDER_LINE = apolloAngular.gql(templateObject_31 || (templateObject_31 = __makeTemplateObject(["\n mutation AdjustDraftOrderLine($orderId: ID!, $input: AdjustDraftOrderLineInput!) {\n adjustDraftOrderLine(orderId: $orderId, input: $input) {\n ...OrderDetail\n ...ErrorResult\n }\n }\n ", "\n ", "\n"], ["\n mutation AdjustDraftOrderLine($orderId: ID!, $input: AdjustDraftOrderLineInput!) {\n adjustDraftOrderLine(orderId: $orderId, input: $input) {\n ...OrderDetail\n ...ErrorResult\n }\n }\n ", "\n ", "\n"])), ORDER_DETAIL_FRAGMENT, ERROR_RESULT_FRAGMENT);
|
|
2649
|
+
var REMOVE_DRAFT_ORDER_LINE = apolloAngular.gql(templateObject_32 || (templateObject_32 = __makeTemplateObject(["\n mutation RemoveDraftOrderLine($orderId: ID!, $orderLineId: ID!) {\n removeDraftOrderLine(orderId: $orderId, orderLineId: $orderLineId) {\n ...OrderDetail\n ...ErrorResult\n }\n }\n ", "\n ", "\n"], ["\n mutation RemoveDraftOrderLine($orderId: ID!, $orderLineId: ID!) {\n removeDraftOrderLine(orderId: $orderId, orderLineId: $orderLineId) {\n ...OrderDetail\n ...ErrorResult\n }\n }\n ", "\n ", "\n"])), ORDER_DETAIL_FRAGMENT, ERROR_RESULT_FRAGMENT);
|
|
2650
|
+
var SET_CUSTOMER_FOR_DRAFT_ORDER = apolloAngular.gql(templateObject_33 || (templateObject_33 = __makeTemplateObject(["\n mutation SetCustomerForDraftOrder($orderId: ID!, $customerId: ID, $input: CreateCustomerInput) {\n setCustomerForDraftOrder(orderId: $orderId, customerId: $customerId, input: $input) {\n ...OrderDetail\n ...ErrorResult\n }\n }\n ", "\n ", "\n"], ["\n mutation SetCustomerForDraftOrder($orderId: ID!, $customerId: ID, $input: CreateCustomerInput) {\n setCustomerForDraftOrder(orderId: $orderId, customerId: $customerId, input: $input) {\n ...OrderDetail\n ...ErrorResult\n }\n }\n ", "\n ", "\n"])), ORDER_DETAIL_FRAGMENT, ERROR_RESULT_FRAGMENT);
|
|
2651
|
+
var SET_SHIPPING_ADDRESS_FOR_DRAFT_ORDER = apolloAngular.gql(templateObject_34 || (templateObject_34 = __makeTemplateObject(["\n mutation SetDraftOrderShippingAddress($orderId: ID!, $input: CreateAddressInput!) {\n setDraftOrderShippingAddress(orderId: $orderId, input: $input) {\n ...OrderDetail\n }\n }\n ", "\n"], ["\n mutation SetDraftOrderShippingAddress($orderId: ID!, $input: CreateAddressInput!) {\n setDraftOrderShippingAddress(orderId: $orderId, input: $input) {\n ...OrderDetail\n }\n }\n ", "\n"])), ORDER_DETAIL_FRAGMENT);
|
|
2652
|
+
var SET_BILLING_ADDRESS_FOR_DRAFT_ORDER = apolloAngular.gql(templateObject_35 || (templateObject_35 = __makeTemplateObject(["\n mutation SetDraftOrderBillingAddress($orderId: ID!, $input: CreateAddressInput!) {\n setDraftOrderBillingAddress(orderId: $orderId, input: $input) {\n ...OrderDetail\n }\n }\n ", "\n"], ["\n mutation SetDraftOrderBillingAddress($orderId: ID!, $input: CreateAddressInput!) {\n setDraftOrderBillingAddress(orderId: $orderId, input: $input) {\n ...OrderDetail\n }\n }\n ", "\n"])), ORDER_DETAIL_FRAGMENT);
|
|
2653
|
+
var APPLY_COUPON_CODE_TO_DRAFT_ORDER = apolloAngular.gql(templateObject_36 || (templateObject_36 = __makeTemplateObject(["\n mutation ApplyCouponCodeToDraftOrder($orderId: ID!, $couponCode: String!) {\n applyCouponCodeToDraftOrder(orderId: $orderId, couponCode: $couponCode) {\n ...OrderDetail\n ...ErrorResult\n }\n }\n ", "\n ", "\n"], ["\n mutation ApplyCouponCodeToDraftOrder($orderId: ID!, $couponCode: String!) {\n applyCouponCodeToDraftOrder(orderId: $orderId, couponCode: $couponCode) {\n ...OrderDetail\n ...ErrorResult\n }\n }\n ", "\n ", "\n"])), ORDER_DETAIL_FRAGMENT, ERROR_RESULT_FRAGMENT);
|
|
2654
|
+
var REMOVE_COUPON_CODE_FROM_DRAFT_ORDER = apolloAngular.gql(templateObject_37 || (templateObject_37 = __makeTemplateObject(["\n mutation RemoveCouponCodeFromDraftOrder($orderId: ID!, $couponCode: String!) {\n removeCouponCodeFromDraftOrder(orderId: $orderId, couponCode: $couponCode) {\n ...OrderDetail\n }\n }\n ", "\n"], ["\n mutation RemoveCouponCodeFromDraftOrder($orderId: ID!, $couponCode: String!) {\n removeCouponCodeFromDraftOrder(orderId: $orderId, couponCode: $couponCode) {\n ...OrderDetail\n }\n }\n ", "\n"])), ORDER_DETAIL_FRAGMENT);
|
|
2655
|
+
var DRAFT_ORDER_ELIGIBLE_SHIPPING_METHODS = apolloAngular.gql(templateObject_38 || (templateObject_38 = __makeTemplateObject(["\n query DraftOrderEligibleShippingMethods($orderId: ID!) {\n eligibleShippingMethodsForDraftOrder(orderId: $orderId) {\n id\n name\n code\n description\n price\n priceWithTax\n metadata\n }\n }\n"], ["\n query DraftOrderEligibleShippingMethods($orderId: ID!) {\n eligibleShippingMethodsForDraftOrder(orderId: $orderId) {\n id\n name\n code\n description\n price\n priceWithTax\n metadata\n }\n }\n"])));
|
|
2656
|
+
var SET_DRAFT_ORDER_SHIPPING_METHOD = apolloAngular.gql(templateObject_39 || (templateObject_39 = __makeTemplateObject(["\n mutation SetDraftOrderShippingMethod($orderId: ID!, $shippingMethodId: ID!) {\n setDraftOrderShippingMethod(orderId: $orderId, shippingMethodId: $shippingMethodId) {\n ...OrderDetail\n ...ErrorResult\n }\n }\n ", "\n ", "\n"], ["\n mutation SetDraftOrderShippingMethod($orderId: ID!, $shippingMethodId: ID!) {\n setDraftOrderShippingMethod(orderId: $orderId, shippingMethodId: $shippingMethodId) {\n ...OrderDetail\n ...ErrorResult\n }\n }\n ", "\n ", "\n"])), ORDER_DETAIL_FRAGMENT, ERROR_RESULT_FRAGMENT);
|
|
2657
|
+
var templateObject_1$2, templateObject_2$2, templateObject_3$2, templateObject_4$2, templateObject_5$2, templateObject_6$2, templateObject_7$2, templateObject_8$1, templateObject_9$1, templateObject_10, templateObject_11, templateObject_12, templateObject_13, templateObject_14, templateObject_15, templateObject_16, templateObject_17, templateObject_18, templateObject_19, templateObject_20, templateObject_21, templateObject_22, templateObject_23, templateObject_24, templateObject_25, templateObject_26, templateObject_27, templateObject_28, templateObject_29, templateObject_30, templateObject_31, templateObject_32, templateObject_33, templateObject_34, templateObject_35, templateObject_36, templateObject_37, templateObject_38, templateObject_39;
|
|
2658
|
+
|
|
2659
|
+
var OrderDataService = /** @class */ (function () {
|
|
2660
|
+
function OrderDataService(baseDataService) {
|
|
2661
|
+
this.baseDataService = baseDataService;
|
|
2662
|
+
}
|
|
2663
|
+
OrderDataService.prototype.getOrders = function (options) {
|
|
2664
|
+
if (options === void 0) { options = { take: 10 }; }
|
|
2665
|
+
return this.baseDataService.query(GET_ORDERS_LIST, {
|
|
2666
|
+
options: options,
|
|
2667
|
+
});
|
|
2668
|
+
};
|
|
2669
|
+
OrderDataService.prototype.getOrder = function (id) {
|
|
2670
|
+
return this.baseDataService.query(GET_ORDER, { id: id });
|
|
2671
|
+
};
|
|
2672
|
+
OrderDataService.prototype.getOrderHistory = function (id, options) {
|
|
2673
|
+
return this.baseDataService.query(GET_ORDER_HISTORY, {
|
|
2674
|
+
id: id,
|
|
2675
|
+
options: options,
|
|
2676
|
+
});
|
|
2677
|
+
};
|
|
2678
|
+
OrderDataService.prototype.settlePayment = function (id) {
|
|
2679
|
+
return this.baseDataService.mutate(SETTLE_PAYMENT, {
|
|
2680
|
+
id: id,
|
|
2681
|
+
});
|
|
2682
|
+
};
|
|
2683
|
+
OrderDataService.prototype.cancelPayment = function (id) {
|
|
2684
|
+
return this.baseDataService.mutate(CANCEL_PAYMENT, {
|
|
2685
|
+
id: id,
|
|
2686
|
+
});
|
|
2687
|
+
};
|
|
2688
|
+
OrderDataService.prototype.transitionPaymentToState = function (id, state) {
|
|
2689
|
+
return this.baseDataService.mutate(TRANSITION_PAYMENT_TO_STATE, {
|
|
2690
|
+
id: id,
|
|
2691
|
+
state: state,
|
|
2692
|
+
});
|
|
2693
|
+
};
|
|
2694
|
+
OrderDataService.prototype.createFulfillment = function (input) {
|
|
2695
|
+
return this.baseDataService.mutate(CREATE_FULFILLMENT, {
|
|
2696
|
+
input: input,
|
|
2697
|
+
});
|
|
2698
|
+
};
|
|
2699
|
+
OrderDataService.prototype.transitionFulfillmentToState = function (id, state) {
|
|
2700
|
+
return this.baseDataService.mutate(TRANSITION_FULFILLMENT_TO_STATE, {
|
|
2701
|
+
id: id,
|
|
2702
|
+
state: state,
|
|
2703
|
+
});
|
|
2704
|
+
};
|
|
2705
|
+
OrderDataService.prototype.cancelOrder = function (input) {
|
|
2706
|
+
return this.baseDataService.mutate(CANCEL_ORDER, {
|
|
2707
|
+
input: input,
|
|
2708
|
+
});
|
|
2709
|
+
};
|
|
2710
|
+
OrderDataService.prototype.refundOrder = function (input) {
|
|
2711
|
+
return this.baseDataService.mutate(REFUND_ORDER, {
|
|
2712
|
+
input: input,
|
|
2713
|
+
});
|
|
2714
|
+
};
|
|
2715
|
+
OrderDataService.prototype.settleRefund = function (input, orderId) {
|
|
2716
|
+
return this.baseDataService.mutate(SETTLE_REFUND, {
|
|
2717
|
+
input: input,
|
|
2718
|
+
});
|
|
2719
|
+
};
|
|
2720
|
+
OrderDataService.prototype.addNoteToOrder = function (input) {
|
|
2721
|
+
return this.baseDataService.mutate(ADD_NOTE_TO_ORDER, {
|
|
2722
|
+
input: input,
|
|
2723
|
+
});
|
|
2724
|
+
};
|
|
2725
|
+
OrderDataService.prototype.updateOrderNote = function (input) {
|
|
2726
|
+
return this.baseDataService.mutate(UPDATE_ORDER_NOTE, {
|
|
2727
|
+
input: input,
|
|
2728
|
+
});
|
|
2729
|
+
};
|
|
2730
|
+
OrderDataService.prototype.deleteOrderNote = function (id) {
|
|
2731
|
+
return this.baseDataService.mutate(DELETE_ORDER_NOTE, {
|
|
2732
|
+
id: id,
|
|
2733
|
+
});
|
|
2734
|
+
};
|
|
2735
|
+
OrderDataService.prototype.transitionToState = function (id, state) {
|
|
2736
|
+
return this.baseDataService.mutate(TRANSITION_ORDER_TO_STATE, {
|
|
2737
|
+
id: id,
|
|
2738
|
+
state: state,
|
|
2739
|
+
});
|
|
2740
|
+
};
|
|
2741
|
+
OrderDataService.prototype.updateOrderCustomFields = function (input) {
|
|
2742
|
+
return this.baseDataService.mutate(UPDATE_ORDER_CUSTOM_FIELDS, {
|
|
2743
|
+
input: input,
|
|
2744
|
+
});
|
|
2745
|
+
};
|
|
2746
|
+
OrderDataService.prototype.getOrderSummary = function (start, end) {
|
|
2747
|
+
return this.baseDataService.query(GET_ORDER_SUMMARY, {
|
|
2748
|
+
start: start.toISOString(),
|
|
2749
|
+
end: end.toISOString(),
|
|
2750
|
+
});
|
|
2751
|
+
};
|
|
2752
|
+
OrderDataService.prototype.modifyOrder = function (input) {
|
|
2753
|
+
return this.baseDataService.mutate(MODIFY_ORDER, {
|
|
2754
|
+
input: input,
|
|
2755
|
+
});
|
|
2756
|
+
};
|
|
2757
|
+
OrderDataService.prototype.addManualPaymentToOrder = function (input) {
|
|
2758
|
+
return this.baseDataService.mutate(ADD_MANUAL_PAYMENT_TO_ORDER, { input: input });
|
|
2759
|
+
};
|
|
2760
|
+
OrderDataService.prototype.createDraftOrder = function () {
|
|
2761
|
+
return this.baseDataService.mutate(CREATE_DRAFT_ORDER);
|
|
2762
|
+
};
|
|
2763
|
+
OrderDataService.prototype.deleteDraftOrder = function (orderId) {
|
|
2764
|
+
return this.baseDataService.mutate(DELETE_DRAFT_ORDER, { orderId: orderId });
|
|
2765
|
+
};
|
|
2766
|
+
OrderDataService.prototype.addItemToDraftOrder = function (orderId, input) {
|
|
2767
|
+
return this.baseDataService.mutate(ADD_ITEM_TO_DRAFT_ORDER, { orderId: orderId, input: input });
|
|
2768
|
+
};
|
|
2769
|
+
OrderDataService.prototype.adjustDraftOrderLine = function (orderId, input) {
|
|
2770
|
+
return this.baseDataService.mutate(ADJUST_DRAFT_ORDER_LINE, { orderId: orderId, input: input });
|
|
2771
|
+
};
|
|
2772
|
+
OrderDataService.prototype.removeDraftOrderLine = function (orderId, orderLineId) {
|
|
2773
|
+
return this.baseDataService.mutate(REMOVE_DRAFT_ORDER_LINE, { orderId: orderId, orderLineId: orderLineId });
|
|
2774
|
+
};
|
|
2775
|
+
OrderDataService.prototype.setCustomerForDraftOrder = function (orderId, _a) {
|
|
2776
|
+
var customerId = _a.customerId, input = _a.input;
|
|
2777
|
+
return this.baseDataService.mutate(SET_CUSTOMER_FOR_DRAFT_ORDER, { orderId: orderId, customerId: customerId, input: input });
|
|
2778
|
+
};
|
|
2779
|
+
OrderDataService.prototype.setDraftOrderShippingAddress = function (orderId, input) {
|
|
2780
|
+
return this.baseDataService.mutate(SET_SHIPPING_ADDRESS_FOR_DRAFT_ORDER, { orderId: orderId, input: input });
|
|
2781
|
+
};
|
|
2782
|
+
OrderDataService.prototype.setDraftOrderBillingAddress = function (orderId, input) {
|
|
2783
|
+
return this.baseDataService.mutate(SET_BILLING_ADDRESS_FOR_DRAFT_ORDER, { orderId: orderId, input: input });
|
|
2784
|
+
};
|
|
2785
|
+
OrderDataService.prototype.applyCouponCodeToDraftOrder = function (orderId, couponCode) {
|
|
2786
|
+
return this.baseDataService.mutate(APPLY_COUPON_CODE_TO_DRAFT_ORDER, { orderId: orderId, couponCode: couponCode });
|
|
2787
|
+
};
|
|
2788
|
+
OrderDataService.prototype.removeCouponCodeFromDraftOrder = function (orderId, couponCode) {
|
|
2789
|
+
return this.baseDataService.mutate(REMOVE_COUPON_CODE_FROM_DRAFT_ORDER, { orderId: orderId, couponCode: couponCode });
|
|
2790
|
+
};
|
|
2791
|
+
OrderDataService.prototype.getDraftOrderEligibleShippingMethods = function (orderId) {
|
|
2792
|
+
return this.baseDataService.query(DRAFT_ORDER_ELIGIBLE_SHIPPING_METHODS, { orderId: orderId });
|
|
2793
|
+
};
|
|
2794
|
+
OrderDataService.prototype.setDraftOrderShippingMethod = function (orderId, shippingMethodId) {
|
|
2795
|
+
return this.baseDataService.mutate(SET_DRAFT_ORDER_SHIPPING_METHOD, { orderId: orderId, shippingMethodId: shippingMethodId });
|
|
2796
|
+
};
|
|
2797
|
+
return OrderDataService;
|
|
2798
|
+
}());
|
|
2799
|
+
|
|
2702
2800
|
var ProductDataService = /** @class */ (function () {
|
|
2703
2801
|
function ProductDataService(baseDataService) {
|
|
2704
2802
|
this.baseDataService = baseDataService;
|
|
@@ -2797,6 +2895,11 @@
|
|
|
2797
2895
|
id: id,
|
|
2798
2896
|
});
|
|
2799
2897
|
};
|
|
2898
|
+
ProductDataService.prototype.deleteProducts = function (ids) {
|
|
2899
|
+
return this.baseDataService.mutate(DELETE_PRODUCTS, {
|
|
2900
|
+
ids: ids,
|
|
2901
|
+
});
|
|
2902
|
+
};
|
|
2800
2903
|
ProductDataService.prototype.createProductVariants = function (input) {
|
|
2801
2904
|
return this.baseDataService.mutate(CREATE_PRODUCT_VARIANTS, {
|
|
2802
2905
|
input: input,
|
|
@@ -3719,7 +3822,7 @@
|
|
|
3719
3822
|
SimpleDialogComponent.decorators = [
|
|
3720
3823
|
{ type: i0.Component, args: [{
|
|
3721
3824
|
selector: 'vdr-simple-dialog',
|
|
3722
|
-
template: "<ng-template vdrDialogTitle>{{ title | translate:translationVars }}</ng-template>\r\n{{ body | translate:translationVars }}
|
|
3825
|
+
template: "<ng-template vdrDialogTitle>{{ title | translate:translationVars }}</ng-template>\r\n<div style=\"white-space: pre-wrap;\">{{ body | translate:translationVars }}</div>\r\n<ng-template vdrDialogButtons>\r\n <ng-container *ngFor=\"let button of buttons\">\r\n <button\r\n class=\"btn\"\r\n [class.btn-primary]=\"button.type === 'primary'\"\r\n [class.btn-danger]=\"button.type === 'danger'\"\r\n (click)=\"resolveWith(button.returnValue)\"\r\n >\r\n {{ button.label | translate: (button.translationVars || {}) }}\r\n </button>\r\n </ng-container>\r\n</ng-template>\r\n",
|
|
3723
3826
|
changeDetection: i0.ChangeDetectionStrategy.OnPush,
|
|
3724
3827
|
styles: [""]
|
|
3725
3828
|
},] }
|
|
@@ -3850,6 +3953,7 @@
|
|
|
3850
3953
|
ModalService.prototype.dialog = function (config) {
|
|
3851
3954
|
return this.fromComponent(SimpleDialogComponent, {
|
|
3852
3955
|
locals: config,
|
|
3956
|
+
size: config.size,
|
|
3853
3957
|
});
|
|
3854
3958
|
};
|
|
3855
3959
|
return ModalService;
|
|
@@ -4340,7 +4444,7 @@
|
|
|
4340
4444
|
{ type: i0.Component, args: [{
|
|
4341
4445
|
selector: 'vdr-breadcrumb',
|
|
4342
4446
|
template: "<nav role=\"navigation\">\r\n <ul class=\"breadcrumbs\">\r\n <li *ngFor=\"let breadcrumb of (breadcrumbs$ | async); let isLast = last\">\r\n <a [routerLink]=\"breadcrumb.link\" *ngIf=\"!isLast\">{{ breadcrumb.label | translate }}</a>\r\n <ng-container *ngIf=\"isLast\">{{ breadcrumb.label | translate }}</ng-container>\r\n </li>\r\n </ul>\r\n</nav>\r\n",
|
|
4343
|
-
styles: ["@charset \"UTF-8\";:host{display:block
|
|
4447
|
+
styles: ["@charset \"UTF-8\";:host{display:block}@media screen and (min-width: 768px){:host{padding:0 1rem}}.breadcrumbs{list-style-type:none;display:flex;overflow-x:auto;max-width:100vw;padding:0 3px}@media screen and (min-width: 768px){.breadcrumbs{padding:0}}.breadcrumbs li{font-size:16px;display:inline-block;margin-right:10px;white-space:nowrap}.breadcrumbs li:not(:last-child):after{content:\"\\203a\";top:0;color:var(--color-grey-400);margin-left:10px}\n"]
|
|
4344
4448
|
},] }
|
|
4345
4449
|
];
|
|
4346
4450
|
BreadcrumbComponent.ctorParameters = function () { return [
|
|
@@ -5280,196 +5384,301 @@
|
|
|
5280
5384
|
|
|
5281
5385
|
// tslint:disable
|
|
5282
5386
|
var result = {
|
|
5283
|
-
possibleTypes: {
|
|
5284
|
-
AddFulfillmentToOrderResult: [
|
|
5285
|
-
|
|
5286
|
-
|
|
5287
|
-
|
|
5288
|
-
|
|
5289
|
-
|
|
5290
|
-
|
|
5291
|
-
|
|
5387
|
+
"possibleTypes": {
|
|
5388
|
+
"AddFulfillmentToOrderResult": [
|
|
5389
|
+
"Fulfillment",
|
|
5390
|
+
"EmptyOrderLineSelectionError",
|
|
5391
|
+
"ItemsAlreadyFulfilledError",
|
|
5392
|
+
"InsufficientStockOnHandError",
|
|
5393
|
+
"InvalidFulfillmentHandlerError",
|
|
5394
|
+
"FulfillmentStateTransitionError",
|
|
5395
|
+
"CreateFulfillmentError"
|
|
5292
5396
|
],
|
|
5293
|
-
AddManualPaymentToOrderResult: [
|
|
5294
|
-
|
|
5295
|
-
|
|
5296
|
-
'Order',
|
|
5297
|
-
'EmptyOrderLineSelectionError',
|
|
5298
|
-
'QuantityTooGreatError',
|
|
5299
|
-
'MultipleOrderError',
|
|
5300
|
-
'CancelActiveOrderError',
|
|
5301
|
-
'OrderStateTransitionError',
|
|
5397
|
+
"AddManualPaymentToOrderResult": [
|
|
5398
|
+
"Order",
|
|
5399
|
+
"ManualPaymentStateError"
|
|
5302
5400
|
],
|
|
5303
|
-
|
|
5304
|
-
|
|
5305
|
-
|
|
5306
|
-
|
|
5307
|
-
|
|
5308
|
-
CustomField: [
|
|
5309
|
-
'BooleanCustomFieldConfig',
|
|
5310
|
-
'DateTimeCustomFieldConfig',
|
|
5311
|
-
'FloatCustomFieldConfig',
|
|
5312
|
-
'IntCustomFieldConfig',
|
|
5313
|
-
'LocaleStringCustomFieldConfig',
|
|
5314
|
-
'RelationCustomFieldConfig',
|
|
5315
|
-
'StringCustomFieldConfig',
|
|
5316
|
-
'TextCustomFieldConfig',
|
|
5401
|
+
"ApplyCouponCodeResult": [
|
|
5402
|
+
"Order",
|
|
5403
|
+
"CouponCodeExpiredError",
|
|
5404
|
+
"CouponCodeInvalidError",
|
|
5405
|
+
"CouponCodeLimitError"
|
|
5317
5406
|
],
|
|
5318
|
-
|
|
5319
|
-
|
|
5320
|
-
|
|
5321
|
-
'IntCustomFieldConfig',
|
|
5322
|
-
'FloatCustomFieldConfig',
|
|
5323
|
-
'BooleanCustomFieldConfig',
|
|
5324
|
-
'DateTimeCustomFieldConfig',
|
|
5325
|
-
'RelationCustomFieldConfig',
|
|
5326
|
-
'TextCustomFieldConfig',
|
|
5407
|
+
"AuthenticationResult": [
|
|
5408
|
+
"CurrentUser",
|
|
5409
|
+
"InvalidCredentialsError"
|
|
5327
5410
|
],
|
|
5328
|
-
|
|
5329
|
-
|
|
5330
|
-
|
|
5331
|
-
|
|
5332
|
-
|
|
5333
|
-
|
|
5334
|
-
|
|
5335
|
-
'CouponCodeLimitError',
|
|
5336
|
-
'CreateFulfillmentError',
|
|
5337
|
-
'EmailAddressConflictError',
|
|
5338
|
-
'EmptyOrderLineSelectionError',
|
|
5339
|
-
'FulfillmentStateTransitionError',
|
|
5340
|
-
'InsufficientStockError',
|
|
5341
|
-
'InsufficientStockOnHandError',
|
|
5342
|
-
'InvalidCredentialsError',
|
|
5343
|
-
'InvalidFulfillmentHandlerError',
|
|
5344
|
-
'ItemsAlreadyFulfilledError',
|
|
5345
|
-
'LanguageNotAvailableError',
|
|
5346
|
-
'ManualPaymentStateError',
|
|
5347
|
-
'MimeTypeError',
|
|
5348
|
-
'MissingConditionsError',
|
|
5349
|
-
'MultipleOrderError',
|
|
5350
|
-
'NativeAuthStrategyError',
|
|
5351
|
-
'NegativeQuantityError',
|
|
5352
|
-
'NoChangesSpecifiedError',
|
|
5353
|
-
'NothingToRefundError',
|
|
5354
|
-
'OrderLimitError',
|
|
5355
|
-
'OrderModificationStateError',
|
|
5356
|
-
'OrderStateTransitionError',
|
|
5357
|
-
'PaymentMethodMissingError',
|
|
5358
|
-
'PaymentOrderMismatchError',
|
|
5359
|
-
'PaymentStateTransitionError',
|
|
5360
|
-
'ProductOptionInUseError',
|
|
5361
|
-
'QuantityTooGreatError',
|
|
5362
|
-
'RefundOrderStateError',
|
|
5363
|
-
'RefundPaymentIdMissingError',
|
|
5364
|
-
'RefundStateTransitionError',
|
|
5365
|
-
'SettlePaymentError',
|
|
5411
|
+
"CancelOrderResult": [
|
|
5412
|
+
"Order",
|
|
5413
|
+
"EmptyOrderLineSelectionError",
|
|
5414
|
+
"QuantityTooGreatError",
|
|
5415
|
+
"MultipleOrderError",
|
|
5416
|
+
"CancelActiveOrderError",
|
|
5417
|
+
"OrderStateTransitionError"
|
|
5366
5418
|
],
|
|
5367
|
-
|
|
5368
|
-
|
|
5369
|
-
|
|
5370
|
-
|
|
5371
|
-
'PaymentMethodMissingError',
|
|
5372
|
-
'RefundPaymentIdMissingError',
|
|
5373
|
-
'OrderLimitError',
|
|
5374
|
-
'NegativeQuantityError',
|
|
5375
|
-
'InsufficientStockError',
|
|
5376
|
-
'CouponCodeExpiredError',
|
|
5377
|
-
'CouponCodeInvalidError',
|
|
5378
|
-
'CouponCodeLimitError',
|
|
5419
|
+
"CancelPaymentResult": [
|
|
5420
|
+
"Payment",
|
|
5421
|
+
"CancelPaymentError",
|
|
5422
|
+
"PaymentStateTransitionError"
|
|
5379
5423
|
],
|
|
5380
|
-
|
|
5381
|
-
|
|
5382
|
-
|
|
5383
|
-
'Administrator',
|
|
5384
|
-
'Allocation',
|
|
5385
|
-
'Asset',
|
|
5386
|
-
'AuthenticationMethod',
|
|
5387
|
-
'Cancellation',
|
|
5388
|
-
'Channel',
|
|
5389
|
-
'Collection',
|
|
5390
|
-
'Country',
|
|
5391
|
-
'Customer',
|
|
5392
|
-
'CustomerGroup',
|
|
5393
|
-
'Facet',
|
|
5394
|
-
'FacetValue',
|
|
5395
|
-
'Fulfillment',
|
|
5396
|
-
'HistoryEntry',
|
|
5397
|
-
'Job',
|
|
5398
|
-
'Order',
|
|
5399
|
-
'OrderItem',
|
|
5400
|
-
'OrderLine',
|
|
5401
|
-
'OrderModification',
|
|
5402
|
-
'Payment',
|
|
5403
|
-
'PaymentMethod',
|
|
5404
|
-
'Product',
|
|
5405
|
-
'ProductOption',
|
|
5406
|
-
'ProductOptionGroup',
|
|
5407
|
-
'ProductVariant',
|
|
5408
|
-
'Promotion',
|
|
5409
|
-
'Refund',
|
|
5410
|
-
'Release',
|
|
5411
|
-
'Return',
|
|
5412
|
-
'Role',
|
|
5413
|
-
'Sale',
|
|
5414
|
-
'ShippingMethod',
|
|
5415
|
-
'StockAdjustment',
|
|
5416
|
-
'Surcharge',
|
|
5417
|
-
'Tag',
|
|
5418
|
-
'TaxCategory',
|
|
5419
|
-
'TaxRate',
|
|
5420
|
-
'User',
|
|
5421
|
-
'Zone',
|
|
5424
|
+
"CreateAssetResult": [
|
|
5425
|
+
"Asset",
|
|
5426
|
+
"MimeTypeError"
|
|
5422
5427
|
],
|
|
5423
|
-
|
|
5424
|
-
|
|
5425
|
-
|
|
5426
|
-
'CollectionList',
|
|
5427
|
-
'CountryList',
|
|
5428
|
-
'CustomerGroupList',
|
|
5429
|
-
'CustomerList',
|
|
5430
|
-
'FacetList',
|
|
5431
|
-
'HistoryEntryList',
|
|
5432
|
-
'JobList',
|
|
5433
|
-
'OrderList',
|
|
5434
|
-
'PaymentMethodList',
|
|
5435
|
-
'ProductList',
|
|
5436
|
-
'ProductVariantList',
|
|
5437
|
-
'PromotionList',
|
|
5438
|
-
'RoleList',
|
|
5439
|
-
'ShippingMethodList',
|
|
5440
|
-
'TagList',
|
|
5441
|
-
'TaxRateList',
|
|
5428
|
+
"CreateChannelResult": [
|
|
5429
|
+
"Channel",
|
|
5430
|
+
"LanguageNotAvailableError"
|
|
5442
5431
|
],
|
|
5443
|
-
|
|
5444
|
-
|
|
5445
|
-
|
|
5446
|
-
'NothingToRefundError',
|
|
5447
|
-
'OrderStateTransitionError',
|
|
5448
|
-
'MultipleOrderError',
|
|
5449
|
-
'PaymentOrderMismatchError',
|
|
5450
|
-
'RefundOrderStateError',
|
|
5451
|
-
'AlreadyRefundedError',
|
|
5452
|
-
'RefundStateTransitionError',
|
|
5432
|
+
"CreateCustomerResult": [
|
|
5433
|
+
"Customer",
|
|
5434
|
+
"EmailAddressConflictError"
|
|
5453
5435
|
],
|
|
5454
|
-
|
|
5455
|
-
|
|
5456
|
-
|
|
5457
|
-
'Payment',
|
|
5458
|
-
'SettlePaymentError',
|
|
5459
|
-
'PaymentStateTransitionError',
|
|
5460
|
-
'OrderStateTransitionError',
|
|
5436
|
+
"CreatePromotionResult": [
|
|
5437
|
+
"Promotion",
|
|
5438
|
+
"MissingConditionsError"
|
|
5461
5439
|
],
|
|
5462
|
-
|
|
5463
|
-
|
|
5464
|
-
|
|
5465
|
-
|
|
5466
|
-
|
|
5467
|
-
|
|
5468
|
-
|
|
5469
|
-
|
|
5470
|
-
|
|
5471
|
-
|
|
5472
|
-
|
|
5440
|
+
"CustomField": [
|
|
5441
|
+
"BooleanCustomFieldConfig",
|
|
5442
|
+
"DateTimeCustomFieldConfig",
|
|
5443
|
+
"FloatCustomFieldConfig",
|
|
5444
|
+
"IntCustomFieldConfig",
|
|
5445
|
+
"LocaleStringCustomFieldConfig",
|
|
5446
|
+
"RelationCustomFieldConfig",
|
|
5447
|
+
"StringCustomFieldConfig",
|
|
5448
|
+
"TextCustomFieldConfig"
|
|
5449
|
+
],
|
|
5450
|
+
"CustomFieldConfig": [
|
|
5451
|
+
"StringCustomFieldConfig",
|
|
5452
|
+
"LocaleStringCustomFieldConfig",
|
|
5453
|
+
"IntCustomFieldConfig",
|
|
5454
|
+
"FloatCustomFieldConfig",
|
|
5455
|
+
"BooleanCustomFieldConfig",
|
|
5456
|
+
"DateTimeCustomFieldConfig",
|
|
5457
|
+
"RelationCustomFieldConfig",
|
|
5458
|
+
"TextCustomFieldConfig"
|
|
5459
|
+
],
|
|
5460
|
+
"ErrorResult": [
|
|
5461
|
+
"AlreadyRefundedError",
|
|
5462
|
+
"CancelActiveOrderError",
|
|
5463
|
+
"CancelPaymentError",
|
|
5464
|
+
"ChannelDefaultLanguageError",
|
|
5465
|
+
"CouponCodeExpiredError",
|
|
5466
|
+
"CouponCodeInvalidError",
|
|
5467
|
+
"CouponCodeLimitError",
|
|
5468
|
+
"CreateFulfillmentError",
|
|
5469
|
+
"EmailAddressConflictError",
|
|
5470
|
+
"EmptyOrderLineSelectionError",
|
|
5471
|
+
"FacetInUseError",
|
|
5472
|
+
"FulfillmentStateTransitionError",
|
|
5473
|
+
"IneligibleShippingMethodError",
|
|
5474
|
+
"InsufficientStockError",
|
|
5475
|
+
"InsufficientStockOnHandError",
|
|
5476
|
+
"InvalidCredentialsError",
|
|
5477
|
+
"InvalidFulfillmentHandlerError",
|
|
5478
|
+
"ItemsAlreadyFulfilledError",
|
|
5479
|
+
"LanguageNotAvailableError",
|
|
5480
|
+
"ManualPaymentStateError",
|
|
5481
|
+
"MimeTypeError",
|
|
5482
|
+
"MissingConditionsError",
|
|
5483
|
+
"MultipleOrderError",
|
|
5484
|
+
"NativeAuthStrategyError",
|
|
5485
|
+
"NegativeQuantityError",
|
|
5486
|
+
"NoActiveOrderError",
|
|
5487
|
+
"NoChangesSpecifiedError",
|
|
5488
|
+
"NothingToRefundError",
|
|
5489
|
+
"OrderLimitError",
|
|
5490
|
+
"OrderModificationError",
|
|
5491
|
+
"OrderModificationStateError",
|
|
5492
|
+
"OrderStateTransitionError",
|
|
5493
|
+
"PaymentMethodMissingError",
|
|
5494
|
+
"PaymentOrderMismatchError",
|
|
5495
|
+
"PaymentStateTransitionError",
|
|
5496
|
+
"ProductOptionInUseError",
|
|
5497
|
+
"QuantityTooGreatError",
|
|
5498
|
+
"RefundOrderStateError",
|
|
5499
|
+
"RefundPaymentIdMissingError",
|
|
5500
|
+
"RefundStateTransitionError",
|
|
5501
|
+
"SettlePaymentError"
|
|
5502
|
+
],
|
|
5503
|
+
"ModifyOrderResult": [
|
|
5504
|
+
"Order",
|
|
5505
|
+
"NoChangesSpecifiedError",
|
|
5506
|
+
"OrderModificationStateError",
|
|
5507
|
+
"PaymentMethodMissingError",
|
|
5508
|
+
"RefundPaymentIdMissingError",
|
|
5509
|
+
"OrderLimitError",
|
|
5510
|
+
"NegativeQuantityError",
|
|
5511
|
+
"InsufficientStockError",
|
|
5512
|
+
"CouponCodeExpiredError",
|
|
5513
|
+
"CouponCodeInvalidError",
|
|
5514
|
+
"CouponCodeLimitError"
|
|
5515
|
+
],
|
|
5516
|
+
"NativeAuthenticationResult": [
|
|
5517
|
+
"CurrentUser",
|
|
5518
|
+
"InvalidCredentialsError",
|
|
5519
|
+
"NativeAuthStrategyError"
|
|
5520
|
+
],
|
|
5521
|
+
"Node": [
|
|
5522
|
+
"Address",
|
|
5523
|
+
"Administrator",
|
|
5524
|
+
"Allocation",
|
|
5525
|
+
"Asset",
|
|
5526
|
+
"AuthenticationMethod",
|
|
5527
|
+
"Cancellation",
|
|
5528
|
+
"Channel",
|
|
5529
|
+
"Collection",
|
|
5530
|
+
"Country",
|
|
5531
|
+
"Customer",
|
|
5532
|
+
"CustomerGroup",
|
|
5533
|
+
"Facet",
|
|
5534
|
+
"FacetValue",
|
|
5535
|
+
"Fulfillment",
|
|
5536
|
+
"HistoryEntry",
|
|
5537
|
+
"Job",
|
|
5538
|
+
"Order",
|
|
5539
|
+
"OrderItem",
|
|
5540
|
+
"OrderLine",
|
|
5541
|
+
"OrderModification",
|
|
5542
|
+
"Payment",
|
|
5543
|
+
"PaymentMethod",
|
|
5544
|
+
"Product",
|
|
5545
|
+
"ProductOption",
|
|
5546
|
+
"ProductOptionGroup",
|
|
5547
|
+
"ProductVariant",
|
|
5548
|
+
"Promotion",
|
|
5549
|
+
"Refund",
|
|
5550
|
+
"Release",
|
|
5551
|
+
"Return",
|
|
5552
|
+
"Role",
|
|
5553
|
+
"Sale",
|
|
5554
|
+
"ShippingMethod",
|
|
5555
|
+
"StockAdjustment",
|
|
5556
|
+
"Surcharge",
|
|
5557
|
+
"Tag",
|
|
5558
|
+
"TaxCategory",
|
|
5559
|
+
"TaxRate",
|
|
5560
|
+
"User",
|
|
5561
|
+
"Zone"
|
|
5562
|
+
],
|
|
5563
|
+
"PaginatedList": [
|
|
5564
|
+
"AdministratorList",
|
|
5565
|
+
"AssetList",
|
|
5566
|
+
"CollectionList",
|
|
5567
|
+
"CountryList",
|
|
5568
|
+
"CustomerGroupList",
|
|
5569
|
+
"CustomerList",
|
|
5570
|
+
"FacetList",
|
|
5571
|
+
"HistoryEntryList",
|
|
5572
|
+
"JobList",
|
|
5573
|
+
"OrderList",
|
|
5574
|
+
"PaymentMethodList",
|
|
5575
|
+
"ProductList",
|
|
5576
|
+
"ProductVariantList",
|
|
5577
|
+
"PromotionList",
|
|
5578
|
+
"RoleList",
|
|
5579
|
+
"ShippingMethodList",
|
|
5580
|
+
"TagList",
|
|
5581
|
+
"TaxRateList"
|
|
5582
|
+
],
|
|
5583
|
+
"RefundOrderResult": [
|
|
5584
|
+
"Refund",
|
|
5585
|
+
"QuantityTooGreatError",
|
|
5586
|
+
"NothingToRefundError",
|
|
5587
|
+
"OrderStateTransitionError",
|
|
5588
|
+
"MultipleOrderError",
|
|
5589
|
+
"PaymentOrderMismatchError",
|
|
5590
|
+
"RefundOrderStateError",
|
|
5591
|
+
"AlreadyRefundedError",
|
|
5592
|
+
"RefundStateTransitionError"
|
|
5593
|
+
],
|
|
5594
|
+
"RemoveFacetFromChannelResult": [
|
|
5595
|
+
"Facet",
|
|
5596
|
+
"FacetInUseError"
|
|
5597
|
+
],
|
|
5598
|
+
"RemoveOptionGroupFromProductResult": [
|
|
5599
|
+
"Product",
|
|
5600
|
+
"ProductOptionInUseError"
|
|
5601
|
+
],
|
|
5602
|
+
"RemoveOrderItemsResult": [
|
|
5603
|
+
"Order",
|
|
5604
|
+
"OrderModificationError"
|
|
5605
|
+
],
|
|
5606
|
+
"SearchResultPrice": [
|
|
5607
|
+
"PriceRange",
|
|
5608
|
+
"SinglePrice"
|
|
5609
|
+
],
|
|
5610
|
+
"SetCustomerForDraftOrderResult": [
|
|
5611
|
+
"Order",
|
|
5612
|
+
"EmailAddressConflictError"
|
|
5613
|
+
],
|
|
5614
|
+
"SetOrderShippingMethodResult": [
|
|
5615
|
+
"Order",
|
|
5616
|
+
"OrderModificationError",
|
|
5617
|
+
"IneligibleShippingMethodError",
|
|
5618
|
+
"NoActiveOrderError"
|
|
5619
|
+
],
|
|
5620
|
+
"SettlePaymentResult": [
|
|
5621
|
+
"Payment",
|
|
5622
|
+
"SettlePaymentError",
|
|
5623
|
+
"PaymentStateTransitionError",
|
|
5624
|
+
"OrderStateTransitionError"
|
|
5625
|
+
],
|
|
5626
|
+
"SettleRefundResult": [
|
|
5627
|
+
"Refund",
|
|
5628
|
+
"RefundStateTransitionError"
|
|
5629
|
+
],
|
|
5630
|
+
"StockMovement": [
|
|
5631
|
+
"Allocation",
|
|
5632
|
+
"Cancellation",
|
|
5633
|
+
"Release",
|
|
5634
|
+
"Return",
|
|
5635
|
+
"Sale",
|
|
5636
|
+
"StockAdjustment"
|
|
5637
|
+
],
|
|
5638
|
+
"StockMovementItem": [
|
|
5639
|
+
"StockAdjustment",
|
|
5640
|
+
"Allocation",
|
|
5641
|
+
"Sale",
|
|
5642
|
+
"Cancellation",
|
|
5643
|
+
"Return",
|
|
5644
|
+
"Release"
|
|
5645
|
+
],
|
|
5646
|
+
"TransitionFulfillmentToStateResult": [
|
|
5647
|
+
"Fulfillment",
|
|
5648
|
+
"FulfillmentStateTransitionError"
|
|
5649
|
+
],
|
|
5650
|
+
"TransitionOrderToStateResult": [
|
|
5651
|
+
"Order",
|
|
5652
|
+
"OrderStateTransitionError"
|
|
5653
|
+
],
|
|
5654
|
+
"TransitionPaymentToStateResult": [
|
|
5655
|
+
"Payment",
|
|
5656
|
+
"PaymentStateTransitionError"
|
|
5657
|
+
],
|
|
5658
|
+
"UpdateChannelResult": [
|
|
5659
|
+
"Channel",
|
|
5660
|
+
"LanguageNotAvailableError"
|
|
5661
|
+
],
|
|
5662
|
+
"UpdateCustomerResult": [
|
|
5663
|
+
"Customer",
|
|
5664
|
+
"EmailAddressConflictError"
|
|
5665
|
+
],
|
|
5666
|
+
"UpdateGlobalSettingsResult": [
|
|
5667
|
+
"GlobalSettings",
|
|
5668
|
+
"ChannelDefaultLanguageError"
|
|
5669
|
+
],
|
|
5670
|
+
"UpdateOrderItemsResult": [
|
|
5671
|
+
"Order",
|
|
5672
|
+
"OrderModificationError",
|
|
5673
|
+
"OrderLimitError",
|
|
5674
|
+
"NegativeQuantityError",
|
|
5675
|
+
"InsufficientStockError"
|
|
5676
|
+
],
|
|
5677
|
+
"UpdatePromotionResult": [
|
|
5678
|
+
"Promotion",
|
|
5679
|
+
"MissingConditionsError"
|
|
5680
|
+
]
|
|
5681
|
+
}
|
|
5473
5682
|
};
|
|
5474
5683
|
|
|
5475
5684
|
// Allows the introspectionResult to be imported as a named symbol
|
|
@@ -5541,7 +5750,7 @@
|
|
|
5541
5750
|
};
|
|
5542
5751
|
}
|
|
5543
5752
|
|
|
5544
|
-
var ɵ0$
|
|
5753
|
+
var ɵ0$4 = function (_, args, _b) {
|
|
5545
5754
|
var cache = _b.cache;
|
|
5546
5755
|
return updateRequestsInFlight(cache, 1);
|
|
5547
5756
|
}, ɵ1 = function (_, args, _b) {
|
|
@@ -5642,7 +5851,7 @@
|
|
|
5642
5851
|
};
|
|
5643
5852
|
var clientResolvers = {
|
|
5644
5853
|
Mutation: {
|
|
5645
|
-
requestStarted: ɵ0$
|
|
5854
|
+
requestStarted: ɵ0$4,
|
|
5646
5855
|
requestCompleted: ɵ1,
|
|
5647
5856
|
setAsLoggedIn: ɵ2,
|
|
5648
5857
|
setAsLoggedOut: ɵ3,
|
|
@@ -6102,7 +6311,7 @@
|
|
|
6102
6311
|
resolvers: clientResolvers,
|
|
6103
6312
|
};
|
|
6104
6313
|
}
|
|
6105
|
-
var ɵ0$
|
|
6314
|
+
var ɵ0$3 = initializeServerConfigService;
|
|
6106
6315
|
/**
|
|
6107
6316
|
* The DataModule is responsible for all API calls *and* serves as the source of truth for global app
|
|
6108
6317
|
* state via the apollo-link-state package.
|
|
@@ -6131,7 +6340,7 @@
|
|
|
6131
6340
|
{
|
|
6132
6341
|
provide: i0.APP_INITIALIZER,
|
|
6133
6342
|
multi: true,
|
|
6134
|
-
useFactory: ɵ0$
|
|
6343
|
+
useFactory: ɵ0$3,
|
|
6135
6344
|
deps: [ServerConfigService],
|
|
6136
6345
|
},
|
|
6137
6346
|
],
|
|
@@ -6298,34 +6507,12 @@
|
|
|
6298
6507
|
},] }
|
|
6299
6508
|
];
|
|
6300
6509
|
|
|
6301
|
-
function
|
|
6302
|
-
|
|
6303
|
-
var error = { jsonInvalid: true };
|
|
6304
|
-
try {
|
|
6305
|
-
JSON.parse(control.value);
|
|
6306
|
-
}
|
|
6307
|
-
catch (e) {
|
|
6308
|
-
control.setErrors(error);
|
|
6309
|
-
return error;
|
|
6310
|
-
}
|
|
6311
|
-
control.setErrors(null);
|
|
6312
|
-
return null;
|
|
6313
|
-
};
|
|
6314
|
-
}
|
|
6315
|
-
/**
|
|
6316
|
-
* @description
|
|
6317
|
-
* A JSON editor input with syntax highlighting and error detection. Works well
|
|
6318
|
-
* with `text` type fields.
|
|
6319
|
-
*
|
|
6320
|
-
* @docsCategory custom-input-components
|
|
6321
|
-
* @docsPage default-inputs
|
|
6322
|
-
*/
|
|
6323
|
-
var JsonEditorFormInputComponent = /** @class */ (function () {
|
|
6324
|
-
function JsonEditorFormInputComponent(changeDetector) {
|
|
6510
|
+
var BaseCodeEditorFormInputComponent = /** @class */ (function () {
|
|
6511
|
+
function BaseCodeEditorFormInputComponent(changeDetector) {
|
|
6325
6512
|
this.changeDetector = changeDetector;
|
|
6326
6513
|
this.isValid = true;
|
|
6327
6514
|
}
|
|
6328
|
-
Object.defineProperty(
|
|
6515
|
+
Object.defineProperty(BaseCodeEditorFormInputComponent.prototype, "height", {
|
|
6329
6516
|
get: function () {
|
|
6330
6517
|
var _a;
|
|
6331
6518
|
return ((_a = this.config.ui) === null || _a === void 0 ? void 0 : _a.height) || this.config.height;
|
|
@@ -6333,10 +6520,12 @@
|
|
|
6333
6520
|
enumerable: false,
|
|
6334
6521
|
configurable: true
|
|
6335
6522
|
});
|
|
6336
|
-
|
|
6337
|
-
this.formControl.addValidators(
|
|
6523
|
+
BaseCodeEditorFormInputComponent.prototype.configure = function (config) {
|
|
6524
|
+
this.formControl.addValidators(config.validator);
|
|
6525
|
+
this.highlight = config.highlight;
|
|
6526
|
+
this.getErrorMessage = config.getErrorMessage;
|
|
6338
6527
|
};
|
|
6339
|
-
|
|
6528
|
+
BaseCodeEditorFormInputComponent.prototype.ngAfterViewInit = function () {
|
|
6340
6529
|
var _this = this;
|
|
6341
6530
|
var lastVal = '';
|
|
6342
6531
|
var highlight = function (editor) {
|
|
@@ -6346,9 +6535,9 @@
|
|
|
6346
6535
|
return;
|
|
6347
6536
|
}
|
|
6348
6537
|
lastVal = code;
|
|
6349
|
-
_this.errorMessage = _this.
|
|
6538
|
+
_this.errorMessage = _this.getErrorMessage(code);
|
|
6350
6539
|
_this.changeDetector.markForCheck();
|
|
6351
|
-
editor.innerHTML = _this.
|
|
6540
|
+
editor.innerHTML = _this.highlight(code, _this.getErrorPos(_this.errorMessage));
|
|
6352
6541
|
};
|
|
6353
6542
|
this.jar = codejar.CodeJar(this.editorElementRef.nativeElement, highlight);
|
|
6354
6543
|
this.jar.onUpdate(function (value) {
|
|
@@ -6361,16 +6550,7 @@
|
|
|
6361
6550
|
this.editorElementRef.nativeElement.contentEditable = 'false';
|
|
6362
6551
|
}
|
|
6363
6552
|
};
|
|
6364
|
-
|
|
6365
|
-
try {
|
|
6366
|
-
JSON.parse(json);
|
|
6367
|
-
}
|
|
6368
|
-
catch (e) {
|
|
6369
|
-
return e.message;
|
|
6370
|
-
}
|
|
6371
|
-
return;
|
|
6372
|
-
};
|
|
6373
|
-
JsonEditorFormInputComponent.prototype.getErrorPos = function (errorMessage) {
|
|
6553
|
+
BaseCodeEditorFormInputComponent.prototype.getErrorPos = function (errorMessage) {
|
|
6374
6554
|
if (!errorMessage) {
|
|
6375
6555
|
return;
|
|
6376
6556
|
}
|
|
@@ -6378,58 +6558,188 @@
|
|
|
6378
6558
|
var pos = matches === null || matches === void 0 ? void 0 : matches[1];
|
|
6379
6559
|
return pos != null ? +pos : undefined;
|
|
6380
6560
|
};
|
|
6381
|
-
|
|
6382
|
-
|
|
6383
|
-
|
|
6384
|
-
|
|
6385
|
-
|
|
6386
|
-
|
|
6387
|
-
|
|
6388
|
-
|
|
6389
|
-
|
|
6390
|
-
|
|
6391
|
-
|
|
6392
|
-
|
|
6393
|
-
|
|
6394
|
-
|
|
6395
|
-
|
|
6561
|
+
return BaseCodeEditorFormInputComponent;
|
|
6562
|
+
}());
|
|
6563
|
+
BaseCodeEditorFormInputComponent.decorators = [
|
|
6564
|
+
{ type: i0.Directive }
|
|
6565
|
+
];
|
|
6566
|
+
BaseCodeEditorFormInputComponent.ctorParameters = function () { return [
|
|
6567
|
+
{ type: i0.ChangeDetectorRef }
|
|
6568
|
+
]; };
|
|
6569
|
+
BaseCodeEditorFormInputComponent.propDecorators = {
|
|
6570
|
+
editorElementRef: [{ type: i0.ViewChild, args: ['editor',] }]
|
|
6571
|
+
};
|
|
6572
|
+
|
|
6573
|
+
function htmlValidator() {
|
|
6574
|
+
return function (control) {
|
|
6575
|
+
return null;
|
|
6576
|
+
};
|
|
6577
|
+
}
|
|
6578
|
+
var HTML_TAG_RE = /<\/?[^>]+>?/g;
|
|
6579
|
+
/**
|
|
6580
|
+
* @description
|
|
6581
|
+
* A JSON editor input with syntax highlighting and error detection. Works well
|
|
6582
|
+
* with `text` type fields.
|
|
6583
|
+
*
|
|
6584
|
+
* @docsCategory custom-input-components
|
|
6585
|
+
* @docsPage default-inputs
|
|
6586
|
+
*/
|
|
6587
|
+
var HtmlEditorFormInputComponent = /** @class */ (function (_super) {
|
|
6588
|
+
__extends(HtmlEditorFormInputComponent, _super);
|
|
6589
|
+
function HtmlEditorFormInputComponent(changeDetector) {
|
|
6590
|
+
var _this = _super.call(this, changeDetector) || this;
|
|
6591
|
+
_this.changeDetector = changeDetector;
|
|
6592
|
+
return _this;
|
|
6593
|
+
}
|
|
6594
|
+
HtmlEditorFormInputComponent.prototype.ngOnInit = function () {
|
|
6595
|
+
var _this = this;
|
|
6596
|
+
this.configure({
|
|
6597
|
+
validator: htmlValidator,
|
|
6598
|
+
highlight: function (html, errorPos) {
|
|
6599
|
+
var hasMarkedError = false;
|
|
6600
|
+
return html.replace(HTML_TAG_RE, function (match) {
|
|
6601
|
+
var args = [];
|
|
6602
|
+
for (var _i = 1; _i < arguments.length; _i++) {
|
|
6603
|
+
args[_i - 1] = arguments[_i];
|
|
6604
|
+
}
|
|
6605
|
+
var errorClass = '';
|
|
6606
|
+
if (errorPos && !hasMarkedError) {
|
|
6607
|
+
var length = args[0].length;
|
|
6608
|
+
var offset = args[4];
|
|
6609
|
+
if (errorPos <= length + offset) {
|
|
6610
|
+
errorClass = 'je-error';
|
|
6611
|
+
hasMarkedError = true;
|
|
6612
|
+
}
|
|
6613
|
+
}
|
|
6614
|
+
return ('<span class="he-tag' +
|
|
6615
|
+
' ' +
|
|
6616
|
+
errorClass +
|
|
6617
|
+
'">' +
|
|
6618
|
+
_this.encodeHtmlChars(match).replace(/([a-zA-Z0-9-]+=)(["'][^'"]*["'])/g, function (_match) {
|
|
6619
|
+
var _args = [];
|
|
6620
|
+
for (var _i = 1; _i < arguments.length; _i++) {
|
|
6621
|
+
_args[_i - 1] = arguments[_i];
|
|
6622
|
+
}
|
|
6623
|
+
return _args[0] + "<span class=\"he-attr\">" + _args[1] + "</span>";
|
|
6624
|
+
}) +
|
|
6625
|
+
'</span>');
|
|
6626
|
+
});
|
|
6627
|
+
},
|
|
6628
|
+
getErrorMessage: function (json) {
|
|
6629
|
+
return;
|
|
6630
|
+
},
|
|
6631
|
+
});
|
|
6632
|
+
};
|
|
6633
|
+
HtmlEditorFormInputComponent.prototype.encodeHtmlChars = function (html) {
|
|
6634
|
+
return html.replace(/&/g, '&').replace(/</g, '<').replace(/>/g, '>');
|
|
6635
|
+
};
|
|
6636
|
+
return HtmlEditorFormInputComponent;
|
|
6637
|
+
}(BaseCodeEditorFormInputComponent));
|
|
6638
|
+
HtmlEditorFormInputComponent.id = 'html-editor-form-input';
|
|
6639
|
+
HtmlEditorFormInputComponent.decorators = [
|
|
6640
|
+
{ type: i0.Component, args: [{
|
|
6641
|
+
selector: 'vdr-html-editor-form-input',
|
|
6642
|
+
template: "<div #editor class=\"code-editor html-editor\" [class.invalid]=\"!isValid\" [style.height]=\"height || '300px'\"></div>\r\n<div class=\"error-message\">\r\n <span *ngIf=\"errorMessage\">{{ errorMessage }}</span>\r\n</div>\r\n",
|
|
6643
|
+
changeDetection: i0.ChangeDetectionStrategy.OnPush,
|
|
6644
|
+
styles: [".code-editor{min-height:6rem;background-color:var(--color-json-editor-background-color);color:var(--color-json-editor-text);border:1px solid var(--color-component-border-200);border-radius:3px;padding:6px;-moz-tab-size:4;tab-size:4;font-family:\"Source Code Pro\",\"Lucida Console\",Monaco,monospace;font-size:14px;font-weight:400;height:340px;letter-spacing:normal;line-height:20px;resize:both;text-align:initial;min-width:200px}.code-editor:focus{border-color:var(--color-primary-500)}.code-editor.invalid{border-color:var(--clr-forms-invalid-color)}.error-message{min-height:1rem;color:var(--color-json-editor-error)}.code-editor ::ng-deep .he-tag{color:var(--color-json-editor-key)}.code-editor ::ng-deep .he-attr{color:var(--color-json-editor-number)}.code-editor ::ng-deep .he-error{-webkit-text-decoration-line:underline;text-decoration-line:underline;-webkit-text-decoration-style:wavy;text-decoration-style:wavy;-webkit-text-decoration-color:var(--color-json-editor-error);text-decoration-color:var(--color-json-editor-error)}\n"]
|
|
6645
|
+
},] }
|
|
6646
|
+
];
|
|
6647
|
+
HtmlEditorFormInputComponent.ctorParameters = function () { return [
|
|
6648
|
+
{ type: i0.ChangeDetectorRef }
|
|
6649
|
+
]; };
|
|
6650
|
+
|
|
6651
|
+
function jsonValidator() {
|
|
6652
|
+
return function (control) {
|
|
6653
|
+
var error = { jsonInvalid: true };
|
|
6654
|
+
try {
|
|
6655
|
+
JSON.parse(control.value);
|
|
6656
|
+
}
|
|
6657
|
+
catch (e) {
|
|
6658
|
+
control.setErrors(error);
|
|
6659
|
+
return error;
|
|
6660
|
+
}
|
|
6661
|
+
control.setErrors(null);
|
|
6662
|
+
return null;
|
|
6663
|
+
};
|
|
6664
|
+
}
|
|
6665
|
+
/**
|
|
6666
|
+
* @description
|
|
6667
|
+
* A JSON editor input with syntax highlighting and error detection. Works well
|
|
6668
|
+
* with `text` type fields.
|
|
6669
|
+
*
|
|
6670
|
+
* @docsCategory custom-input-components
|
|
6671
|
+
* @docsPage default-inputs
|
|
6672
|
+
*/
|
|
6673
|
+
var JsonEditorFormInputComponent = /** @class */ (function (_super) {
|
|
6674
|
+
__extends(JsonEditorFormInputComponent, _super);
|
|
6675
|
+
function JsonEditorFormInputComponent(changeDetector) {
|
|
6676
|
+
var _this = _super.call(this, changeDetector) || this;
|
|
6677
|
+
_this.changeDetector = changeDetector;
|
|
6678
|
+
return _this;
|
|
6679
|
+
}
|
|
6680
|
+
JsonEditorFormInputComponent.prototype.ngOnInit = function () {
|
|
6681
|
+
this.configure({
|
|
6682
|
+
validator: jsonValidator,
|
|
6683
|
+
highlight: function (json, errorPos) {
|
|
6684
|
+
json = json.replace(/&/g, '&').replace(/</g, '<').replace(/>/g, '>');
|
|
6685
|
+
var hasMarkedError = false;
|
|
6686
|
+
return json.replace(/("(\\u[a-zA-Z0-9]{4}|\\[^u]|[^\\"])*"(\s*:)?|\b(true|false|null)\b|-?\d+(?:\.\d*)?(?:[eE][+\-]?\d+)?)/g, function (match) {
|
|
6687
|
+
var args = [];
|
|
6688
|
+
for (var _i = 1; _i < arguments.length; _i++) {
|
|
6689
|
+
args[_i - 1] = arguments[_i];
|
|
6690
|
+
}
|
|
6691
|
+
var cls = 'number';
|
|
6692
|
+
if (/^"/.test(match)) {
|
|
6693
|
+
if (/:$/.test(match)) {
|
|
6694
|
+
cls = 'key';
|
|
6695
|
+
}
|
|
6696
|
+
else {
|
|
6697
|
+
cls = 'string';
|
|
6698
|
+
}
|
|
6699
|
+
}
|
|
6700
|
+
else if (/true|false/.test(match)) {
|
|
6701
|
+
cls = 'boolean';
|
|
6702
|
+
}
|
|
6703
|
+
else if (/null/.test(match)) {
|
|
6704
|
+
cls = 'null';
|
|
6705
|
+
}
|
|
6706
|
+
var errorClass = '';
|
|
6707
|
+
if (errorPos && !hasMarkedError) {
|
|
6708
|
+
var length = args[0].length;
|
|
6709
|
+
var offset = args[4];
|
|
6710
|
+
if (errorPos <= length + offset) {
|
|
6711
|
+
errorClass = 'je-error';
|
|
6712
|
+
hasMarkedError = true;
|
|
6713
|
+
}
|
|
6714
|
+
}
|
|
6715
|
+
return '<span class="je-' + cls + ' ' + errorClass + '">' + match + '</span>';
|
|
6716
|
+
});
|
|
6717
|
+
},
|
|
6718
|
+
getErrorMessage: function (json) {
|
|
6719
|
+
try {
|
|
6720
|
+
JSON.parse(json);
|
|
6396
6721
|
}
|
|
6397
|
-
|
|
6398
|
-
|
|
6399
|
-
cls = 'boolean';
|
|
6400
|
-
}
|
|
6401
|
-
else if (/null/.test(match)) {
|
|
6402
|
-
cls = 'null';
|
|
6403
|
-
}
|
|
6404
|
-
var errorClass = '';
|
|
6405
|
-
if (errorPos && !hasMarkedError) {
|
|
6406
|
-
var length = args[0].length;
|
|
6407
|
-
var offset = args[4];
|
|
6408
|
-
if (errorPos <= length + offset) {
|
|
6409
|
-
errorClass = 'je-error';
|
|
6410
|
-
hasMarkedError = true;
|
|
6722
|
+
catch (e) {
|
|
6723
|
+
return e.message;
|
|
6411
6724
|
}
|
|
6412
|
-
|
|
6413
|
-
|
|
6725
|
+
return;
|
|
6726
|
+
},
|
|
6414
6727
|
});
|
|
6415
6728
|
};
|
|
6416
6729
|
return JsonEditorFormInputComponent;
|
|
6417
|
-
}());
|
|
6730
|
+
}(BaseCodeEditorFormInputComponent));
|
|
6418
6731
|
JsonEditorFormInputComponent.id = 'json-editor-form-input';
|
|
6419
6732
|
JsonEditorFormInputComponent.decorators = [
|
|
6420
6733
|
{ type: i0.Component, args: [{
|
|
6421
6734
|
selector: 'vdr-json-editor-form-input',
|
|
6422
|
-
template: "<div #editor class=\"json-editor\" [class.invalid]=\"!isValid\" [style.height]=\"height || '300px'\"></div>\r\n<div class=\"error-message\">\r\n <span *ngIf=\"errorMessage\">{{ errorMessage }}</span>\r\n</div>\r\n",
|
|
6735
|
+
template: "<div #editor class=\"code-editor json-editor\" [class.invalid]=\"!isValid\" [style.height]=\"height || '300px'\"></div>\r\n<div class=\"error-message\">\r\n <span *ngIf=\"errorMessage\">{{ errorMessage }}</span>\r\n</div>\r\n",
|
|
6423
6736
|
changeDetection: i0.ChangeDetectionStrategy.OnPush,
|
|
6424
|
-
styles: [".
|
|
6737
|
+
styles: [".code-editor{min-height:6rem;background-color:var(--color-json-editor-background-color);color:var(--color-json-editor-text);border:1px solid var(--color-component-border-200);border-radius:3px;padding:6px;-moz-tab-size:4;tab-size:4;font-family:\"Source Code Pro\",\"Lucida Console\",Monaco,monospace;font-size:14px;font-weight:400;height:340px;letter-spacing:normal;line-height:20px;resize:both;text-align:initial;min-width:200px}.code-editor:focus{border-color:var(--color-primary-500)}.code-editor.invalid{border-color:var(--clr-forms-invalid-color)}.error-message{min-height:1rem;color:var(--color-json-editor-error)}.code-editor ::ng-deep .je-string{color:var(--color-json-editor-string)}.code-editor ::ng-deep .je-number{color:var(--color-json-editor-number)}.code-editor ::ng-deep .je-boolean{color:var(--color-json-editor-boolean)}.code-editor ::ng-deep .je-null{color:var(--color-json-editor-null)}.code-editor ::ng-deep .je-key{color:var(--color-json-editor-key)}.code-editor ::ng-deep .je-error{-webkit-text-decoration-line:underline;text-decoration-line:underline;-webkit-text-decoration-style:wavy;text-decoration-style:wavy;-webkit-text-decoration-color:var(--color-json-editor-error);text-decoration-color:var(--color-json-editor-error)}\n"]
|
|
6425
6738
|
},] }
|
|
6426
6739
|
];
|
|
6427
6740
|
JsonEditorFormInputComponent.ctorParameters = function () { return [
|
|
6428
6741
|
{ type: i0.ChangeDetectorRef }
|
|
6429
|
-
]; };
|
|
6430
|
-
JsonEditorFormInputComponent.propDecorators = {
|
|
6431
|
-
editorElementRef: [{ type: i0.ViewChild, args: ['editor',] }]
|
|
6432
|
-
};
|
|
6742
|
+
]; };
|
|
6433
6743
|
|
|
6434
6744
|
/**
|
|
6435
6745
|
* ConfigArg values are always stored as strings. If they are not primitives, then
|
|
@@ -7030,6 +7340,8 @@
|
|
|
7030
7340
|
this.options = options;
|
|
7031
7341
|
this._selection = [];
|
|
7032
7342
|
this.items = [];
|
|
7343
|
+
this.selectionChangesSubject = new rxjs.Subject();
|
|
7344
|
+
this.selectionChanges$ = this.selectionChangesSubject.asObservable();
|
|
7033
7345
|
}
|
|
7034
7346
|
Object.defineProperty(SelectionManager.prototype, "selection", {
|
|
7035
7347
|
get: function () {
|
|
@@ -7078,17 +7390,63 @@
|
|
|
7078
7390
|
}
|
|
7079
7391
|
// Make the selection mutable
|
|
7080
7392
|
this._selection = this._selection.map(function (x) { return (Object.assign({}, x)); });
|
|
7393
|
+
this.invokeOnSelectionChangeHandler();
|
|
7081
7394
|
};
|
|
7082
7395
|
SelectionManager.prototype.selectMultiple = function (items) {
|
|
7083
7396
|
this._selection = items;
|
|
7397
|
+
this.invokeOnSelectionChangeHandler();
|
|
7398
|
+
};
|
|
7399
|
+
SelectionManager.prototype.clearSelection = function () {
|
|
7400
|
+
this._selection = [];
|
|
7401
|
+
this.invokeOnSelectionChangeHandler();
|
|
7084
7402
|
};
|
|
7085
7403
|
SelectionManager.prototype.isSelected = function (item) {
|
|
7086
7404
|
var _this = this;
|
|
7087
7405
|
return !!this._selection.find(function (a) { return _this.options.itemsAreEqual(a, item); });
|
|
7088
7406
|
};
|
|
7407
|
+
SelectionManager.prototype.areAllCurrentItemsSelected = function () {
|
|
7408
|
+
var _this = this;
|
|
7409
|
+
if (!this.items || this.items.length === 0) {
|
|
7410
|
+
return false;
|
|
7411
|
+
}
|
|
7412
|
+
return this.items.every(function (a) { return _this._selection.find(function (b) { return _this.options.itemsAreEqual(a, b); }); });
|
|
7413
|
+
};
|
|
7414
|
+
SelectionManager.prototype.toggleSelectAll = function () {
|
|
7415
|
+
var e_1, _a;
|
|
7416
|
+
var _this = this;
|
|
7417
|
+
if (this.areAllCurrentItemsSelected()) {
|
|
7418
|
+
this._selection = this._selection.filter(function (a) { return !_this.items.find(function (b) { return _this.options.itemsAreEqual(a, b); }); });
|
|
7419
|
+
}
|
|
7420
|
+
else {
|
|
7421
|
+
this._selection = this._selection.slice(0);
|
|
7422
|
+
var _loop_1 = function (item) {
|
|
7423
|
+
if (!this_1._selection.find(function (a) { return _this.options.itemsAreEqual(a, item); })) {
|
|
7424
|
+
this_1._selection.push(item);
|
|
7425
|
+
}
|
|
7426
|
+
};
|
|
7427
|
+
var this_1 = this;
|
|
7428
|
+
try {
|
|
7429
|
+
for (var _b = __values(this.items), _c = _b.next(); !_c.done; _c = _b.next()) {
|
|
7430
|
+
var item = _c.value;
|
|
7431
|
+
_loop_1(item);
|
|
7432
|
+
}
|
|
7433
|
+
}
|
|
7434
|
+
catch (e_1_1) { e_1 = { error: e_1_1 }; }
|
|
7435
|
+
finally {
|
|
7436
|
+
try {
|
|
7437
|
+
if (_c && !_c.done && (_a = _b.return)) _a.call(_b);
|
|
7438
|
+
}
|
|
7439
|
+
finally { if (e_1) throw e_1.error; }
|
|
7440
|
+
}
|
|
7441
|
+
}
|
|
7442
|
+
this.invokeOnSelectionChangeHandler();
|
|
7443
|
+
};
|
|
7089
7444
|
SelectionManager.prototype.lastSelected = function () {
|
|
7090
7445
|
return this._selection[this._selection.length - 1];
|
|
7091
7446
|
};
|
|
7447
|
+
SelectionManager.prototype.invokeOnSelectionChangeHandler = function () {
|
|
7448
|
+
this.selectionChangesSubject.next(this._selection);
|
|
7449
|
+
};
|
|
7092
7450
|
return SelectionManager;
|
|
7093
7451
|
}());
|
|
7094
7452
|
|
|
@@ -7507,6 +7865,7 @@
|
|
|
7507
7865
|
TextareaFormInputComponent,
|
|
7508
7866
|
RichTextFormInputComponent,
|
|
7509
7867
|
JsonEditorFormInputComponent,
|
|
7868
|
+
HtmlEditorFormInputComponent,
|
|
7510
7869
|
ProductMultiSelectorFormInputComponent,
|
|
7511
7870
|
CombinationModeFormInputComponent,
|
|
7512
7871
|
];
|
|
@@ -7690,7 +8049,7 @@
|
|
|
7690
8049
|
ActionBarLeftComponent.decorators = [
|
|
7691
8050
|
{ type: i0.Component, args: [{
|
|
7692
8051
|
selector: 'vdr-ab-left',
|
|
7693
|
-
template: "
|
|
8052
|
+
template: " <ng-content></ng-content> "
|
|
7694
8053
|
},] }
|
|
7695
8054
|
];
|
|
7696
8055
|
ActionBarLeftComponent.propDecorators = {
|
|
@@ -7705,7 +8064,7 @@
|
|
|
7705
8064
|
ActionBarRightComponent.decorators = [
|
|
7706
8065
|
{ type: i0.Component, args: [{
|
|
7707
8066
|
selector: 'vdr-ab-right',
|
|
7708
|
-
template: "
|
|
8067
|
+
template: " <ng-content></ng-content> "
|
|
7709
8068
|
},] }
|
|
7710
8069
|
];
|
|
7711
8070
|
ActionBarRightComponent.propDecorators = {
|
|
@@ -7720,7 +8079,7 @@
|
|
|
7720
8079
|
{ type: i0.Component, args: [{
|
|
7721
8080
|
selector: 'vdr-action-bar',
|
|
7722
8081
|
template: "<div class=\"left-content\" [class.grow]=\"left?.grow\"><ng-content select=\"vdr-ab-left\"></ng-content></div>\r\n<div class=\"right-content\" [class.grow]=\"right?.grow\"><ng-content select=\"vdr-ab-right\"></ng-content></div>\r\n",
|
|
7723
|
-
styles: [":host{display:flex;justify-content:space-between;align-items:baseline;background-color:var(--color-component-bg-100);position:sticky;top:-24px;z-index:25;border-bottom:1px solid var(--color-component-border-200)}:host>.grow{flex:1}\n"]
|
|
8082
|
+
styles: [":host{display:flex;justify-content:space-between;align-items:baseline;background-color:var(--color-component-bg-100);position:sticky;top:-24px;z-index:25;border-bottom:1px solid var(--color-component-border-200);flex-direction:column-reverse}:host>.grow{flex:1}:host .right-content{width:100%;display:flex;justify-content:flex-end}:host ::ng-deep vdr-ab-right>*:last-child{margin-right:0}@media screen and (min-width: 768px){:host{flex-direction:row}:host .right-content{width:initial}}\n"]
|
|
7724
8083
|
},] }
|
|
7725
8084
|
];
|
|
7726
8085
|
ActionBarComponent.propDecorators = {
|
|
@@ -7964,7 +8323,7 @@
|
|
|
7964
8323
|
var e_1, _a;
|
|
7965
8324
|
if (this.assets) {
|
|
7966
8325
|
var _loop_1 = function (asset) {
|
|
7967
|
-
// Update
|
|
8326
|
+
// Update any selected assets with any changes
|
|
7968
8327
|
var match = this_1.assets.find(function (a) { return a.id === asset.id; });
|
|
7969
8328
|
if (match) {
|
|
7970
8329
|
Object.assign(asset, match);
|
|
@@ -8507,7 +8866,7 @@
|
|
|
8507
8866
|
return new SingleSearchSelectionModel();
|
|
8508
8867
|
}
|
|
8509
8868
|
|
|
8510
|
-
var ɵ0$
|
|
8869
|
+
var ɵ0$2 = SingleSearchSelectionModelFactory;
|
|
8511
8870
|
var AssetSearchInputComponent = /** @class */ (function () {
|
|
8512
8871
|
function AssetSearchInputComponent() {
|
|
8513
8872
|
var _this = this;
|
|
@@ -8585,28 +8944,162 @@
|
|
|
8585
8944
|
this.lastTagIds = tags.map(function (t) { return t.id; });
|
|
8586
8945
|
}
|
|
8587
8946
|
};
|
|
8588
|
-
AssetSearchInputComponent.prototype.isSearchHeaderSelected = function () {
|
|
8589
|
-
return this.selectComponent.itemsList.markedIndex === -1;
|
|
8947
|
+
AssetSearchInputComponent.prototype.isSearchHeaderSelected = function () {
|
|
8948
|
+
return this.selectComponent.itemsList.markedIndex === -1;
|
|
8949
|
+
};
|
|
8950
|
+
AssetSearchInputComponent.prototype.addTagFn = function (item) {
|
|
8951
|
+
return { label: item };
|
|
8952
|
+
};
|
|
8953
|
+
return AssetSearchInputComponent;
|
|
8954
|
+
}());
|
|
8955
|
+
AssetSearchInputComponent.decorators = [
|
|
8956
|
+
{ type: i0.Component, args: [{
|
|
8957
|
+
selector: 'vdr-asset-search-input',
|
|
8958
|
+
template: "<ng-select\r\n [addTag]=\"addTagFn\"\r\n [placeholder]=\"'catalog.search-asset-name-or-tag' | translate\"\r\n [items]=\"tags\"\r\n [searchFn]=\"filterTagResults\"\r\n [hideSelected]=\"true\"\r\n [multiple]=\"true\"\r\n [markFirst]=\"false\"\r\n (change)=\"onSelectChange($event)\"\r\n #selectComponent\r\n>\r\n <ng-template ng-header-tmp>\r\n <div\r\n class=\"search-header\"\r\n *ngIf=\"selectComponent.searchTerm\"\r\n [class.selected]=\"isSearchHeaderSelected()\"\r\n (click)=\"selectComponent.selectTag()\"\r\n >\r\n {{ 'catalog.search-for-term' | translate }}: {{ selectComponent.searchTerm }}\r\n </div>\r\n </ng-template>\r\n <ng-template ng-label-tmp let-item=\"item\" let-clear=\"clear\">\r\n <ng-container *ngIf=\"item.value\">\r\n <vdr-chip [colorFrom]=\"item.value\" icon=\"close\" (iconClick)=\"clear(item)\"><clr-icon shape=\"tag\" class=\"mr2\"></clr-icon> {{ item.value }}</vdr-chip>\r\n </ng-container>\r\n <ng-container *ngIf=\"!item.value\">\r\n <vdr-chip [icon]=\"'times'\" (iconClick)=\"clear(item)\">\"{{ item.label || item }}\"</vdr-chip>\r\n </ng-container>\r\n </ng-template>\r\n <ng-template ng-option-tmp let-item=\"item\" let-index=\"index\" let-search=\"searchTerm\">\r\n <ng-container *ngIf=\"item.value\">\r\n <vdr-chip [colorFrom]=\"item.value\"><clr-icon shape=\"tag\" class=\"mr2\"></clr-icon> {{ item.value }}</vdr-chip>\r\n </ng-container>\r\n </ng-template>\r\n</ng-select>\r\n",
|
|
8959
|
+
changeDetection: i0.ChangeDetectionStrategy.OnPush,
|
|
8960
|
+
providers: [{ provide: ngSelect.SELECTION_MODEL_FACTORY, useValue: ɵ0$2 }],
|
|
8961
|
+
styles: [":host{display:block;width:100%}:host ::ng-deep .ng-select.ng-select-multiple .ng-select-container .ng-value-container .ng-value{background:none;margin:0}:host ::ng-deep .ng-dropdown-panel-items div.ng-option:last-child{display:none}:host ::ng-deep .ng-dropdown-panel .ng-dropdown-header{border:none;padding:0}:host ::ng-deep .ng-select.ng-select-multiple .ng-select-container .ng-value-container{padding:0}:host ::ng-deep .ng-select.ng-select-multiple .ng-select-container .ng-value-container .ng-placeholder{padding-left:8px}ng-select{width:100%;min-width:300px;margin-right:12px}.search-header{padding:8px 10px;border-bottom:1px solid var(--color-component-border-100);cursor:pointer}.search-header.selected,.search-header:hover{background-color:var(--color-component-bg-200)}\n"]
|
|
8962
|
+
},] }
|
|
8963
|
+
];
|
|
8964
|
+
AssetSearchInputComponent.propDecorators = {
|
|
8965
|
+
tags: [{ type: i0.Input }],
|
|
8966
|
+
searchTermChange: [{ type: i0.Output }],
|
|
8967
|
+
tagsChange: [{ type: i0.Output }],
|
|
8968
|
+
selectComponent: [{ type: i0.ViewChild, args: ['selectComponent', { static: true },] }]
|
|
8969
|
+
};
|
|
8970
|
+
|
|
8971
|
+
var BulkActionRegistryService = /** @class */ (function () {
|
|
8972
|
+
function BulkActionRegistryService() {
|
|
8973
|
+
this.locationBulActionMap = new Map();
|
|
8974
|
+
}
|
|
8975
|
+
BulkActionRegistryService.prototype.registerBulkAction = function (bulkAction) {
|
|
8976
|
+
if (!this.locationBulActionMap.has(bulkAction.location)) {
|
|
8977
|
+
this.locationBulActionMap.set(bulkAction.location, new Set([bulkAction]));
|
|
8978
|
+
}
|
|
8979
|
+
else {
|
|
8980
|
+
// tslint:disable-next-line:no-non-null-assertion
|
|
8981
|
+
this.locationBulActionMap.get(bulkAction.location).add(bulkAction);
|
|
8982
|
+
}
|
|
8983
|
+
};
|
|
8984
|
+
BulkActionRegistryService.prototype.getBulkActionsForLocation = function (id) {
|
|
8985
|
+
var _a, _b;
|
|
8986
|
+
return __spreadArray([], __read(((_b = (_a = this.locationBulActionMap.get(id)) === null || _a === void 0 ? void 0 : _a.values()) !== null && _b !== void 0 ? _b : [])));
|
|
8987
|
+
};
|
|
8988
|
+
return BulkActionRegistryService;
|
|
8989
|
+
}());
|
|
8990
|
+
BulkActionRegistryService.ɵprov = i0__namespace.ɵɵdefineInjectable({ factory: function BulkActionRegistryService_Factory() { return new BulkActionRegistryService(); }, token: BulkActionRegistryService, providedIn: "root" });
|
|
8991
|
+
BulkActionRegistryService.decorators = [
|
|
8992
|
+
{ type: i0.Injectable, args: [{
|
|
8993
|
+
providedIn: 'root',
|
|
8994
|
+
},] }
|
|
8995
|
+
];
|
|
8996
|
+
|
|
8997
|
+
var BulkActionMenuComponent = /** @class */ (function () {
|
|
8998
|
+
function BulkActionMenuComponent(bulkActionRegistryService, injector, route, dataService, changeDetectorRef) {
|
|
8999
|
+
this.bulkActionRegistryService = bulkActionRegistryService;
|
|
9000
|
+
this.injector = injector;
|
|
9001
|
+
this.route = route;
|
|
9002
|
+
this.dataService = dataService;
|
|
9003
|
+
this.changeDetectorRef = changeDetectorRef;
|
|
9004
|
+
this.userPermissions = [];
|
|
9005
|
+
}
|
|
9006
|
+
BulkActionMenuComponent.prototype.ngOnInit = function () {
|
|
9007
|
+
var _this = this;
|
|
9008
|
+
var actionsForLocation = this.bulkActionRegistryService.getBulkActionsForLocation(this.locationId);
|
|
9009
|
+
this.actions$ = this.selectionManager.selectionChanges$.pipe(operators.switchMap(function (selection) {
|
|
9010
|
+
return Promise.all(actionsForLocation.map(function (action) { return __awaiter(_this, void 0, void 0, function () {
|
|
9011
|
+
var display, translationVars, isVisibleFn, getTranslationVarsFn, functionContext;
|
|
9012
|
+
return __generator(this, function (_b) {
|
|
9013
|
+
switch (_b.label) {
|
|
9014
|
+
case 0:
|
|
9015
|
+
display = true;
|
|
9016
|
+
translationVars = {};
|
|
9017
|
+
isVisibleFn = action.isVisible;
|
|
9018
|
+
getTranslationVarsFn = action.getTranslationVars;
|
|
9019
|
+
functionContext = {
|
|
9020
|
+
injector: this.injector,
|
|
9021
|
+
hostComponent: this.hostComponent,
|
|
9022
|
+
route: this.route,
|
|
9023
|
+
selection: selection,
|
|
9024
|
+
};
|
|
9025
|
+
if (!(typeof isVisibleFn === 'function')) return [3 /*break*/, 2];
|
|
9026
|
+
return [4 /*yield*/, isVisibleFn(functionContext)];
|
|
9027
|
+
case 1:
|
|
9028
|
+
display = _b.sent();
|
|
9029
|
+
_b.label = 2;
|
|
9030
|
+
case 2:
|
|
9031
|
+
if (!(typeof getTranslationVarsFn === 'function')) return [3 /*break*/, 4];
|
|
9032
|
+
return [4 /*yield*/, getTranslationVarsFn(functionContext)];
|
|
9033
|
+
case 3:
|
|
9034
|
+
translationVars = _b.sent();
|
|
9035
|
+
_b.label = 4;
|
|
9036
|
+
case 4: return [2 /*return*/, Object.assign(Object.assign({}, action), { display: display, translationVars: translationVars })];
|
|
9037
|
+
}
|
|
9038
|
+
});
|
|
9039
|
+
}); }));
|
|
9040
|
+
}));
|
|
9041
|
+
this.subscription = this.dataService.client
|
|
9042
|
+
.userStatus()
|
|
9043
|
+
.mapStream(function (_b) {
|
|
9044
|
+
var userStatus = _b.userStatus;
|
|
9045
|
+
_this.userPermissions = userStatus.permissions;
|
|
9046
|
+
})
|
|
9047
|
+
.subscribe();
|
|
9048
|
+
};
|
|
9049
|
+
BulkActionMenuComponent.prototype.ngOnDestroy = function () {
|
|
9050
|
+
var _a;
|
|
9051
|
+
(_a = this.subscription) === null || _a === void 0 ? void 0 : _a.unsubscribe();
|
|
9052
|
+
};
|
|
9053
|
+
BulkActionMenuComponent.prototype.hasPermissions = function (bulkAction) {
|
|
9054
|
+
if (!this.userPermissions) {
|
|
9055
|
+
return false;
|
|
9056
|
+
}
|
|
9057
|
+
if (!bulkAction.requiresPermission) {
|
|
9058
|
+
return true;
|
|
9059
|
+
}
|
|
9060
|
+
if (typeof bulkAction.requiresPermission === 'string') {
|
|
9061
|
+
return this.userPermissions.includes(bulkAction.requiresPermission);
|
|
9062
|
+
}
|
|
9063
|
+
if (typeof bulkAction.requiresPermission === 'function') {
|
|
9064
|
+
return bulkAction.requiresPermission(this.userPermissions);
|
|
9065
|
+
}
|
|
9066
|
+
};
|
|
9067
|
+
BulkActionMenuComponent.prototype.actionClick = function (event, action) {
|
|
9068
|
+
var _this = this;
|
|
9069
|
+
action.onClick({
|
|
9070
|
+
injector: this.injector,
|
|
9071
|
+
event: event,
|
|
9072
|
+
route: this.route,
|
|
9073
|
+
selection: this.selectionManager.selection,
|
|
9074
|
+
hostComponent: this.hostComponent,
|
|
9075
|
+
clearSelection: function () { return _this.selectionManager.clearSelection(); },
|
|
9076
|
+
});
|
|
8590
9077
|
};
|
|
8591
|
-
|
|
8592
|
-
|
|
9078
|
+
BulkActionMenuComponent.prototype.clearSelection = function () {
|
|
9079
|
+
this.selectionManager.clearSelection();
|
|
9080
|
+
this.changeDetectorRef.markForCheck();
|
|
8593
9081
|
};
|
|
8594
|
-
return
|
|
9082
|
+
return BulkActionMenuComponent;
|
|
8595
9083
|
}());
|
|
8596
|
-
|
|
9084
|
+
BulkActionMenuComponent.decorators = [
|
|
8597
9085
|
{ type: i0.Component, args: [{
|
|
8598
|
-
selector: 'vdr-
|
|
8599
|
-
template: "<
|
|
9086
|
+
selector: 'vdr-bulk-action-menu',
|
|
9087
|
+
template: "<vdr-dropdown *ngIf=\"actions$ | async as actions\">\r\n <button\r\n class=\"btn btn-sm btn-outline mr1\"\r\n vdrDropdownTrigger\r\n [disabled]=\"!selectionManager.selection?.length\"\r\n [class.hidden]=\"!selectionManager.selection?.length\"\r\n >\r\n <clr-icon shape=\"file-group\"></clr-icon>\r\n {{ 'common.with-selected' | translate: { count:selectionManager.selection.length } }}\r\n </button>\r\n <vdr-dropdown-menu vdrPosition=\"bottom-left\">\r\n <ng-container *ngIf=\"actions.length; else noActions\">\r\n <ng-container *ngFor=\"let action of actions\">\r\n <button\r\n *ngIf=\"action.display\"\r\n [disabled]=\"!hasPermissions(action)\"\r\n type=\"button\"\r\n vdrDropdownItem\r\n (click)=\"actionClick($event, action)\"\r\n >\r\n <clr-icon\r\n *ngIf=\"action.icon\"\r\n [attr.shape]=\"action.icon\"\r\n [ngClass]=\"action.iconClass || ''\"\r\n ></clr-icon>\r\n {{ action.label | translate: action.translationVars }}\r\n </button>\r\n </ng-container>\r\n </ng-container>\r\n <ng-template #noActions>\r\n <button type=\"button\" disabled vdrDropdownItem>{{ 'common.no-bulk-actions-available' | translate }}</button>\r\n </ng-template>\r\n </vdr-dropdown-menu>\r\n</vdr-dropdown>\r\n<button\r\n class=\"btn btn-sm btn-link\"\r\n (click)=\"clearSelection()\"\r\n [class.hidden]=\"!selectionManager.selection?.length\"\r\n>\r\n <clr-icon shape=\"times\"></clr-icon>\r\n {{ 'common.clear-selection' | translate }}\r\n</button>\r\n",
|
|
8600
9088
|
changeDetection: i0.ChangeDetectionStrategy.OnPush,
|
|
8601
|
-
|
|
8602
|
-
styles: [":host{display:block;width:100%}:host ::ng-deep .ng-select.ng-select-multiple .ng-select-container .ng-value-container .ng-value{background:none;margin:0}:host ::ng-deep .ng-dropdown-panel-items div.ng-option:last-child{display:none}:host ::ng-deep .ng-dropdown-panel .ng-dropdown-header{border:none;padding:0}:host ::ng-deep .ng-select.ng-select-multiple .ng-select-container .ng-value-container{padding:0}:host ::ng-deep .ng-select.ng-select-multiple .ng-select-container .ng-value-container .ng-placeholder{padding-left:8px}ng-select{width:100%;min-width:300px;margin-right:12px}.search-header{padding:8px 10px;border-bottom:1px solid var(--color-component-border-100);cursor:pointer}.search-header.selected,.search-header:hover{background-color:var(--color-component-bg-200)}\n"]
|
|
9089
|
+
styles: [":host{display:inline-flex;align-items:center}button.hidden{display:none}\n"]
|
|
8603
9090
|
},] }
|
|
8604
9091
|
];
|
|
8605
|
-
|
|
8606
|
-
|
|
8607
|
-
|
|
8608
|
-
|
|
8609
|
-
|
|
9092
|
+
BulkActionMenuComponent.ctorParameters = function () { return [
|
|
9093
|
+
{ type: BulkActionRegistryService },
|
|
9094
|
+
{ type: i0.Injector },
|
|
9095
|
+
{ type: i1$3.ActivatedRoute },
|
|
9096
|
+
{ type: DataService },
|
|
9097
|
+
{ type: i0.ChangeDetectorRef }
|
|
9098
|
+
]; };
|
|
9099
|
+
BulkActionMenuComponent.propDecorators = {
|
|
9100
|
+
locationId: [{ type: i0.Input }],
|
|
9101
|
+
selectionManager: [{ type: i0.Input }],
|
|
9102
|
+
hostComponent: [{ type: i0.Input }]
|
|
8610
9103
|
};
|
|
8611
9104
|
|
|
8612
9105
|
var ChannelAssignmentControlComponent = /** @class */ (function () {
|
|
@@ -9194,12 +9687,56 @@
|
|
|
9194
9687
|
* @docsCategory components
|
|
9195
9688
|
*/
|
|
9196
9689
|
var DataTableComponent = /** @class */ (function () {
|
|
9197
|
-
function DataTableComponent() {
|
|
9198
|
-
|
|
9199
|
-
this.
|
|
9690
|
+
function DataTableComponent(changeDetectorRef) {
|
|
9691
|
+
var _this = this;
|
|
9692
|
+
this.changeDetectorRef = changeDetectorRef;
|
|
9200
9693
|
this.pageChange = new i0.EventEmitter();
|
|
9201
9694
|
this.itemsPerPageChange = new i0.EventEmitter();
|
|
9695
|
+
/** @deprecated pass a SelectionManager instance instead */
|
|
9696
|
+
this.allSelectChange = new i0.EventEmitter();
|
|
9697
|
+
/** @deprecated pass a SelectionManager instance instead */
|
|
9698
|
+
this.rowSelectChange = new i0.EventEmitter();
|
|
9699
|
+
// This is used to apply a `user-select: none` CSS rule to the table,
|
|
9700
|
+
// which allows shift-click multi-row selection
|
|
9701
|
+
this.disableSelect = false;
|
|
9702
|
+
this.shiftDownHandler = function (event) {
|
|
9703
|
+
if (event.shiftKey && !_this.disableSelect) {
|
|
9704
|
+
_this.disableSelect = true;
|
|
9705
|
+
_this.changeDetectorRef.markForCheck();
|
|
9706
|
+
}
|
|
9707
|
+
};
|
|
9708
|
+
this.shiftUpHandler = function (event) {
|
|
9709
|
+
if (_this.disableSelect) {
|
|
9710
|
+
_this.disableSelect = false;
|
|
9711
|
+
_this.changeDetectorRef.markForCheck();
|
|
9712
|
+
}
|
|
9713
|
+
};
|
|
9202
9714
|
}
|
|
9715
|
+
DataTableComponent.prototype.ngOnInit = function () {
|
|
9716
|
+
var _this = this;
|
|
9717
|
+
var _a;
|
|
9718
|
+
if (typeof this.isRowSelectedFn === 'function' || this.selectionManager) {
|
|
9719
|
+
document.addEventListener('keydown', this.shiftDownHandler, { passive: true });
|
|
9720
|
+
document.addEventListener('keyup', this.shiftUpHandler, { passive: true });
|
|
9721
|
+
}
|
|
9722
|
+
this.subscription = (_a = this.selectionManager) === null || _a === void 0 ? void 0 : _a.selectionChanges$.subscribe(function () { return _this.changeDetectorRef.markForCheck(); });
|
|
9723
|
+
};
|
|
9724
|
+
DataTableComponent.prototype.ngOnChanges = function (changes) {
|
|
9725
|
+
var _a, _b;
|
|
9726
|
+
if (changes.items) {
|
|
9727
|
+
this.currentStart = this.itemsPerPage * (this.currentPage - 1);
|
|
9728
|
+
this.currentEnd = this.currentStart + ((_a = changes.items.currentValue) === null || _a === void 0 ? void 0 : _a.length);
|
|
9729
|
+
(_b = this.selectionManager) === null || _b === void 0 ? void 0 : _b.setCurrentItems(this.items);
|
|
9730
|
+
}
|
|
9731
|
+
};
|
|
9732
|
+
DataTableComponent.prototype.ngOnDestroy = function () {
|
|
9733
|
+
var _a;
|
|
9734
|
+
if (typeof this.isRowSelectedFn === 'function' || this.selectionManager) {
|
|
9735
|
+
document.removeEventListener('keydown', this.shiftDownHandler);
|
|
9736
|
+
document.removeEventListener('keyup', this.shiftUpHandler);
|
|
9737
|
+
}
|
|
9738
|
+
(_a = this.subscription) === null || _a === void 0 ? void 0 : _a.unsubscribe();
|
|
9739
|
+
};
|
|
9203
9740
|
DataTableComponent.prototype.ngAfterContentInit = function () {
|
|
9204
9741
|
this.rowTemplate = this.templateRefs.last;
|
|
9205
9742
|
};
|
|
@@ -9211,36 +9748,43 @@
|
|
|
9211
9748
|
return index;
|
|
9212
9749
|
}
|
|
9213
9750
|
};
|
|
9214
|
-
DataTableComponent.prototype.
|
|
9751
|
+
DataTableComponent.prototype.onToggleAllClick = function () {
|
|
9215
9752
|
var _a;
|
|
9216
|
-
|
|
9217
|
-
|
|
9218
|
-
|
|
9219
|
-
|
|
9753
|
+
this.allSelectChange.emit();
|
|
9754
|
+
(_a = this.selectionManager) === null || _a === void 0 ? void 0 : _a.toggleSelectAll();
|
|
9755
|
+
};
|
|
9756
|
+
DataTableComponent.prototype.onRowClick = function (item, event) {
|
|
9757
|
+
var _a;
|
|
9758
|
+
this.rowSelectChange.emit({ event: event, item: item });
|
|
9759
|
+
(_a = this.selectionManager) === null || _a === void 0 ? void 0 : _a.toggleSelection(item, event);
|
|
9220
9760
|
};
|
|
9221
9761
|
return DataTableComponent;
|
|
9222
9762
|
}());
|
|
9223
9763
|
DataTableComponent.decorators = [
|
|
9224
9764
|
{ type: i0.Component, args: [{
|
|
9225
9765
|
selector: 'vdr-data-table',
|
|
9226
|
-
template: "<ng-container *ngIf=\"!items || (items && items.length); else emptyPlaceholder\">\r\n <table class=\"table\">\r\n <thead>\r\n <tr>\r\n <th *ngIf=\"isRowSelectedFn\" class=\"align-middle\">\r\n <input\r\n type=\"checkbox\"\r\n clrCheckbox\r\n [checked]=\"allSelected\"\r\n (change)=\"
|
|
9766
|
+
template: "<ng-container *ngIf=\"!items || (items && items.length); else emptyPlaceholder\">\r\n <div class=\"bulk-actions\">\r\n <ng-content select=\"vdr-bulk-action-menu\"></ng-content>\r\n </div>\r\n <table class=\"table\" [class.no-select]=\"disableSelect\">\r\n <thead [class.items-selected]=\"selectionManager?.selection.length\">\r\n <tr>\r\n <th *ngIf=\"isRowSelectedFn || selectionManager\" class=\"align-middle\">\r\n <input\r\n type=\"checkbox\"\r\n clrCheckbox\r\n [checked]=\"allSelected ? allSelected : selectionManager?.areAllCurrentItemsSelected()\"\r\n (change)=\"onToggleAllClick()\"\r\n />\r\n </th>\r\n <th *ngFor=\"let header of columns?.toArray()\" class=\"left align-middle\" [class.expand]=\"header.expand\">\r\n <ng-container *ngTemplateOutlet=\"header.template\"></ng-container>\r\n </th>\r\n </tr>\r\n </thead>\r\n <tbody>\r\n <tr\r\n *ngFor=\"\r\n let item of items\r\n | paginate\r\n : {\r\n itemsPerPage: itemsPerPage,\r\n currentPage: currentPage,\r\n totalItems: totalItems\r\n };\r\n index as i;\r\n trackBy: trackByFn\r\n \"\r\n >\r\n <td *ngIf=\"isRowSelectedFn || selectionManager\" class=\"align-middle selection-col\">\r\n <input\r\n type=\"checkbox\"\r\n clrCheckbox\r\n [checked]=\"isRowSelectedFn ? isRowSelectedFn(item) : selectionManager?.isSelected(item)\"\r\n (click)=\"onRowClick(item, $event)\"\r\n />\r\n </td>\r\n <ng-container\r\n *ngTemplateOutlet=\"rowTemplate; context: { item: item, index: i }\"\r\n ></ng-container>\r\n </tr>\r\n </tbody>\r\n </table>\r\n <div class=\"table-footer\">\r\n <vdr-items-per-page-controls\r\n *ngIf=\"totalItems\"\r\n [itemsPerPage]=\"itemsPerPage\"\r\n (itemsPerPageChange)=\"itemsPerPageChange.emit($event)\"\r\n ></vdr-items-per-page-controls>\r\n <div *ngIf=\"totalItems\" class=\"p5\">\r\n {{ 'common.total-items' | translate: { currentStart, currentEnd, totalItems } }}\r\n </div>\r\n\r\n <vdr-pagination-controls\r\n *ngIf=\"totalItems\"\r\n [currentPage]=\"currentPage\"\r\n [itemsPerPage]=\"itemsPerPage\"\r\n [totalItems]=\"totalItems\"\r\n (pageChange)=\"pageChange.emit($event)\"\r\n ></vdr-pagination-controls>\r\n </div>\r\n</ng-container>\r\n<ng-template #emptyPlaceholder>\r\n <vdr-empty-placeholder [emptyStateLabel]=\"emptyStateLabel\"></vdr-empty-placeholder>\r\n</ng-template>\r\n",
|
|
9227
9767
|
changeDetection: i0.ChangeDetectionStrategy.OnPush,
|
|
9228
9768
|
providers: [ngxPagination.PaginationService],
|
|
9229
|
-
styles: [":host{display:block;max-width:100%;overflow:auto}thead th{position:sticky;top:24px;z-index:1}thead th.expand{width:100%}.table-footer{display:flex;align-items:baseline;justify-content:space-between;margin-top:6px}\n"]
|
|
9769
|
+
styles: [":host{display:block;max-width:100%;overflow:auto;position:relative}.bulk-actions{position:absolute;left:50px;top:30px;z-index:2}table.table{max-width:100vw;overflow-x:auto}table.no-select{-webkit-user-select:none;user-select:none}thead th{position:sticky;top:24px;z-index:1}thead th.expand{width:100%}thead.items-selected tr th{color:transparent}.selection-col{width:24px}.table-footer{display:flex;align-items:baseline;justify-content:space-between;margin-top:6px}\n"]
|
|
9230
9770
|
},] }
|
|
9231
9771
|
];
|
|
9772
|
+
DataTableComponent.ctorParameters = function () { return [
|
|
9773
|
+
{ type: i0.ChangeDetectorRef }
|
|
9774
|
+
]; };
|
|
9232
9775
|
DataTableComponent.propDecorators = {
|
|
9233
9776
|
items: [{ type: i0.Input }],
|
|
9234
9777
|
itemsPerPage: [{ type: i0.Input }],
|
|
9235
9778
|
currentPage: [{ type: i0.Input }],
|
|
9236
9779
|
totalItems: [{ type: i0.Input }],
|
|
9780
|
+
emptyStateLabel: [{ type: i0.Input }],
|
|
9781
|
+
selectionManager: [{ type: i0.Input }],
|
|
9782
|
+
pageChange: [{ type: i0.Output }],
|
|
9783
|
+
itemsPerPageChange: [{ type: i0.Output }],
|
|
9237
9784
|
allSelected: [{ type: i0.Input }],
|
|
9238
9785
|
isRowSelectedFn: [{ type: i0.Input }],
|
|
9239
|
-
emptyStateLabel: [{ type: i0.Input }],
|
|
9240
9786
|
allSelectChange: [{ type: i0.Output }],
|
|
9241
9787
|
rowSelectChange: [{ type: i0.Output }],
|
|
9242
|
-
pageChange: [{ type: i0.Output }],
|
|
9243
|
-
itemsPerPageChange: [{ type: i0.Output }],
|
|
9244
9788
|
columns: [{ type: i0.ContentChildren, args: [DataTableColumnComponent,] }],
|
|
9245
9789
|
templateRefs: [{ type: i0.ContentChildren, args: [i0.TemplateRef,] }]
|
|
9246
9790
|
};
|
|
@@ -9859,9 +10403,9 @@
|
|
|
9859
10403
|
DropdownMenuComponent.decorators = [
|
|
9860
10404
|
{ type: i0.Component, args: [{
|
|
9861
10405
|
selector: 'vdr-dropdown-menu',
|
|
9862
|
-
template: "\n <ng-template #menu>\n <div class=\"dropdown open\">\n <div class=\"dropdown-menu\">\n <div class=\"dropdown-content-wrapper\">\n <ng-content></ng-content>\n </div>\n </div>\n </div>\n </ng-template>\n ",
|
|
10406
|
+
template: "\n <ng-template #menu>\n <div class=\"dropdown open\">\n <div class=\"dropdown-menu\" [ngClass]=\"customClasses\">\n <div class=\"dropdown-content-wrapper\">\n <ng-content></ng-content>\n </div>\n </div>\n </div>\n </ng-template>\n ",
|
|
9863
10407
|
changeDetection: i0.ChangeDetectionStrategy.OnPush,
|
|
9864
|
-
styles: [".clear-backdrop{background-color:#ff69b4}.dropdown.open>.dropdown-menu{position:relative;top:0;height:100%;overflow-y:auto}:host{opacity:1;transition:opacity .3s}\n"]
|
|
10408
|
+
styles: [".clear-backdrop{background-color:#ff69b4}::ng-deep .dropdown-menu .dropdown-item{display:flex;align-items:center}::ng-deep .dropdown-menu .dropdown-item clr-icon{margin-right:3px}.dropdown.open>.dropdown-menu{position:relative;top:0;height:100%;overflow-y:auto}:host{opacity:1;transition:opacity .3s}\n"]
|
|
9865
10409
|
},] }
|
|
9866
10410
|
];
|
|
9867
10411
|
DropdownMenuComponent.ctorParameters = function () { return [
|
|
@@ -9871,6 +10415,7 @@
|
|
|
9871
10415
|
]; };
|
|
9872
10416
|
DropdownMenuComponent.propDecorators = {
|
|
9873
10417
|
position: [{ type: i0.Input, args: ['vdrPosition',] }],
|
|
10418
|
+
customClasses: [{ type: i0.Input }],
|
|
9874
10419
|
menuTemplate: [{ type: i0.ViewChild, args: ['menu', { static: true },] }]
|
|
9875
10420
|
};
|
|
9876
10421
|
|
|
@@ -10254,7 +10799,7 @@
|
|
|
10254
10799
|
FacetValueSelectorComponent.decorators = [
|
|
10255
10800
|
{ type: i0.Component, args: [{
|
|
10256
10801
|
selector: 'vdr-facet-value-selector',
|
|
10257
|
-
template: "<ng-select\r\n [items]=\"facetValues\"\r\n [addTag]=\"false\"\r\n [hideSelected]=\"true\"\r\n bindValue=\"id\"\r\n multiple=\"true\"\r\n appendTo=\"body\"\r\n bindLabel=\"name\"\r\n [disabled]=\"disabled || readonly\"\r\n [ngModel]=\"value\"\r\n (change)=\"onChange($event)\"\r\n>\r\n <ng-template ng-label-tmp let-item=\"item\" let-clear=\"clear\">\r\n <vdr-facet-value-chip\r\n [facetValue]=\"item.value\"\r\n [removable]=\"!readonly\"\r\n (remove)=\"clear(item)\"\r\n ></vdr-facet-value-chip>\r\n </ng-template>\r\n <ng-template ng-option-tmp let-item=\"item\">\r\n <vdr-facet-value-chip [facetValue]=\"item.value\" [removable]=\"false\"></vdr-facet-value-chip>\r\n </ng-template>\r\n</ng-select>\r\n",
|
|
10802
|
+
template: "<ng-select\r\n [items]=\"facetValues\"\r\n [addTag]=\"false\"\r\n [hideSelected]=\"true\"\r\n bindValue=\"id\"\r\n multiple=\"true\"\r\n appendTo=\"body\"\r\n bindLabel=\"name\"\r\n [disabled]=\"disabled || readonly\"\r\n [ngModel]=\"value\"\r\n (change)=\"onChange($event)\"\r\n>\r\n <ng-template ng-label-tmp let-item=\"item\" let-clear=\"clear\">\r\n <vdr-facet-value-chip\r\n *ngIf=\"item.value; else facetNotFound\"\r\n [facetValue]=\"item.value\"\r\n [removable]=\"!readonly\"\r\n (remove)=\"clear(item)\"\r\n ></vdr-facet-value-chip>\r\n <ng-template #facetNotFound>\r\n <vdr-chip colorType=\"error\" icon=\"times\" (iconClick)=\"clear(item)\">{{\r\n 'catalog.facet-value-not-available' | translate: { id: item.id }\r\n }}</vdr-chip>\r\n </ng-template>\r\n </ng-template>\r\n <ng-template ng-option-tmp let-item=\"item\">\r\n <vdr-facet-value-chip [facetValue]=\"item.value\" [removable]=\"false\"></vdr-facet-value-chip>\r\n </ng-template>\r\n</ng-select>\r\n",
|
|
10258
10803
|
changeDetection: i0.ChangeDetectionStrategy.OnPush,
|
|
10259
10804
|
providers: [
|
|
10260
10805
|
{
|
|
@@ -10599,7 +11144,7 @@
|
|
|
10599
11144
|
LanguageSelectorComponent.decorators = [
|
|
10600
11145
|
{ type: i0.Component, args: [{
|
|
10601
11146
|
selector: 'vdr-language-selector',
|
|
10602
|
-
template: "<ng-container *ngIf=\"1 < availableLanguageCodes?.length\">\r\n <vdr-dropdown>\r\n <button type=\"button\" class=\"btn btn-sm
|
|
11147
|
+
template: "<ng-container *ngIf=\"1 < availableLanguageCodes?.length\">\r\n <vdr-dropdown>\r\n <button type=\"button\" class=\"btn btn-sm\" vdrDropdownTrigger [disabled]=\"disabled\">\r\n <clr-icon shape=\"world\"></clr-icon>\r\n {{ 'common.language' | translate }}: {{ currentLanguageCode | localeLanguageName | uppercase }}\r\n <clr-icon shape=\"caret down\"></clr-icon>\r\n </button>\r\n <vdr-dropdown-menu vdrPosition=\"bottom-right\">\r\n <button\r\n type=\"button\"\r\n *ngFor=\"let code of availableLanguageCodes\"\r\n (click)=\"languageCodeChange.emit(code)\"\r\n vdrDropdownItem\r\n >\r\n <span>{{ code | localeLanguageName }}</span> <span class=\"code ml2\">{{ code }}</span>\r\n </button>\r\n </vdr-dropdown-menu>\r\n </vdr-dropdown>\r\n</ng-container>\r\n",
|
|
10603
11148
|
styles: [".code{color:var(--color-grey-400)}\n"]
|
|
10604
11149
|
},] }
|
|
10605
11150
|
];
|
|
@@ -10765,6 +11310,7 @@
|
|
|
10765
11310
|
case 'Delivered':
|
|
10766
11311
|
return 'success';
|
|
10767
11312
|
case 'Cancelled':
|
|
11313
|
+
case 'Draft':
|
|
10768
11314
|
return 'error';
|
|
10769
11315
|
case 'PaymentAuthorized':
|
|
10770
11316
|
case 'PaymentSettled':
|
|
@@ -10814,7 +11360,7 @@
|
|
|
10814
11360
|
pageChange: [{ type: i0.Output }]
|
|
10815
11361
|
};
|
|
10816
11362
|
|
|
10817
|
-
var ɵ0 = SingleSearchSelectionModelFactory;
|
|
11363
|
+
var ɵ0$1 = SingleSearchSelectionModelFactory;
|
|
10818
11364
|
var ProductSearchInputComponent = /** @class */ (function () {
|
|
10819
11365
|
function ProductSearchInputComponent() {
|
|
10820
11366
|
var _this = this;
|
|
@@ -10907,8 +11453,8 @@
|
|
|
10907
11453
|
selector: 'vdr-product-search-input',
|
|
10908
11454
|
template: "<ng-select\r\n [addTag]=\"addTagFn\"\r\n [placeholder]=\"'catalog.search-product-name-or-code' | translate\"\r\n [items]=\"facetValueResults\"\r\n [searchFn]=\"filterFacetResults\"\r\n [hideSelected]=\"true\"\r\n [multiple]=\"true\"\r\n [markFirst]=\"false\"\r\n (change)=\"onSelectChange($event)\"\r\n #selectComponent\r\n>\r\n <ng-template ng-header-tmp>\r\n <div\r\n class=\"search-header\"\r\n *ngIf=\"selectComponent.searchTerm\"\r\n [class.selected]=\"isSearchHeaderSelected()\"\r\n (click)=\"selectComponent.selectTag()\"\r\n >\r\n {{ 'catalog.search-for-term' | translate }}: {{ selectComponent.searchTerm }}\r\n </div>\r\n </ng-template>\r\n <ng-template ng-label-tmp let-item=\"item\" let-clear=\"clear\">\r\n <ng-container *ngIf=\"item.facetValue\">\r\n <vdr-facet-value-chip\r\n [facetValue]=\"item.facetValue\"\r\n [removable]=\"true\"\r\n (remove)=\"clear(item)\"\r\n ></vdr-facet-value-chip>\r\n </ng-container>\r\n <ng-container *ngIf=\"!item.facetValue\">\r\n <vdr-chip [icon]=\"'times'\" (iconClick)=\"clear(item)\">\"{{ item.label }}\"</vdr-chip>\r\n </ng-container>\r\n </ng-template>\r\n <ng-template ng-option-tmp let-item=\"item\" let-index=\"index\" let-search=\"searchTerm\">\r\n <ng-container *ngIf=\"item.facetValue\">\r\n <vdr-facet-value-chip [facetValue]=\"item.facetValue\" [removable]=\"false\"></vdr-facet-value-chip>\r\n </ng-container>\r\n </ng-template>\r\n</ng-select>\r\n",
|
|
10909
11455
|
changeDetection: i0.ChangeDetectionStrategy.OnPush,
|
|
10910
|
-
providers: [{ provide: ngSelect.SELECTION_MODEL_FACTORY, useValue: ɵ0 }],
|
|
10911
|
-
styles: [":host{margin-top:6px;display:block;width:100%}:host ::ng-deep .ng-select.ng-select-multiple .ng-select-container .ng-value-container .ng-value{background:none;margin:0}:host ::ng-deep .ng-dropdown-panel-items div.ng-option:last-child{display:none}:host ::ng-deep .ng-dropdown-panel .ng-dropdown-header{border:none;padding:0}:host ::ng-deep .ng-select.ng-select-multiple .ng-select-container .ng-value-container{padding:0}:host ::ng-deep .ng-select.ng-select-multiple .ng-select-container .ng-value-container .ng-placeholder{padding-left:8px}ng-select{width:100%;
|
|
11456
|
+
providers: [{ provide: ngSelect.SELECTION_MODEL_FACTORY, useValue: ɵ0$1 }],
|
|
11457
|
+
styles: [":host{margin-top:6px;display:block;width:100%}:host ::ng-deep .ng-select.ng-select-multiple .ng-select-container .ng-value-container .ng-value{background:none;margin:0}:host ::ng-deep .ng-dropdown-panel-items div.ng-option:last-child{display:none}:host ::ng-deep .ng-dropdown-panel .ng-dropdown-header{border:none;padding:0}:host ::ng-deep .ng-select.ng-select-multiple .ng-select-container .ng-value-container{padding:0}:host ::ng-deep .ng-select.ng-select-multiple .ng-select-container .ng-value-container .ng-placeholder{padding-left:8px}ng-select{width:100%;margin-right:12px}.search-header{padding:8px 10px;border-bottom:1px solid var(--color-component-border-100);cursor:pointer}.search-header.selected,.search-header:hover{background-color:var(--color-component-bg-200)}\n"]
|
|
10912
11458
|
},] }
|
|
10913
11459
|
];
|
|
10914
11460
|
ProductSearchInputComponent.propDecorators = {
|
|
@@ -10953,89 +11499,494 @@
|
|
|
10953
11499
|
var clear$ = this.productSelected.pipe(operators.mapTo([]));
|
|
10954
11500
|
this.searchResults$ = rxjs.concat(rxjs.of([]), rxjs.merge(searchItems$, clear$));
|
|
10955
11501
|
};
|
|
10956
|
-
ProductSelectorComponent.prototype.selectResult = function (product) {
|
|
10957
|
-
if (product) {
|
|
10958
|
-
this.productSelected.emit(product);
|
|
10959
|
-
this.ngSelect.clearModel();
|
|
10960
|
-
}
|
|
11502
|
+
ProductSelectorComponent.prototype.selectResult = function (product) {
|
|
11503
|
+
if (product) {
|
|
11504
|
+
this.productSelected.emit(product);
|
|
11505
|
+
this.ngSelect.clearModel();
|
|
11506
|
+
}
|
|
11507
|
+
};
|
|
11508
|
+
return ProductSelectorComponent;
|
|
11509
|
+
}());
|
|
11510
|
+
ProductSelectorComponent.decorators = [
|
|
11511
|
+
{ type: i0.Component, args: [{
|
|
11512
|
+
selector: 'vdr-product-selector',
|
|
11513
|
+
template: "<ng-select\r\n #autoComplete\r\n [items]=\"searchResults$ | async\"\r\n [addTag]=\"false\"\r\n [multiple]=\"false\"\r\n [hideSelected]=\"true\"\r\n [loading]=\"searchLoading\"\r\n [typeahead]=\"searchInput$\"\r\n [appendTo]=\"'body'\"\r\n [placeholder]=\"'settings.search-by-product-name-or-sku' | translate\"\r\n (change)=\"selectResult($event)\"\r\n>\r\n <ng-template ng-option-tmp let-item=\"item\">\r\n <img [src]=\"item.productAsset | assetPreview: 32\">\r\n {{ item.productVariantName }}\r\n <small class=\"sku\">{{ item.sku }}</small>\r\n </ng-template>\r\n</ng-select>\r\n",
|
|
11514
|
+
changeDetection: i0.ChangeDetectionStrategy.OnPush,
|
|
11515
|
+
styles: [":host{display:block}.sku{margin-left:12px;color:var(--color-grey-500)}img{border-radius:var(--border-radius-img)}\n"]
|
|
11516
|
+
},] }
|
|
11517
|
+
];
|
|
11518
|
+
ProductSelectorComponent.ctorParameters = function () { return [
|
|
11519
|
+
{ type: DataService }
|
|
11520
|
+
]; };
|
|
11521
|
+
ProductSelectorComponent.propDecorators = {
|
|
11522
|
+
productSelected: [{ type: i0.Output }],
|
|
11523
|
+
ngSelect: [{ type: i0.ViewChild, args: ['autoComplete', { static: true },] }]
|
|
11524
|
+
};
|
|
11525
|
+
|
|
11526
|
+
var RadioCardFieldsetComponent = /** @class */ (function () {
|
|
11527
|
+
function RadioCardFieldsetComponent(changeDetector) {
|
|
11528
|
+
this.changeDetector = changeDetector;
|
|
11529
|
+
this.selectItem = new i0.EventEmitter();
|
|
11530
|
+
this.groupName = 'radio-group-' + Math.random().toString(36);
|
|
11531
|
+
this.selectedIdChange$ = new rxjs.Subject();
|
|
11532
|
+
this.focussedId = undefined;
|
|
11533
|
+
this.idChange$ = new rxjs.Subject();
|
|
11534
|
+
}
|
|
11535
|
+
RadioCardFieldsetComponent.prototype.ngOnInit = function () {
|
|
11536
|
+
var _this = this;
|
|
11537
|
+
this.subscription = this.idChange$
|
|
11538
|
+
.pipe(operators.throttleTime(200))
|
|
11539
|
+
.subscribe(function (item) { return _this.selectItem.emit(item); });
|
|
11540
|
+
};
|
|
11541
|
+
RadioCardFieldsetComponent.prototype.ngOnChanges = function (changes) {
|
|
11542
|
+
if ('selectedItemId' in changes) {
|
|
11543
|
+
this.selectedIdChange$.next(this.selectedItemId);
|
|
11544
|
+
}
|
|
11545
|
+
};
|
|
11546
|
+
RadioCardFieldsetComponent.prototype.ngOnDestroy = function () {
|
|
11547
|
+
if (this.subscription) {
|
|
11548
|
+
this.subscription.unsubscribe();
|
|
11549
|
+
}
|
|
11550
|
+
};
|
|
11551
|
+
RadioCardFieldsetComponent.prototype.isSelected = function (item) {
|
|
11552
|
+
return this.selectedItemId === this.idFn(item);
|
|
11553
|
+
};
|
|
11554
|
+
RadioCardFieldsetComponent.prototype.isFocussed = function (item) {
|
|
11555
|
+
return this.focussedId === this.idFn(item);
|
|
11556
|
+
};
|
|
11557
|
+
RadioCardFieldsetComponent.prototype.selectChanged = function (item) {
|
|
11558
|
+
this.idChange$.next(item);
|
|
11559
|
+
};
|
|
11560
|
+
RadioCardFieldsetComponent.prototype.setFocussedId = function (item) {
|
|
11561
|
+
this.focussedId = item && this.idFn(item);
|
|
11562
|
+
};
|
|
11563
|
+
return RadioCardFieldsetComponent;
|
|
11564
|
+
}());
|
|
11565
|
+
RadioCardFieldsetComponent.decorators = [
|
|
11566
|
+
{ type: i0.Component, args: [{
|
|
11567
|
+
selector: 'vdr-radio-card-fieldset',
|
|
11568
|
+
template: "<fieldset><ng-content></ng-content></fieldset> ",
|
|
11569
|
+
changeDetection: i0.ChangeDetectionStrategy.OnPush,
|
|
11570
|
+
styles: ["fieldset{display:flex;align-items:flex-start}\n"]
|
|
11571
|
+
},] }
|
|
11572
|
+
];
|
|
11573
|
+
RadioCardFieldsetComponent.ctorParameters = function () { return [
|
|
11574
|
+
{ type: i0.ChangeDetectorRef }
|
|
11575
|
+
]; };
|
|
11576
|
+
RadioCardFieldsetComponent.propDecorators = {
|
|
11577
|
+
selectedItemId: [{ type: i0.Input }],
|
|
11578
|
+
idFn: [{ type: i0.Input }],
|
|
11579
|
+
selectItem: [{ type: i0.Output }]
|
|
11580
|
+
};
|
|
11581
|
+
|
|
11582
|
+
var RadioCardComponent = /** @class */ (function () {
|
|
11583
|
+
function RadioCardComponent(fieldset, changeDetector) {
|
|
11584
|
+
this.fieldset = fieldset;
|
|
11585
|
+
this.changeDetector = changeDetector;
|
|
11586
|
+
this.idChange$ = new rxjs.Subject();
|
|
11587
|
+
this.name = this.fieldset.groupName;
|
|
11588
|
+
}
|
|
11589
|
+
RadioCardComponent.prototype.ngOnInit = function () {
|
|
11590
|
+
var _this = this;
|
|
11591
|
+
this.subscription = this.fieldset.selectedIdChange$.subscribe(function (id) {
|
|
11592
|
+
_this.changeDetector.markForCheck();
|
|
11593
|
+
});
|
|
11594
|
+
};
|
|
11595
|
+
RadioCardComponent.prototype.ngOnDestroy = function () {
|
|
11596
|
+
if (this.subscription) {
|
|
11597
|
+
this.subscription.unsubscribe();
|
|
11598
|
+
}
|
|
11599
|
+
};
|
|
11600
|
+
RadioCardComponent.prototype.isSelected = function (item) {
|
|
11601
|
+
return this.fieldset.isSelected(item);
|
|
11602
|
+
};
|
|
11603
|
+
RadioCardComponent.prototype.isFocussed = function (item) {
|
|
11604
|
+
return this.fieldset.isFocussed(item);
|
|
11605
|
+
};
|
|
11606
|
+
RadioCardComponent.prototype.selectChanged = function (item) {
|
|
11607
|
+
this.fieldset.selectChanged(item);
|
|
11608
|
+
};
|
|
11609
|
+
RadioCardComponent.prototype.setFocussedId = function (item) {
|
|
11610
|
+
this.fieldset.setFocussedId(item);
|
|
11611
|
+
};
|
|
11612
|
+
RadioCardComponent.prototype.getItemId = function (item) {
|
|
11613
|
+
return this.fieldset.idFn(item);
|
|
11614
|
+
};
|
|
11615
|
+
return RadioCardComponent;
|
|
11616
|
+
}());
|
|
11617
|
+
RadioCardComponent.decorators = [
|
|
11618
|
+
{ type: i0.Component, args: [{
|
|
11619
|
+
selector: 'vdr-radio-card',
|
|
11620
|
+
template: "<label\r\n [ngClass]=\"{\r\n 'selected': isSelected(item),\r\n 'focussed': isFocussed(item)\r\n }\"\r\n class=\"radio-card\"\r\n>\r\n <input\r\n type=\"radio\"\r\n [name]=\"name\"\r\n [value]=\"getItemId(item)\"\r\n class=\"hidden\"\r\n (focus)=\"setFocussedId(item)\"\r\n (blur)=\"setFocussedId(undefined)\"\r\n (change)=\"selectChanged(item)\"\r\n />\r\n <vdr-select-toggle [selected]=\"isSelected(item)\" size=\"small\"></vdr-select-toggle>\r\n <div class=\"content\">\r\n <ng-content></ng-content>\r\n </div>\r\n</label>\r\n",
|
|
11621
|
+
exportAs: 'VdrRadioCard',
|
|
11622
|
+
changeDetection: i0.ChangeDetectionStrategy.OnPush,
|
|
11623
|
+
styles: [":host{display:inline-block}.radio-card{background:none;position:relative;display:block;border:1px solid var(--clr-btn-default-border-color, #0072a3);border-radius:var(--clr-btn-border-radius, .15rem);padding:6px;text-align:left;margin:6px}.radio-card:hover{cursor:pointer;outline:1px solid var(--color-primary-500)}.radio-card.selected{outline:1px solid var(--color-primary-500);background-color:var(--color-primary-100)}input.hidden{visibility:hidden;position:absolute}vdr-select-toggle{position:absolute;top:3px;left:3px}.content{margin-left:24px}\n"]
|
|
11624
|
+
},] }
|
|
11625
|
+
];
|
|
11626
|
+
RadioCardComponent.ctorParameters = function () { return [
|
|
11627
|
+
{ type: RadioCardFieldsetComponent },
|
|
11628
|
+
{ type: i0.ChangeDetectorRef }
|
|
11629
|
+
]; };
|
|
11630
|
+
RadioCardComponent.propDecorators = {
|
|
11631
|
+
item: [{ type: i0.Input }],
|
|
11632
|
+
itemTemplate: [{ type: i0.ContentChild, args: [i0.TemplateRef,] }]
|
|
11633
|
+
};
|
|
11634
|
+
|
|
11635
|
+
var ExternalImageDialogComponent = /** @class */ (function () {
|
|
11636
|
+
function ExternalImageDialogComponent() {
|
|
11637
|
+
this.previewLoaded = false;
|
|
11638
|
+
}
|
|
11639
|
+
ExternalImageDialogComponent.prototype.ngOnInit = function () {
|
|
11640
|
+
this.form = new forms.FormGroup({
|
|
11641
|
+
src: new forms.FormControl(this.existing ? this.existing.src : '', forms.Validators.required),
|
|
11642
|
+
title: new forms.FormControl(this.existing ? this.existing.title : ''),
|
|
11643
|
+
alt: new forms.FormControl(this.existing ? this.existing.alt : ''),
|
|
11644
|
+
});
|
|
11645
|
+
};
|
|
11646
|
+
ExternalImageDialogComponent.prototype.select = function () {
|
|
11647
|
+
this.resolveWith(this.form.value);
|
|
11648
|
+
};
|
|
11649
|
+
ExternalImageDialogComponent.prototype.onImageLoad = function (event) {
|
|
11650
|
+
this.previewLoaded = true;
|
|
11651
|
+
};
|
|
11652
|
+
ExternalImageDialogComponent.prototype.onImageError = function (event) {
|
|
11653
|
+
this.previewLoaded = false;
|
|
11654
|
+
};
|
|
11655
|
+
return ExternalImageDialogComponent;
|
|
11656
|
+
}());
|
|
11657
|
+
ExternalImageDialogComponent.decorators = [
|
|
11658
|
+
{ type: i0.Component, args: [{
|
|
11659
|
+
selector: 'vdr-external-image-dialog',
|
|
11660
|
+
template: "<div class=\"flex\">\r\n <form [formGroup]=\"form\" class=\"flex-spacer\" clrForm clrLayout=\"vertical\">\r\n <clr-input-container class=\"expand\">\r\n <label>{{ 'editor.image-src' | translate }}</label>\r\n <input clrInput type=\"text\" formControlName=\"src\" />\r\n </clr-input-container>\r\n <clr-input-container class=\"expand\">\r\n <label>{{ 'editor.image-title' | translate }}</label>\r\n <input clrInput type=\"text\" formControlName=\"title\" />\r\n </clr-input-container>\r\n <clr-input-container class=\"expand\">\r\n <label>{{ 'editor.image-alt' | translate }}</label>\r\n <input clrInput type=\"text\" formControlName=\"alt\" />\r\n </clr-input-container>\r\n </form>\r\n <div class=\"preview\">\r\n <img\r\n [src]=\"form.get('src')?.value\"\r\n [class.visible]=\"previewLoaded\"\r\n (load)=\"onImageLoad($event)\"\r\n (error)=\"onImageError($event)\"\r\n />\r\n <div class=\"placeholder\" *ngIf=\"!previewLoaded\">\r\n <clr-icon shape=\"image\" size=\"128\"></clr-icon>\r\n </div>\r\n </div>\r\n</div>\r\n\r\n<ng-template vdrDialogButtons>\r\n <button type=\"submit\" (click)=\"select()\" class=\"btn btn-primary\" [disabled]=\"form.invalid || !previewLoaded\">\r\n <ng-container *ngIf=\"existing; else doesNotExist\">{{ 'common.update' | translate }}</ng-container>\r\n <ng-template #doesNotExist>{{ 'editor.insert-image' | translate }}</ng-template>\r\n </button>\r\n</ng-template>\r\n",
|
|
11661
|
+
changeDetection: i0.ChangeDetectionStrategy.OnPush,
|
|
11662
|
+
styles: [".preview{display:flex;align-items:center;justify-content:center;max-width:150px;margin-left:12px}.preview img{max-width:100%;display:none}.preview img.visible{display:block}.preview .placeholder{color:var(--color-grey-300)}\n"]
|
|
11663
|
+
},] }
|
|
11664
|
+
];
|
|
11665
|
+
|
|
11666
|
+
var LinkDialogComponent = /** @class */ (function () {
|
|
11667
|
+
function LinkDialogComponent() {
|
|
11668
|
+
}
|
|
11669
|
+
LinkDialogComponent.prototype.ngOnInit = function () {
|
|
11670
|
+
this.form = new forms.FormGroup({
|
|
11671
|
+
href: new forms.FormControl(this.existing ? this.existing.href : '', forms.Validators.required),
|
|
11672
|
+
title: new forms.FormControl(this.existing ? this.existing.title : ''),
|
|
11673
|
+
});
|
|
11674
|
+
};
|
|
11675
|
+
LinkDialogComponent.prototype.remove = function () {
|
|
11676
|
+
this.resolveWith({
|
|
11677
|
+
title: '',
|
|
11678
|
+
href: '',
|
|
11679
|
+
});
|
|
11680
|
+
};
|
|
11681
|
+
LinkDialogComponent.prototype.select = function () {
|
|
11682
|
+
this.resolveWith(this.form.value);
|
|
11683
|
+
};
|
|
11684
|
+
return LinkDialogComponent;
|
|
11685
|
+
}());
|
|
11686
|
+
LinkDialogComponent.decorators = [
|
|
11687
|
+
{ type: i0.Component, args: [{
|
|
11688
|
+
selector: 'vdr-link-dialog',
|
|
11689
|
+
template: "<form [formGroup]=\"form\">\r\n <vdr-form-field [label]=\"'editor.link-href' | translate\" for=\"href\">\r\n <input id=\"href\" type=\"text\" formControlName=\"href\" />\r\n </vdr-form-field>\r\n <vdr-form-field [label]=\"'editor.link-title' | translate\" for=\"title\">\r\n <input id=\"title\" type=\"text\" formControlName=\"title\" />\r\n </vdr-form-field>\r\n</form>\r\n<ng-template vdrDialogButtons>\r\n <button type=\"button\" class=\"btn btn-secondary\" (click)=\"remove()\" *ngIf=\"existing\">\r\n <clr-icon shape=\"unlink\"></clr-icon> {{ 'editor.remove-link' | translate }}\r\n </button>\r\n <button type=\"submit\" (click)=\"select()\" class=\"btn btn-primary\" [disabled]=\"form.invalid\">\r\n {{ 'editor.set-link' | translate }}\r\n </button>\r\n</ng-template>\r\n",
|
|
11690
|
+
changeDetection: i0.ChangeDetectionStrategy.OnPush,
|
|
11691
|
+
styles: [""]
|
|
11692
|
+
},] }
|
|
11693
|
+
];
|
|
11694
|
+
|
|
11695
|
+
var ContextMenuService = /** @class */ (function () {
|
|
11696
|
+
function ContextMenuService() {
|
|
11697
|
+
this.menuIsVisible$ = new rxjs.BehaviorSubject(false);
|
|
11698
|
+
this.setContextMenuConfig$ = new rxjs.Subject();
|
|
11699
|
+
var source$ = this.setContextMenuConfig$.asObservable();
|
|
11700
|
+
var groupedConfig$ = source$.pipe(operators.bufferWhen(function () { return source$.pipe(operators.debounceTime(50)); }), operators.map(function (group) {
|
|
11701
|
+
return group.reduce(function (acc, cur) {
|
|
11702
|
+
var _b;
|
|
11703
|
+
var _a;
|
|
11704
|
+
if (!acc) {
|
|
11705
|
+
return cur;
|
|
11706
|
+
}
|
|
11707
|
+
else {
|
|
11708
|
+
if ((cur === null || cur === void 0 ? void 0 : cur.ref) === acc.ref) {
|
|
11709
|
+
(_b = acc.items).push.apply(_b, __spreadArray([], __read(((_a = cur === null || cur === void 0 ? void 0 : cur.items.filter(function (i) { return !acc.items.find(function (ai) { return ai.label === i.label; }); })) !== null && _a !== void 0 ? _a : []))));
|
|
11710
|
+
}
|
|
11711
|
+
}
|
|
11712
|
+
return acc;
|
|
11713
|
+
}, undefined);
|
|
11714
|
+
}));
|
|
11715
|
+
var visible$ = this.menuIsVisible$.pipe(operators.filter(function (val) { return val === true; }));
|
|
11716
|
+
var isVisible$ = this.menuIsVisible$.pipe(operators.delayWhen(function (value) { return (value ? rxjs.of(value) : rxjs.interval(250).pipe(operators.takeUntil(visible$))); }), operators.distinctUntilChanged());
|
|
11717
|
+
this.contextMenu$ = rxjs.combineLatest(groupedConfig$, isVisible$).pipe(operators.map(function (_b) {
|
|
11718
|
+
var _c = __read(_b, 2), config = _c[0], isVisible = _c[1];
|
|
11719
|
+
return (isVisible ? config : undefined);
|
|
11720
|
+
}));
|
|
11721
|
+
}
|
|
11722
|
+
ContextMenuService.prototype.setVisibility = function (isVisible) {
|
|
11723
|
+
this.menuIsVisible$.next(isVisible);
|
|
11724
|
+
};
|
|
11725
|
+
ContextMenuService.prototype.setContextMenu = function (config) {
|
|
11726
|
+
this.setContextMenuConfig$.next(config);
|
|
11727
|
+
};
|
|
11728
|
+
ContextMenuService.prototype.clearContextMenu = function () {
|
|
11729
|
+
this.setContextMenuConfig$.next(undefined);
|
|
11730
|
+
};
|
|
11731
|
+
return ContextMenuService;
|
|
11732
|
+
}());
|
|
11733
|
+
ContextMenuService.ɵprov = i0__namespace.ɵɵdefineInjectable({ factory: function ContextMenuService_Factory() { return new ContextMenuService(); }, token: ContextMenuService, providedIn: "root" });
|
|
11734
|
+
ContextMenuService.decorators = [
|
|
11735
|
+
{ type: i0.Injectable, args: [{ providedIn: 'root' },] }
|
|
11736
|
+
];
|
|
11737
|
+
ContextMenuService.ctorParameters = function () { return []; };
|
|
11738
|
+
|
|
11739
|
+
var ContextMenuComponent = /** @class */ (function () {
|
|
11740
|
+
function ContextMenuComponent(overlay, viewContainerRef, contextMenuService) {
|
|
11741
|
+
var _this = this;
|
|
11742
|
+
this.overlay = overlay;
|
|
11743
|
+
this.viewContainerRef = viewContainerRef;
|
|
11744
|
+
this.contextMenuService = contextMenuService;
|
|
11745
|
+
this.triggerIsHidden = new rxjs.BehaviorSubject(false);
|
|
11746
|
+
this.onScroll = function () {
|
|
11747
|
+
var _a;
|
|
11748
|
+
if ((_a = _this.overlayRef) === null || _a === void 0 ? void 0 : _a.hasAttached()) {
|
|
11749
|
+
_this.overlayRef.updatePosition();
|
|
11750
|
+
}
|
|
11751
|
+
};
|
|
11752
|
+
}
|
|
11753
|
+
ContextMenuComponent.prototype.ngAfterViewInit = function () {
|
|
11754
|
+
var _this = this;
|
|
11755
|
+
var _a;
|
|
11756
|
+
this.contentArea = document.querySelector('.content-area');
|
|
11757
|
+
this.menuPortal = new portal.TemplatePortal(this.menuTemplate, this.viewContainerRef);
|
|
11758
|
+
this.hideTrigger$ = this.triggerIsHidden.asObservable().pipe(operators.distinctUntilChanged());
|
|
11759
|
+
(_a = this.contentArea) === null || _a === void 0 ? void 0 : _a.addEventListener('scroll', this.onScroll, { passive: true });
|
|
11760
|
+
this.contextMenuSub = this.contextMenuService.contextMenu$.subscribe(function (contextMenuConfig) {
|
|
11761
|
+
var _a, _b, _c;
|
|
11762
|
+
(_a = _this.overlayRef) === null || _a === void 0 ? void 0 : _a.dispose();
|
|
11763
|
+
_this.menuConfig = contextMenuConfig;
|
|
11764
|
+
if (contextMenuConfig) {
|
|
11765
|
+
_this.overlayRef = _this.overlay.create({
|
|
11766
|
+
hasBackdrop: false,
|
|
11767
|
+
positionStrategy: _this.getPositionStrategy(contextMenuConfig.element),
|
|
11768
|
+
maxHeight: '70vh',
|
|
11769
|
+
});
|
|
11770
|
+
_this.overlayRef.attach(_this.menuPortal);
|
|
11771
|
+
_this.triggerIsHidden.next(false);
|
|
11772
|
+
var triggerButton_1 = _this.overlayRef.hostElement.querySelector('.context-menu-trigger');
|
|
11773
|
+
var editorMenu_1 = _this.editorMenuElement;
|
|
11774
|
+
if (triggerButton_1) {
|
|
11775
|
+
var overlapMarginPx_1 = 5;
|
|
11776
|
+
_this.hideTriggerHandler = function () {
|
|
11777
|
+
if (editorMenu_1 && triggerButton_1) {
|
|
11778
|
+
if (triggerButton_1.getBoundingClientRect().top + overlapMarginPx_1 <
|
|
11779
|
+
editorMenu_1.getBoundingClientRect().bottom) {
|
|
11780
|
+
_this.triggerIsHidden.next(true);
|
|
11781
|
+
}
|
|
11782
|
+
else {
|
|
11783
|
+
_this.triggerIsHidden.next(false);
|
|
11784
|
+
}
|
|
11785
|
+
}
|
|
11786
|
+
};
|
|
11787
|
+
(_b = _this.contentArea) === null || _b === void 0 ? void 0 : _b.addEventListener('scroll', _this.hideTriggerHandler, { passive: true });
|
|
11788
|
+
requestAnimationFrame(function () { var _a; return (_a = _this.hideTriggerHandler) === null || _a === void 0 ? void 0 : _a.call(_this); });
|
|
11789
|
+
}
|
|
11790
|
+
}
|
|
11791
|
+
else {
|
|
11792
|
+
if (_this.hideTriggerHandler) {
|
|
11793
|
+
(_c = _this.contentArea) === null || _c === void 0 ? void 0 : _c.removeEventListener('scroll', _this.hideTriggerHandler);
|
|
11794
|
+
}
|
|
11795
|
+
}
|
|
11796
|
+
});
|
|
11797
|
+
};
|
|
11798
|
+
ContextMenuComponent.prototype.triggerClick = function () {
|
|
11799
|
+
this.contextMenuService.setVisibility(true);
|
|
11800
|
+
};
|
|
11801
|
+
ContextMenuComponent.prototype.ngOnDestroy = function () {
|
|
11802
|
+
var _a, _b, _c, _d;
|
|
11803
|
+
(_a = this.overlayRef) === null || _a === void 0 ? void 0 : _a.dispose();
|
|
11804
|
+
(_b = this.contextMenuSub) === null || _b === void 0 ? void 0 : _b.unsubscribe();
|
|
11805
|
+
(_c = this.contentArea) === null || _c === void 0 ? void 0 : _c.removeEventListener('scroll', this.onScroll);
|
|
11806
|
+
if (this.hideTriggerHandler) {
|
|
11807
|
+
(_d = this.contentArea) === null || _d === void 0 ? void 0 : _d.removeEventListener('scroll', this.hideTriggerHandler);
|
|
11808
|
+
}
|
|
11809
|
+
};
|
|
11810
|
+
ContextMenuComponent.prototype.clickItem = function (item) {
|
|
11811
|
+
item.onClick();
|
|
11812
|
+
};
|
|
11813
|
+
ContextMenuComponent.prototype.getPositionStrategy = function (element) {
|
|
11814
|
+
var _e;
|
|
11815
|
+
var position = (_e = {},
|
|
11816
|
+
_e['top-left'] = {
|
|
11817
|
+
originX: 'start',
|
|
11818
|
+
originY: 'top',
|
|
11819
|
+
overlayX: 'start',
|
|
11820
|
+
overlayY: 'bottom',
|
|
11821
|
+
},
|
|
11822
|
+
_e['top-right'] = {
|
|
11823
|
+
originX: 'end',
|
|
11824
|
+
originY: 'top',
|
|
11825
|
+
overlayX: 'end',
|
|
11826
|
+
overlayY: 'bottom',
|
|
11827
|
+
},
|
|
11828
|
+
_e['bottom-left'] = {
|
|
11829
|
+
originX: 'start',
|
|
11830
|
+
originY: 'bottom',
|
|
11831
|
+
overlayX: 'start',
|
|
11832
|
+
overlayY: 'top',
|
|
11833
|
+
},
|
|
11834
|
+
_e['bottom-right'] = {
|
|
11835
|
+
originX: 'end',
|
|
11836
|
+
originY: 'bottom',
|
|
11837
|
+
overlayX: 'end',
|
|
11838
|
+
overlayY: 'top',
|
|
11839
|
+
},
|
|
11840
|
+
_e);
|
|
11841
|
+
var pos = position['top-left'];
|
|
11842
|
+
return this.overlay
|
|
11843
|
+
.position()
|
|
11844
|
+
.flexibleConnectedTo(element)
|
|
11845
|
+
.withPositions([pos, this.invertPosition(pos)])
|
|
11846
|
+
.withViewportMargin(0)
|
|
11847
|
+
.withLockedPosition(false)
|
|
11848
|
+
.withPush(false);
|
|
11849
|
+
};
|
|
11850
|
+
/** Inverts an overlay position. */
|
|
11851
|
+
ContextMenuComponent.prototype.invertPosition = function (pos) {
|
|
11852
|
+
var inverted = Object.assign({}, pos);
|
|
11853
|
+
inverted.originY = pos.originY === 'top' ? 'bottom' : 'top';
|
|
11854
|
+
inverted.overlayY = pos.overlayY === 'top' ? 'bottom' : 'top';
|
|
11855
|
+
return inverted;
|
|
10961
11856
|
};
|
|
10962
|
-
return
|
|
11857
|
+
return ContextMenuComponent;
|
|
10963
11858
|
}());
|
|
10964
|
-
|
|
11859
|
+
ContextMenuComponent.decorators = [
|
|
10965
11860
|
{ type: i0.Component, args: [{
|
|
10966
|
-
selector: 'vdr-
|
|
10967
|
-
template: "<ng-
|
|
11861
|
+
selector: 'vdr-context-menu',
|
|
11862
|
+
template: "<ng-template #contextMenu>\r\n <vdr-dropdown>\r\n <button class=\"context-menu-trigger\" vdrDropdownTrigger [class.hidden]=\"hideTrigger$ | async\" (click)=\"triggerClick()\">\r\n <clr-icon\r\n *ngIf=\"menuConfig?.iconShape as shape\"\r\n [attr.shape]=\"shape\"\r\n size=\"16\"\r\n class=\"mr2\"\r\n ></clr-icon>\r\n <span class=\"title-label\">{{ menuConfig?.title }}</span>\r\n </button>\r\n <vdr-dropdown-menu vdrPosition=\"bottom-right\" customClasses=\"context-menu\">\r\n <ng-container *ngFor=\"let item of menuConfig?.items\">\r\n <button\r\n class=\"context-menu-item\"\r\n *ngIf=\"item.enabled && item.separator !== true\"\r\n type=\"button\"\r\n (click)=\"clickItem(item)\"\r\n >\r\n <div *ngIf=\"item.iconClass\" class=\"cm-icon\" [ngClass]=\"item.iconClass\"></div>\r\n <clr-icon\r\n *ngIf=\"item.iconShape as shape\"\r\n [attr.shape]=\"shape\"\r\n size=\"16\"\r\n class=\"mr2\"\r\n ></clr-icon>\r\n {{ item.label }}\r\n </button>\r\n <div *ngIf=\"item.enabled && item.separator\" class=\"dropdown-divider\" role=\"separator\"></div>\r\n </ng-container>\r\n </vdr-dropdown-menu>\r\n </vdr-dropdown>\r\n</ng-template>\r\n",
|
|
10968
11863
|
changeDetection: i0.ChangeDetectionStrategy.OnPush,
|
|
10969
|
-
styles: [":
|
|
11864
|
+
styles: [".context-menu-trigger{margin:0;display:flex;align-items:center;border:1px solid var(--color-component-border-200);font-size:90%;color:var(--color-text-200);border-radius:var(--border-radius-input);background-color:var(--color-component-bg-100)}.title-label{padding-right:15px;position:relative}.title-label: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)}.context-menu-item{display:flex;align-items:center;width:100%;text-align:start;font-size:90%;color:var(--color-text-200);background-color:var(--color-component-bg-100);cursor:pointer;border:none}.context-menu-item:hover{background-color:var(--color-component-bg-200)}::ng-deep .dropdown-menu.context-menu{padding:0;background-color:var(--color-component-bg-100)}::ng-deep .context-menu-trigger{min-height:16px}::ng-deep .context-menu-trigger.hidden{visibility:hidden}::ng-deep .cm-icon.add-column{height:14px;width:4px;border:1px solid;margin:0 6px 0 8px;position:relative}::ng-deep .cm-icon.add-column:before{content:\"+\";position:absolute;font-size:16px;line-height:14px;left:-10px}::ng-deep .cm-icon.add-row{height:4px;width:14px;border:1px solid;margin:6px 4px 2px 0;position:relative}::ng-deep .cm-icon.add-row:before{content:\"+\";position:absolute;font-size:16px;line-height:14px;left:-2px;top:-10px}\n"]
|
|
10970
11865
|
},] }
|
|
10971
11866
|
];
|
|
10972
|
-
|
|
10973
|
-
{ type:
|
|
11867
|
+
ContextMenuComponent.ctorParameters = function () { return [
|
|
11868
|
+
{ type: overlay.Overlay },
|
|
11869
|
+
{ type: i0.ViewContainerRef },
|
|
11870
|
+
{ type: ContextMenuService }
|
|
10974
11871
|
]; };
|
|
10975
|
-
|
|
10976
|
-
|
|
10977
|
-
|
|
11872
|
+
ContextMenuComponent.propDecorators = {
|
|
11873
|
+
editorMenuElement: [{ type: i0.Input }],
|
|
11874
|
+
menuTemplate: [{ type: i0.ViewChild, args: ['contextMenu', { static: true },] }]
|
|
10978
11875
|
};
|
|
10979
11876
|
|
|
10980
|
-
var
|
|
10981
|
-
function
|
|
10982
|
-
this.
|
|
11877
|
+
var RawHtmlDialogComponent = /** @class */ (function () {
|
|
11878
|
+
function RawHtmlDialogComponent() {
|
|
11879
|
+
this.formControl = new forms.FormControl();
|
|
11880
|
+
this.config = {
|
|
11881
|
+
name: '',
|
|
11882
|
+
type: '',
|
|
11883
|
+
list: false,
|
|
11884
|
+
required: true,
|
|
11885
|
+
ui: { component: HtmlEditorFormInputComponent.id },
|
|
11886
|
+
};
|
|
10983
11887
|
}
|
|
10984
|
-
|
|
10985
|
-
this.
|
|
10986
|
-
src: new forms.FormControl(this.existing ? this.existing.src : '', forms.Validators.required),
|
|
10987
|
-
title: new forms.FormControl(this.existing ? this.existing.title : ''),
|
|
10988
|
-
alt: new forms.FormControl(this.existing ? this.existing.alt : ''),
|
|
10989
|
-
});
|
|
11888
|
+
RawHtmlDialogComponent.prototype.ngOnInit = function () {
|
|
11889
|
+
this.formControl.setValue(this.process(this.html));
|
|
10990
11890
|
};
|
|
10991
|
-
|
|
10992
|
-
|
|
11891
|
+
RawHtmlDialogComponent.prototype.process = function (str) {
|
|
11892
|
+
var div = document.createElement('div');
|
|
11893
|
+
div.innerHTML = str.trim();
|
|
11894
|
+
return this.format(div, 0).innerHTML.trim();
|
|
10993
11895
|
};
|
|
10994
|
-
|
|
10995
|
-
|
|
11896
|
+
/**
|
|
11897
|
+
* Taken from https://stackoverflow.com/a/26361620/772859
|
|
11898
|
+
*/
|
|
11899
|
+
RawHtmlDialogComponent.prototype.format = function (node, level) {
|
|
11900
|
+
if (level === void 0) { level = 0; }
|
|
11901
|
+
var indentBefore = new Array(level++ + 1).join('\t');
|
|
11902
|
+
var indentAfter = new Array(level - 1).join('\t');
|
|
11903
|
+
var textNode;
|
|
11904
|
+
// tslint:disable-next-line:prefer-for-of
|
|
11905
|
+
for (var i = 0; i < node.children.length; i++) {
|
|
11906
|
+
textNode = document.createTextNode('\n' + indentBefore);
|
|
11907
|
+
node.insertBefore(textNode, node.children[i]);
|
|
11908
|
+
this.format(node.children[i], level);
|
|
11909
|
+
if (node.lastElementChild === node.children[i]) {
|
|
11910
|
+
textNode = document.createTextNode('\n' + indentAfter);
|
|
11911
|
+
node.appendChild(textNode);
|
|
11912
|
+
}
|
|
11913
|
+
}
|
|
11914
|
+
return node;
|
|
10996
11915
|
};
|
|
10997
|
-
|
|
10998
|
-
this.
|
|
11916
|
+
RawHtmlDialogComponent.prototype.cancel = function () {
|
|
11917
|
+
this.resolveWith(undefined);
|
|
10999
11918
|
};
|
|
11000
|
-
|
|
11919
|
+
RawHtmlDialogComponent.prototype.select = function () {
|
|
11920
|
+
this.resolveWith(this.formControl.value);
|
|
11921
|
+
};
|
|
11922
|
+
return RawHtmlDialogComponent;
|
|
11001
11923
|
}());
|
|
11002
|
-
|
|
11924
|
+
RawHtmlDialogComponent.decorators = [
|
|
11003
11925
|
{ type: i0.Component, args: [{
|
|
11004
|
-
selector: 'vdr-
|
|
11005
|
-
template: "<
|
|
11926
|
+
selector: 'vdr-raw-html-dialog',
|
|
11927
|
+
template: "<vdr-dynamic-form-input\r\n [def]=\"config\"\r\n [control]=\"formControl\"\r\n ></vdr-dynamic-form-input>\r\n<ng-template vdrDialogButtons>\r\n <button type=\"button\" class=\"btn btn-secondary\" (click)=\"cancel()\">\r\n {{ 'common.cancel' | translate }}\r\n </button>\r\n <button type=\"submit\" (click)=\"select()\" class=\"btn btn-primary\" [disabled]=\"formControl.invalid\">\r\n {{ 'common.update' | translate }}\r\n </button>\r\n</ng-template>\r\n",
|
|
11006
11928
|
changeDetection: i0.ChangeDetectionStrategy.OnPush,
|
|
11007
|
-
styles: ["
|
|
11929
|
+
styles: [""]
|
|
11008
11930
|
},] }
|
|
11009
11931
|
];
|
|
11010
11932
|
|
|
11011
|
-
var
|
|
11012
|
-
|
|
11933
|
+
var ɵ0 = function (node) {
|
|
11934
|
+
var _a, _b;
|
|
11935
|
+
if (node instanceof HTMLIFrameElement) {
|
|
11936
|
+
var attrs = {
|
|
11937
|
+
allow: node.allow,
|
|
11938
|
+
allowfullscreeen: (_a = node.allowFullscreen) !== null && _a !== void 0 ? _a : true,
|
|
11939
|
+
frameborder: node.getAttribute('frameborder'),
|
|
11940
|
+
height: node.height,
|
|
11941
|
+
name: node.name,
|
|
11942
|
+
referrerpolicy: node.referrerPolicy,
|
|
11943
|
+
src: node.src,
|
|
11944
|
+
srcdoc: node.srcdoc || undefined,
|
|
11945
|
+
title: (_b = node.title) !== null && _b !== void 0 ? _b : '',
|
|
11946
|
+
width: node.width,
|
|
11947
|
+
};
|
|
11948
|
+
if (node.sandbox.length) {
|
|
11949
|
+
attrs.sandbox = node.sandbox;
|
|
11950
|
+
}
|
|
11951
|
+
return attrs;
|
|
11013
11952
|
}
|
|
11014
|
-
|
|
11015
|
-
|
|
11016
|
-
|
|
11017
|
-
|
|
11018
|
-
|
|
11019
|
-
|
|
11020
|
-
|
|
11021
|
-
|
|
11022
|
-
|
|
11023
|
-
|
|
11024
|
-
}
|
|
11025
|
-
|
|
11026
|
-
|
|
11027
|
-
|
|
11953
|
+
return null;
|
|
11954
|
+
};
|
|
11955
|
+
var iframeNode = {
|
|
11956
|
+
group: 'block',
|
|
11957
|
+
attrs: {
|
|
11958
|
+
allow: {},
|
|
11959
|
+
allowfullscreeen: {},
|
|
11960
|
+
frameborder: {},
|
|
11961
|
+
height: { default: undefined },
|
|
11962
|
+
name: { default: '' },
|
|
11963
|
+
referrerpolicy: {},
|
|
11964
|
+
sandbox: { default: undefined },
|
|
11965
|
+
src: {},
|
|
11966
|
+
srcdoc: { default: undefined },
|
|
11967
|
+
title: { default: undefined },
|
|
11968
|
+
width: { default: undefined },
|
|
11969
|
+
},
|
|
11970
|
+
parseDOM: [
|
|
11971
|
+
{
|
|
11972
|
+
tag: 'iframe',
|
|
11973
|
+
getAttrs: ɵ0,
|
|
11974
|
+
},
|
|
11975
|
+
],
|
|
11976
|
+
toDOM: function (node) {
|
|
11977
|
+
return ['iframe', Object.assign({}, node.attrs)];
|
|
11978
|
+
},
|
|
11979
|
+
};
|
|
11980
|
+
var iframeNodeView = function (node, view, getPos, decorations) {
|
|
11981
|
+
var domSerializer = prosemirrorModel.DOMSerializer.fromSchema(view.state.schema);
|
|
11982
|
+
var wrapper = document.createElement('div');
|
|
11983
|
+
wrapper.classList.add('iframe-wrapper');
|
|
11984
|
+
var iframe = domSerializer.serializeNode(node);
|
|
11985
|
+
wrapper.appendChild(iframe);
|
|
11986
|
+
return {
|
|
11987
|
+
dom: wrapper,
|
|
11028
11988
|
};
|
|
11029
|
-
|
|
11030
|
-
}());
|
|
11031
|
-
LinkDialogComponent.decorators = [
|
|
11032
|
-
{ type: i0.Component, args: [{
|
|
11033
|
-
selector: 'vdr-link-dialog',
|
|
11034
|
-
template: "<form [formGroup]=\"form\">\r\n <vdr-form-field [label]=\"'editor.link-href' | translate\" for=\"href\">\r\n <input id=\"href\" type=\"text\" formControlName=\"href\" />\r\n </vdr-form-field>\r\n <vdr-form-field [label]=\"'editor.link-title' | translate\" for=\"title\">\r\n <input id=\"title\" type=\"text\" formControlName=\"title\" />\r\n </vdr-form-field>\r\n</form>\r\n<ng-template vdrDialogButtons>\r\n <button type=\"button\" class=\"btn btn-secondary\" (click)=\"remove()\" *ngIf=\"existing\">\r\n <clr-icon shape=\"unlink\"></clr-icon> {{ 'editor.remove-link' | translate }}\r\n </button>\r\n <button type=\"submit\" (click)=\"select()\" class=\"btn btn-primary\" [disabled]=\"form.invalid\">\r\n {{ 'editor.set-link' | translate }}\r\n </button>\r\n</ng-template>\r\n",
|
|
11035
|
-
changeDetection: i0.ChangeDetectionStrategy.OnPush,
|
|
11036
|
-
styles: [""]
|
|
11037
|
-
},] }
|
|
11038
|
-
];
|
|
11989
|
+
};
|
|
11039
11990
|
|
|
11040
11991
|
// : (NodeType) → InputRule
|
|
11041
11992
|
// Given a blockquote node type, returns an input rule that turns `"> "`
|
|
@@ -11212,7 +12163,7 @@
|
|
|
11212
12163
|
}
|
|
11213
12164
|
|
|
11214
12165
|
function markActive(state, type) {
|
|
11215
|
-
var
|
|
12166
|
+
var _c = state.selection, from = _c.from, $from = _c.$from, to = _c.to, empty = _c.empty;
|
|
11216
12167
|
if (empty) {
|
|
11217
12168
|
return type.isInSet(state.storedMarks || $from.marks());
|
|
11218
12169
|
}
|
|
@@ -11229,12 +12180,38 @@
|
|
|
11229
12180
|
}
|
|
11230
12181
|
}
|
|
11231
12182
|
return false;
|
|
11232
|
-
}
|
|
12183
|
+
}
|
|
12184
|
+
function renderClarityIcon(options) {
|
|
12185
|
+
return function (view) {
|
|
12186
|
+
var _a, _b;
|
|
12187
|
+
var icon = document.createElement('clr-icon');
|
|
12188
|
+
icon.setAttribute('shape', options.shape);
|
|
12189
|
+
icon.setAttribute('size', ((_a = options.size) !== null && _a !== void 0 ? _a : IconSize.Small).toString());
|
|
12190
|
+
var labelEl = document.createElement('span');
|
|
12191
|
+
labelEl.textContent = (_b = options.label) !== null && _b !== void 0 ? _b : '';
|
|
12192
|
+
return wrapInMenuItemWithIcon(icon, options.label ? labelEl : undefined);
|
|
12193
|
+
};
|
|
12194
|
+
}
|
|
12195
|
+
function wrapInMenuItemWithIcon() {
|
|
12196
|
+
var elements = [];
|
|
12197
|
+
for (var _i = 0; _i < arguments.length; _i++) {
|
|
12198
|
+
elements[_i] = arguments[_i];
|
|
12199
|
+
}
|
|
12200
|
+
var wrapperEl = document.createElement('span');
|
|
12201
|
+
wrapperEl.classList.add('menu-item-with-icon');
|
|
12202
|
+
wrapperEl.append.apply(wrapperEl, __spreadArray([], __read(elements.filter(sharedUtils.notNullOrUndefined))));
|
|
12203
|
+
return wrapperEl;
|
|
12204
|
+
}
|
|
12205
|
+
var IconSize = {
|
|
12206
|
+
Large: 22,
|
|
12207
|
+
Small: 16,
|
|
12208
|
+
};
|
|
11233
12209
|
|
|
11234
12210
|
function insertImageItem(nodeType, modalService) {
|
|
11235
12211
|
return new prosemirrorMenu.MenuItem({
|
|
11236
12212
|
title: 'Insert image',
|
|
11237
12213
|
label: 'Image',
|
|
12214
|
+
render: renderClarityIcon({ shape: 'image', label: 'Image' }),
|
|
11238
12215
|
class: '',
|
|
11239
12216
|
css: '',
|
|
11240
12217
|
enable: function (state) {
|
|
@@ -11261,6 +12238,232 @@
|
|
|
11261
12238
|
});
|
|
11262
12239
|
},
|
|
11263
12240
|
});
|
|
12241
|
+
}
|
|
12242
|
+
var imageContextMenuPlugin = function (contextMenuService, modalService) { return new prosemirrorState.Plugin({
|
|
12243
|
+
view: function () {
|
|
12244
|
+
return {
|
|
12245
|
+
update: function (view) {
|
|
12246
|
+
if (!view.hasFocus()) {
|
|
12247
|
+
return;
|
|
12248
|
+
}
|
|
12249
|
+
var _a = view.state, doc = _a.doc, selection = _a.selection;
|
|
12250
|
+
var imageNode;
|
|
12251
|
+
var imageNodePos = 0;
|
|
12252
|
+
doc.nodesBetween(selection.from, selection.to, function (n, pos, parent) {
|
|
12253
|
+
if (n.type.name === 'image') {
|
|
12254
|
+
imageNode = n;
|
|
12255
|
+
imageNodePos = pos;
|
|
12256
|
+
return false;
|
|
12257
|
+
}
|
|
12258
|
+
});
|
|
12259
|
+
if (imageNode) {
|
|
12260
|
+
var node = view.nodeDOM(imageNodePos);
|
|
12261
|
+
if (node instanceof HTMLImageElement) {
|
|
12262
|
+
contextMenuService.setContextMenu({
|
|
12263
|
+
ref: selection,
|
|
12264
|
+
title: 'Image',
|
|
12265
|
+
iconShape: 'image',
|
|
12266
|
+
element: node,
|
|
12267
|
+
coords: view.coordsAtPos(imageNodePos),
|
|
12268
|
+
items: [
|
|
12269
|
+
{
|
|
12270
|
+
enabled: true,
|
|
12271
|
+
iconShape: 'image',
|
|
12272
|
+
label: 'Image properties',
|
|
12273
|
+
onClick: function () {
|
|
12274
|
+
contextMenuService.clearContextMenu();
|
|
12275
|
+
modalService
|
|
12276
|
+
.fromComponent(ExternalImageDialogComponent, {
|
|
12277
|
+
closable: true,
|
|
12278
|
+
locals: {
|
|
12279
|
+
// tslint:disable-next-line:no-non-null-assertion
|
|
12280
|
+
existing: imageNode.attrs,
|
|
12281
|
+
},
|
|
12282
|
+
})
|
|
12283
|
+
.subscribe(function (result) {
|
|
12284
|
+
if (result) {
|
|
12285
|
+
// tslint:disable-next-line:no-non-null-assertion
|
|
12286
|
+
view.dispatch(view.state.tr.replaceSelectionWith(
|
|
12287
|
+
// tslint:disable-next-line:no-non-null-assertion
|
|
12288
|
+
imageNode.type.createAndFill(result)));
|
|
12289
|
+
}
|
|
12290
|
+
view.focus();
|
|
12291
|
+
});
|
|
12292
|
+
},
|
|
12293
|
+
},
|
|
12294
|
+
],
|
|
12295
|
+
});
|
|
12296
|
+
}
|
|
12297
|
+
}
|
|
12298
|
+
else {
|
|
12299
|
+
contextMenuService.clearContextMenu();
|
|
12300
|
+
}
|
|
12301
|
+
},
|
|
12302
|
+
};
|
|
12303
|
+
},
|
|
12304
|
+
}); };
|
|
12305
|
+
|
|
12306
|
+
var tableContextMenuPlugin = function (contextMenuService) { return new prosemirrorState.Plugin({
|
|
12307
|
+
view: function () {
|
|
12308
|
+
return {
|
|
12309
|
+
update: function (view) {
|
|
12310
|
+
if (!view.hasFocus()) {
|
|
12311
|
+
return;
|
|
12312
|
+
}
|
|
12313
|
+
var _a = view.state, doc = _a.doc, selection = _a.selection;
|
|
12314
|
+
var tableNode;
|
|
12315
|
+
var tableNodePos = 0;
|
|
12316
|
+
doc.nodesBetween(selection.from, selection.to, function (n, pos, parent) {
|
|
12317
|
+
if (n.type.name === 'table') {
|
|
12318
|
+
tableNode = n;
|
|
12319
|
+
tableNodePos = pos;
|
|
12320
|
+
return false;
|
|
12321
|
+
}
|
|
12322
|
+
});
|
|
12323
|
+
if (tableNode) {
|
|
12324
|
+
var node = view.nodeDOM(tableNodePos);
|
|
12325
|
+
if (node instanceof Element) {
|
|
12326
|
+
function createMenuItem(label, commandFn, iconClass) {
|
|
12327
|
+
var enabled = commandFn(view.state);
|
|
12328
|
+
return {
|
|
12329
|
+
label: label,
|
|
12330
|
+
enabled: enabled,
|
|
12331
|
+
iconClass: iconClass,
|
|
12332
|
+
onClick: function () {
|
|
12333
|
+
contextMenuService.clearContextMenu();
|
|
12334
|
+
view.focus();
|
|
12335
|
+
commandFn(view.state, view.dispatch);
|
|
12336
|
+
},
|
|
12337
|
+
};
|
|
12338
|
+
}
|
|
12339
|
+
var separator = {
|
|
12340
|
+
label: '',
|
|
12341
|
+
separator: true,
|
|
12342
|
+
enabled: true,
|
|
12343
|
+
onClick: function () {
|
|
12344
|
+
/**/
|
|
12345
|
+
},
|
|
12346
|
+
};
|
|
12347
|
+
contextMenuService.setContextMenu({
|
|
12348
|
+
ref: selection,
|
|
12349
|
+
title: 'Table',
|
|
12350
|
+
iconShape: 'table',
|
|
12351
|
+
element: node,
|
|
12352
|
+
coords: view.coordsAtPos(tableNodePos),
|
|
12353
|
+
items: [
|
|
12354
|
+
createMenuItem('Insert column before', prosemirrorTables.addColumnBefore, 'add-column'),
|
|
12355
|
+
createMenuItem('Insert column after', prosemirrorTables.addColumnAfter, 'add-column'),
|
|
12356
|
+
createMenuItem('Insert row before', prosemirrorTables.addRowBefore, 'add-row'),
|
|
12357
|
+
createMenuItem('Insert row after', prosemirrorTables.addRowAfter, 'add-row'),
|
|
12358
|
+
createMenuItem('Merge cells', prosemirrorTables.mergeCells),
|
|
12359
|
+
createMenuItem('Split cell', prosemirrorTables.splitCell),
|
|
12360
|
+
separator,
|
|
12361
|
+
createMenuItem('Toggle header column', prosemirrorTables.toggleHeaderColumn),
|
|
12362
|
+
createMenuItem('Toggle header row', prosemirrorTables.toggleHeaderRow),
|
|
12363
|
+
separator,
|
|
12364
|
+
createMenuItem('Delete column', prosemirrorTables.deleteColumn),
|
|
12365
|
+
createMenuItem('Delete row', prosemirrorTables.deleteRow),
|
|
12366
|
+
createMenuItem('Delete table', prosemirrorTables.deleteTable),
|
|
12367
|
+
],
|
|
12368
|
+
});
|
|
12369
|
+
}
|
|
12370
|
+
}
|
|
12371
|
+
else {
|
|
12372
|
+
contextMenuService.clearContextMenu();
|
|
12373
|
+
}
|
|
12374
|
+
},
|
|
12375
|
+
};
|
|
12376
|
+
},
|
|
12377
|
+
}); };
|
|
12378
|
+
function getTableNodes() {
|
|
12379
|
+
return prosemirrorTables.tableNodes({
|
|
12380
|
+
tableGroup: 'block',
|
|
12381
|
+
cellContent: 'block+',
|
|
12382
|
+
cellAttributes: {
|
|
12383
|
+
background: {
|
|
12384
|
+
default: null,
|
|
12385
|
+
getFromDOM: function (dom) {
|
|
12386
|
+
return dom.style.backgroundColor || null;
|
|
12387
|
+
},
|
|
12388
|
+
setDOMAttr: function (value, attrs) {
|
|
12389
|
+
if (value) {
|
|
12390
|
+
attrs.style = (attrs.style || '') + ("background-color: " + value + ";");
|
|
12391
|
+
}
|
|
12392
|
+
},
|
|
12393
|
+
},
|
|
12394
|
+
},
|
|
12395
|
+
});
|
|
12396
|
+
}
|
|
12397
|
+
function getTableMenu(schema) {
|
|
12398
|
+
function item(label, cmd, iconShape) {
|
|
12399
|
+
return new prosemirrorMenu.MenuItem({
|
|
12400
|
+
label: label,
|
|
12401
|
+
select: cmd,
|
|
12402
|
+
run: cmd,
|
|
12403
|
+
render: iconShape ? renderClarityIcon({ shape: iconShape, label: label }) : undefined,
|
|
12404
|
+
});
|
|
12405
|
+
}
|
|
12406
|
+
function separator() {
|
|
12407
|
+
return new prosemirrorMenu.MenuItem({
|
|
12408
|
+
select: function (state) { return prosemirrorTables.isInTable(state); },
|
|
12409
|
+
run: function (state) {
|
|
12410
|
+
/**/
|
|
12411
|
+
},
|
|
12412
|
+
render: function (view) {
|
|
12413
|
+
var el = document.createElement('div');
|
|
12414
|
+
el.classList.add('menu-separator');
|
|
12415
|
+
return el;
|
|
12416
|
+
},
|
|
12417
|
+
});
|
|
12418
|
+
}
|
|
12419
|
+
return [
|
|
12420
|
+
item('Insert column before', prosemirrorTables.addColumnBefore),
|
|
12421
|
+
item('Insert column after', prosemirrorTables.addColumnAfter),
|
|
12422
|
+
item('Insert row before', prosemirrorTables.addRowBefore),
|
|
12423
|
+
item('Insert row after', prosemirrorTables.addRowAfter),
|
|
12424
|
+
item('Merge cells', prosemirrorTables.mergeCells),
|
|
12425
|
+
item('Split cell', prosemirrorTables.splitCell),
|
|
12426
|
+
separator(),
|
|
12427
|
+
item('Toggle header column', prosemirrorTables.toggleHeaderColumn),
|
|
12428
|
+
item('Toggle header row', prosemirrorTables.toggleHeaderRow),
|
|
12429
|
+
item('Toggle header cells', prosemirrorTables.toggleHeaderCell),
|
|
12430
|
+
separator(),
|
|
12431
|
+
item('Delete column', prosemirrorTables.deleteColumn),
|
|
12432
|
+
item('Delete row', prosemirrorTables.deleteRow),
|
|
12433
|
+
item('Delete table', prosemirrorTables.deleteTable),
|
|
12434
|
+
];
|
|
12435
|
+
}
|
|
12436
|
+
function addTable(state, dispatch, _a) {
|
|
12437
|
+
var rowsCount = _a.rowsCount, colsCount = _a.colsCount, withHeaderRow = _a.withHeaderRow, cellContent = _a.cellContent;
|
|
12438
|
+
var offset = state.tr.selection.anchor + 1;
|
|
12439
|
+
var nodes = createTable(state, rowsCount, colsCount, withHeaderRow, cellContent);
|
|
12440
|
+
var tr = state.tr.replaceSelectionWith(nodes).scrollIntoView();
|
|
12441
|
+
var resolvedPos = tr.doc.resolve(offset);
|
|
12442
|
+
tr.setSelection(prosemirrorState.TextSelection.near(resolvedPos));
|
|
12443
|
+
dispatch(tr);
|
|
12444
|
+
}
|
|
12445
|
+
function createTable(state, rowsCount, colsCount, withHeaderRow, cellContent) {
|
|
12446
|
+
var types = prosemirrorTables.tableNodeTypes(state.schema);
|
|
12447
|
+
var headerCells = [];
|
|
12448
|
+
var cells = [];
|
|
12449
|
+
var createCell = function (cellType, _cellContent) { return _cellContent ? cellType.createChecked(null, _cellContent) : cellType.createAndFill(); };
|
|
12450
|
+
for (var index = 0; index < colsCount; index += 1) {
|
|
12451
|
+
var cell = createCell(types.cell, cellContent);
|
|
12452
|
+
if (cell) {
|
|
12453
|
+
cells.push(cell);
|
|
12454
|
+
}
|
|
12455
|
+
if (withHeaderRow) {
|
|
12456
|
+
var headerCell = createCell(types.header_cell, cellContent);
|
|
12457
|
+
if (headerCell) {
|
|
12458
|
+
headerCells.push(headerCell);
|
|
12459
|
+
}
|
|
12460
|
+
}
|
|
12461
|
+
}
|
|
12462
|
+
var rows = [];
|
|
12463
|
+
for (var index = 0; index < rowsCount; index += 1) {
|
|
12464
|
+
rows.push(types.row.createChecked(null, withHeaderRow && index === 0 ? headerCells : cells));
|
|
12465
|
+
}
|
|
12466
|
+
return types.table.createChecked(null, rows);
|
|
11264
12467
|
}
|
|
11265
12468
|
|
|
11266
12469
|
function selectionIsWithinLink(state, anchor, head) {
|
|
@@ -11281,7 +12484,7 @@
|
|
|
11281
12484
|
function linkItem(linkMark, modalService) {
|
|
11282
12485
|
return new prosemirrorMenu.MenuItem({
|
|
11283
12486
|
title: 'Add or remove link',
|
|
11284
|
-
|
|
12487
|
+
render: renderClarityIcon({ shape: 'link', size: 22 }),
|
|
11285
12488
|
class: '',
|
|
11286
12489
|
css: '',
|
|
11287
12490
|
active: function (state) {
|
|
@@ -11328,11 +12531,30 @@
|
|
|
11328
12531
|
});
|
|
11329
12532
|
}
|
|
11330
12533
|
|
|
11331
|
-
|
|
12534
|
+
var SubMenuWithIcon = /** @class */ (function (_super) {
|
|
12535
|
+
__extends(SubMenuWithIcon, _super);
|
|
12536
|
+
function SubMenuWithIcon(content, options) {
|
|
12537
|
+
var _this = _super.call(this, content, options) || this;
|
|
12538
|
+
_this.icon = options.icon();
|
|
12539
|
+
return _this;
|
|
12540
|
+
}
|
|
12541
|
+
SubMenuWithIcon.prototype.render = function (view) {
|
|
12542
|
+
var _a = _super.prototype.render.call(this, view), dom = _a.dom, update = _a.update;
|
|
12543
|
+
return {
|
|
12544
|
+
dom: wrapInMenuItemWithIcon(this.icon, dom),
|
|
12545
|
+
update: update,
|
|
12546
|
+
};
|
|
12547
|
+
};
|
|
12548
|
+
return SubMenuWithIcon;
|
|
12549
|
+
}(prosemirrorMenu.DropdownSubmenu));
|
|
12550
|
+
|
|
11332
12551
|
function cmdItem(cmd, options) {
|
|
11333
12552
|
var passedOptions = {
|
|
11334
12553
|
label: options.title,
|
|
11335
12554
|
run: cmd,
|
|
12555
|
+
render: options.iconShape
|
|
12556
|
+
? renderClarityIcon({ shape: options.iconShape, size: IconSize.Large })
|
|
12557
|
+
: undefined,
|
|
11336
12558
|
};
|
|
11337
12559
|
// tslint:disable-next-line:forin
|
|
11338
12560
|
for (var prop in options) {
|
|
@@ -11422,10 +12644,16 @@
|
|
|
11422
12644
|
var type;
|
|
11423
12645
|
// tslint:disable:no-conditional-assignment
|
|
11424
12646
|
if ((type = schema.marks.strong)) {
|
|
11425
|
-
r.toggleStrong = markItem(type, {
|
|
12647
|
+
r.toggleStrong = markItem(type, {
|
|
12648
|
+
title: 'Toggle strong style',
|
|
12649
|
+
iconShape: 'bold',
|
|
12650
|
+
});
|
|
11426
12651
|
}
|
|
11427
12652
|
if ((type = schema.marks.em)) {
|
|
11428
|
-
r.toggleEm = markItem(type, {
|
|
12653
|
+
r.toggleEm = markItem(type, {
|
|
12654
|
+
title: 'Toggle emphasis',
|
|
12655
|
+
iconShape: 'italic',
|
|
12656
|
+
});
|
|
11429
12657
|
}
|
|
11430
12658
|
if ((type = schema.marks.code)) {
|
|
11431
12659
|
r.toggleCode = markItem(type, { title: 'Toggle code font', icon: prosemirrorMenu.icons.code });
|
|
@@ -11439,31 +12667,31 @@
|
|
|
11439
12667
|
if ((type = schema.nodes.bullet_list)) {
|
|
11440
12668
|
r.wrapBulletList = wrapListItem(type, {
|
|
11441
12669
|
title: 'Wrap in bullet list',
|
|
11442
|
-
|
|
12670
|
+
iconShape: 'bullet-list',
|
|
11443
12671
|
});
|
|
11444
12672
|
}
|
|
11445
12673
|
if ((type = schema.nodes.ordered_list)) {
|
|
11446
12674
|
r.wrapOrderedList = wrapListItem(type, {
|
|
11447
12675
|
title: 'Wrap in ordered list',
|
|
11448
|
-
|
|
12676
|
+
iconShape: 'number-list',
|
|
11449
12677
|
});
|
|
11450
12678
|
}
|
|
11451
12679
|
if ((type = schema.nodes.blockquote)) {
|
|
11452
12680
|
r.wrapBlockQuote = prosemirrorMenu.wrapItem(type, {
|
|
11453
12681
|
title: 'Wrap in block quote',
|
|
11454
|
-
|
|
12682
|
+
render: renderClarityIcon({ shape: 'block-quote', size: IconSize.Large }),
|
|
11455
12683
|
});
|
|
11456
12684
|
}
|
|
11457
12685
|
if ((type = schema.nodes.paragraph)) {
|
|
11458
12686
|
r.makeParagraph = prosemirrorMenu.blockTypeItem(type, {
|
|
11459
12687
|
title: 'Change to paragraph',
|
|
11460
|
-
label: 'Plain',
|
|
12688
|
+
render: renderClarityIcon({ shape: 'text', label: 'Plain' }),
|
|
11461
12689
|
});
|
|
11462
12690
|
}
|
|
11463
12691
|
if ((type = schema.nodes.code_block)) {
|
|
11464
12692
|
r.makeCodeBlock = prosemirrorMenu.blockTypeItem(type, {
|
|
11465
12693
|
title: 'Change to code block',
|
|
11466
|
-
label: 'Code',
|
|
12694
|
+
render: renderClarityIcon({ shape: 'code', label: 'Code' }),
|
|
11467
12695
|
});
|
|
11468
12696
|
}
|
|
11469
12697
|
if ((type = schema.nodes.heading)) {
|
|
@@ -11479,9 +12707,13 @@
|
|
|
11479
12707
|
var hr_1 = type;
|
|
11480
12708
|
r.insertHorizontalRule = new prosemirrorMenu.MenuItem({
|
|
11481
12709
|
title: 'Insert horizontal rule',
|
|
11482
|
-
|
|
11483
|
-
|
|
11484
|
-
|
|
12710
|
+
render: function (view) {
|
|
12711
|
+
var icon = document.createElement('div');
|
|
12712
|
+
icon.classList.add('custom-icon', 'hr-icon');
|
|
12713
|
+
var labelEl = document.createElement('span');
|
|
12714
|
+
labelEl.textContent = 'Horizontal rule';
|
|
12715
|
+
return wrapInMenuItemWithIcon(icon, labelEl);
|
|
12716
|
+
},
|
|
11485
12717
|
enable: function (state) {
|
|
11486
12718
|
return canInsert(state, hr_1);
|
|
11487
12719
|
},
|
|
@@ -11491,12 +12723,34 @@
|
|
|
11491
12723
|
});
|
|
11492
12724
|
}
|
|
11493
12725
|
var cut = function (arr) { return arr.filter(function (x) { return x; }); };
|
|
11494
|
-
r.insertMenu = new prosemirrorMenu.Dropdown(cut([
|
|
12726
|
+
r.insertMenu = new prosemirrorMenu.Dropdown(cut([
|
|
12727
|
+
r.insertImage,
|
|
12728
|
+
r.insertHorizontalRule,
|
|
12729
|
+
new prosemirrorMenu.MenuItem({
|
|
12730
|
+
run: function (state, dispatch) {
|
|
12731
|
+
addTable(state, dispatch, {
|
|
12732
|
+
rowsCount: 2,
|
|
12733
|
+
colsCount: 2,
|
|
12734
|
+
withHeaderRow: true,
|
|
12735
|
+
cellContent: '',
|
|
12736
|
+
});
|
|
12737
|
+
},
|
|
12738
|
+
render: renderClarityIcon({ shape: 'table', label: 'Table' }),
|
|
12739
|
+
}),
|
|
12740
|
+
]), { label: 'Insert' });
|
|
11495
12741
|
r.typeMenu = new prosemirrorMenu.Dropdown(cut([
|
|
11496
12742
|
r.makeParagraph,
|
|
11497
12743
|
r.makeCodeBlock,
|
|
11498
12744
|
r.makeHead1 &&
|
|
11499
|
-
new
|
|
12745
|
+
new SubMenuWithIcon(cut([r.makeHead1, r.makeHead2, r.makeHead3, r.makeHead4, r.makeHead5, r.makeHead6]), {
|
|
12746
|
+
label: 'Heading',
|
|
12747
|
+
icon: function () {
|
|
12748
|
+
var icon = document.createElement('div');
|
|
12749
|
+
icon.textContent = 'H';
|
|
12750
|
+
icon.classList.add('custom-icon', 'h-icon');
|
|
12751
|
+
return icon;
|
|
12752
|
+
},
|
|
12753
|
+
}),
|
|
11500
12754
|
]), { label: 'Type...' });
|
|
11501
12755
|
var inlineMenu = cut([r.toggleStrong, r.toggleEm, r.toggleLink]);
|
|
11502
12756
|
r.inlineMenu = [inlineMenu];
|
|
@@ -11510,10 +12764,37 @@
|
|
|
11510
12764
|
prosemirrorMenu.selectParentNodeItem,
|
|
11511
12765
|
]),
|
|
11512
12766
|
];
|
|
11513
|
-
|
|
12767
|
+
var undoRedo = [
|
|
12768
|
+
new prosemirrorMenu.MenuItem({
|
|
12769
|
+
title: 'Undo last change',
|
|
12770
|
+
run: prosemirrorHistory.undo,
|
|
12771
|
+
enable: function (state) {
|
|
12772
|
+
return prosemirrorHistory.undo(state);
|
|
12773
|
+
},
|
|
12774
|
+
render: renderClarityIcon({ shape: 'undo', size: IconSize.Large }),
|
|
12775
|
+
}),
|
|
12776
|
+
new prosemirrorMenu.MenuItem({
|
|
12777
|
+
title: 'Redo last undone change',
|
|
12778
|
+
run: prosemirrorHistory.redo,
|
|
12779
|
+
enable: function (state) {
|
|
12780
|
+
return prosemirrorHistory.redo(state);
|
|
12781
|
+
},
|
|
12782
|
+
render: renderClarityIcon({ shape: 'redo', size: IconSize.Large }),
|
|
12783
|
+
}),
|
|
12784
|
+
];
|
|
12785
|
+
r.fullMenu = [inlineMenu].concat([[r.insertMenu, r.typeMenu]], [undoRedo], r.blockMenu);
|
|
11514
12786
|
return r;
|
|
11515
12787
|
}
|
|
11516
12788
|
|
|
12789
|
+
function customMenuPlugin(options) {
|
|
12790
|
+
var modalService = options.injector.get(ModalService);
|
|
12791
|
+
var pmMenuBarPlugin = prosemirrorMenu.menuBar({
|
|
12792
|
+
floating: options.floatingMenu !== false,
|
|
12793
|
+
content: buildMenuItems(options.schema, modalService).fullMenu,
|
|
12794
|
+
});
|
|
12795
|
+
return pmMenuBarPlugin;
|
|
12796
|
+
}
|
|
12797
|
+
|
|
11517
12798
|
/**
|
|
11518
12799
|
* Retrieve the start and end position of a mark
|
|
11519
12800
|
* "Borrowed" from [tiptap](https://github.com/scrumpy/tiptap)
|
|
@@ -11565,13 +12846,110 @@
|
|
|
11565
12846
|
},
|
|
11566
12847
|
});
|
|
11567
12848
|
|
|
12849
|
+
/**
|
|
12850
|
+
* Implements editing of raw HTML for the selected node in the editor.
|
|
12851
|
+
*/
|
|
12852
|
+
var rawEditorPlugin = function (contextMenuService, modalService) { return new prosemirrorState.Plugin({
|
|
12853
|
+
view: function (_view) {
|
|
12854
|
+
var domParser = prosemirrorModel.DOMParser.fromSchema(_view.state.schema);
|
|
12855
|
+
var domSerializer = prosemirrorModel.DOMSerializer.fromSchema(_view.state.schema);
|
|
12856
|
+
return {
|
|
12857
|
+
update: function (view) {
|
|
12858
|
+
if (!view.hasFocus()) {
|
|
12859
|
+
return;
|
|
12860
|
+
}
|
|
12861
|
+
var topLevelNode;
|
|
12862
|
+
var _b = view.state, doc = _b.doc, selection = _b.selection;
|
|
12863
|
+
var topLevelNodePos = 0;
|
|
12864
|
+
doc.nodesBetween(selection.from, selection.to, function (n, pos, parent) {
|
|
12865
|
+
if (parent === doc) {
|
|
12866
|
+
topLevelNode = n;
|
|
12867
|
+
topLevelNodePos = pos;
|
|
12868
|
+
return false;
|
|
12869
|
+
}
|
|
12870
|
+
});
|
|
12871
|
+
if (topLevelNode) {
|
|
12872
|
+
var node_1 = view.nodeDOM(topLevelNodePos);
|
|
12873
|
+
if (node_1 instanceof HTMLElement) {
|
|
12874
|
+
contextMenuService.setContextMenu({
|
|
12875
|
+
ref: selection,
|
|
12876
|
+
title: '',
|
|
12877
|
+
// iconShape: 'ellipsis-vertical',
|
|
12878
|
+
element: node_1,
|
|
12879
|
+
coords: view.coordsAtPos(topLevelNodePos),
|
|
12880
|
+
items: [
|
|
12881
|
+
{
|
|
12882
|
+
enabled: true,
|
|
12883
|
+
iconShape: 'code',
|
|
12884
|
+
label: 'Edit HTML',
|
|
12885
|
+
onClick: function () {
|
|
12886
|
+
contextMenuService.clearContextMenu();
|
|
12887
|
+
var element = domSerializer.serializeNode(
|
|
12888
|
+
// tslint:disable-next-line:no-non-null-assertion
|
|
12889
|
+
topLevelNode);
|
|
12890
|
+
modalService
|
|
12891
|
+
.fromComponent(RawHtmlDialogComponent, {
|
|
12892
|
+
size: 'xl',
|
|
12893
|
+
locals: {
|
|
12894
|
+
html: element.outerHTML,
|
|
12895
|
+
},
|
|
12896
|
+
})
|
|
12897
|
+
.subscribe(function (result) {
|
|
12898
|
+
var _a;
|
|
12899
|
+
if (result) {
|
|
12900
|
+
var domNode = htmlToDomNode(result, (topLevelNode === null || topLevelNode === void 0 ? void 0 : topLevelNode.isLeaf) ? undefined : node_1);
|
|
12901
|
+
if (domNode) {
|
|
12902
|
+
var tr = view.state.tr;
|
|
12903
|
+
var parsedNodeSlice = domParser.parse(domNode);
|
|
12904
|
+
try {
|
|
12905
|
+
tr = tr.replaceRangeWith(topLevelNodePos, topLevelNodePos +
|
|
12906
|
+
((_a = topLevelNode === null || topLevelNode === void 0 ? void 0 : topLevelNode.nodeSize) !== null && _a !== void 0 ? _a : 0), parsedNodeSlice);
|
|
12907
|
+
}
|
|
12908
|
+
catch (err) {
|
|
12909
|
+
// tslint:disable-next-line:no-console
|
|
12910
|
+
console.error(err);
|
|
12911
|
+
}
|
|
12912
|
+
view.dispatch(tr);
|
|
12913
|
+
view.focus();
|
|
12914
|
+
}
|
|
12915
|
+
}
|
|
12916
|
+
});
|
|
12917
|
+
},
|
|
12918
|
+
},
|
|
12919
|
+
],
|
|
12920
|
+
});
|
|
12921
|
+
}
|
|
12922
|
+
}
|
|
12923
|
+
},
|
|
12924
|
+
};
|
|
12925
|
+
},
|
|
12926
|
+
}); };
|
|
12927
|
+
function htmlToDomNode(html, wrapInParent) {
|
|
12928
|
+
html = "" + html.trim();
|
|
12929
|
+
var template = document.createElement('template');
|
|
12930
|
+
if (wrapInParent) {
|
|
12931
|
+
var parentClone = wrapInParent.cloneNode(false);
|
|
12932
|
+
parentClone.innerHTML = html;
|
|
12933
|
+
template.content.appendChild(parentClone);
|
|
12934
|
+
}
|
|
12935
|
+
else {
|
|
12936
|
+
var parent = document.createElement('p');
|
|
12937
|
+
parent.innerHTML = html;
|
|
12938
|
+
template.content.appendChild(parent);
|
|
12939
|
+
}
|
|
12940
|
+
return template.content.firstChild;
|
|
12941
|
+
}
|
|
12942
|
+
|
|
11568
12943
|
var ProsemirrorService = /** @class */ (function () {
|
|
11569
|
-
function ProsemirrorService(
|
|
11570
|
-
this.
|
|
12944
|
+
function ProsemirrorService(injector, contextMenuService) {
|
|
12945
|
+
this.injector = injector;
|
|
12946
|
+
this.contextMenuService = contextMenuService;
|
|
11571
12947
|
// Mix the nodes from prosemirror-schema-list into the basic schema to
|
|
11572
12948
|
// create a schema with list support.
|
|
11573
12949
|
this.mySchema = new prosemirrorModel.Schema({
|
|
11574
|
-
nodes: prosemirrorSchemaList.addListNodes(prosemirrorSchemaBasic.schema.spec.nodes, 'paragraph block*', 'block')
|
|
12950
|
+
nodes: prosemirrorSchemaList.addListNodes(prosemirrorSchemaBasic.schema.spec.nodes, 'paragraph block*', 'block')
|
|
12951
|
+
.append(getTableNodes())
|
|
12952
|
+
.addToEnd('iframe', iframeNode),
|
|
11575
12953
|
marks: prosemirrorSchemaBasic.schema.spec.marks,
|
|
11576
12954
|
});
|
|
11577
12955
|
this.enabled = true;
|
|
@@ -11591,13 +12969,30 @@
|
|
|
11591
12969
|
}
|
|
11592
12970
|
},
|
|
11593
12971
|
editable: function () { return options.isReadOnly(); },
|
|
12972
|
+
handleDOMEvents: {
|
|
12973
|
+
focus: function (view) {
|
|
12974
|
+
_this.contextMenuService.setVisibility(true);
|
|
12975
|
+
},
|
|
12976
|
+
blur: function (view) {
|
|
12977
|
+
_this.contextMenuService.setVisibility(false);
|
|
12978
|
+
},
|
|
12979
|
+
},
|
|
12980
|
+
nodeViews: {
|
|
12981
|
+
iframe: iframeNodeView,
|
|
12982
|
+
},
|
|
11594
12983
|
});
|
|
11595
12984
|
};
|
|
11596
12985
|
ProsemirrorService.prototype.update = function (text) {
|
|
11597
12986
|
if (this.editorView) {
|
|
11598
|
-
var
|
|
11599
|
-
if (
|
|
11600
|
-
this.
|
|
12987
|
+
var currentText = this.getTextFromState(this.editorView.state);
|
|
12988
|
+
if (text !== currentText) {
|
|
12989
|
+
var state = this.getStateFromText(text);
|
|
12990
|
+
if (document.body.contains(this.editorView.dom)) {
|
|
12991
|
+
var fix = prosemirrorTables.fixTables(state);
|
|
12992
|
+
if (fix)
|
|
12993
|
+
state = state.apply(fix.setMeta('addToHistory', false));
|
|
12994
|
+
this.editorView.updateState(state);
|
|
12995
|
+
}
|
|
11601
12996
|
}
|
|
11602
12997
|
}
|
|
11603
12998
|
};
|
|
@@ -11637,13 +13032,17 @@
|
|
|
11637
13032
|
prosemirrorDropcursor.dropCursor(),
|
|
11638
13033
|
prosemirrorGapcursor.gapCursor(),
|
|
11639
13034
|
linkSelectPlugin,
|
|
13035
|
+
prosemirrorTables.columnResizing({}),
|
|
13036
|
+
prosemirrorTables.tableEditing({ allowTableNodeSelection: true }),
|
|
13037
|
+
tableContextMenuPlugin(this.contextMenuService),
|
|
13038
|
+
imageContextMenuPlugin(this.contextMenuService, this.injector.get(ModalService)),
|
|
13039
|
+
rawEditorPlugin(this.contextMenuService, this.injector.get(ModalService)),
|
|
13040
|
+
customMenuPlugin({
|
|
13041
|
+
floatingMenu: options.floatingMenu,
|
|
13042
|
+
injector: this.injector,
|
|
13043
|
+
schema: options.schema,
|
|
13044
|
+
}),
|
|
11640
13045
|
];
|
|
11641
|
-
if (options.menuBar !== false) {
|
|
11642
|
-
plugins.push(prosemirrorMenu.menuBar({
|
|
11643
|
-
floating: options.floatingMenu !== false,
|
|
11644
|
-
content: options.menuContent || buildMenuItems(options.schema, this.modalService).fullMenu,
|
|
11645
|
-
}));
|
|
11646
|
-
}
|
|
11647
13046
|
if (options.history !== false) {
|
|
11648
13047
|
plugins.push(prosemirrorHistory.history());
|
|
11649
13048
|
}
|
|
@@ -11659,7 +13058,8 @@
|
|
|
11659
13058
|
{ type: i0.Injectable }
|
|
11660
13059
|
];
|
|
11661
13060
|
ProsemirrorService.ctorParameters = function () { return [
|
|
11662
|
-
{ type:
|
|
13061
|
+
{ type: i0.Injector },
|
|
13062
|
+
{ type: ContextMenuService }
|
|
11663
13063
|
]; };
|
|
11664
13064
|
|
|
11665
13065
|
/**
|
|
@@ -11677,9 +13077,11 @@
|
|
|
11677
13077
|
* @docsCategory components
|
|
11678
13078
|
*/
|
|
11679
13079
|
var RichTextEditorComponent = /** @class */ (function () {
|
|
11680
|
-
function RichTextEditorComponent(changeDetector, prosemirrorService) {
|
|
13080
|
+
function RichTextEditorComponent(changeDetector, prosemirrorService, viewContainerRef, contextMenuService) {
|
|
11681
13081
|
this.changeDetector = changeDetector;
|
|
11682
13082
|
this.prosemirrorService = prosemirrorService;
|
|
13083
|
+
this.viewContainerRef = viewContainerRef;
|
|
13084
|
+
this.contextMenuService = contextMenuService;
|
|
11683
13085
|
this._readonly = false;
|
|
11684
13086
|
}
|
|
11685
13087
|
Object.defineProperty(RichTextEditorComponent.prototype, "readonly", {
|
|
@@ -11690,6 +13092,13 @@
|
|
|
11690
13092
|
enumerable: false,
|
|
11691
13093
|
configurable: true
|
|
11692
13094
|
});
|
|
13095
|
+
Object.defineProperty(RichTextEditorComponent.prototype, "menuElement", {
|
|
13096
|
+
get: function () {
|
|
13097
|
+
return this.viewContainerRef.element.nativeElement.querySelector('.ProseMirror-menubar');
|
|
13098
|
+
},
|
|
13099
|
+
enumerable: false,
|
|
13100
|
+
configurable: true
|
|
13101
|
+
});
|
|
11693
13102
|
RichTextEditorComponent.prototype.ngAfterViewInit = function () {
|
|
11694
13103
|
var _this = this;
|
|
11695
13104
|
this.prosemirrorService.createEditorView({
|
|
@@ -11717,9 +13126,11 @@
|
|
|
11717
13126
|
this.prosemirrorService.setEnabled(!isDisabled);
|
|
11718
13127
|
};
|
|
11719
13128
|
RichTextEditorComponent.prototype.writeValue = function (value) {
|
|
11720
|
-
this.value
|
|
11721
|
-
|
|
11722
|
-
this.prosemirrorService
|
|
13129
|
+
if (value !== this.value) {
|
|
13130
|
+
this.value = value;
|
|
13131
|
+
if (this.prosemirrorService) {
|
|
13132
|
+
this.prosemirrorService.update(value);
|
|
13133
|
+
}
|
|
11723
13134
|
}
|
|
11724
13135
|
};
|
|
11725
13136
|
return RichTextEditorComponent;
|
|
@@ -11727,7 +13138,7 @@
|
|
|
11727
13138
|
RichTextEditorComponent.decorators = [
|
|
11728
13139
|
{ type: i0.Component, args: [{
|
|
11729
13140
|
selector: 'vdr-rich-text-editor',
|
|
11730
|
-
template: "<label class=\"clr-control-label\">{{ label }}</label>\r\n<div #editor></div>\r\n",
|
|
13141
|
+
template: "<label class=\"clr-control-label\">{{ label }}</label>\r\n<div #editor></div>\r\n<vdr-context-menu [editorMenuElement]=\"menuElement\"></vdr-context-menu>\r\n",
|
|
11731
13142
|
changeDetection: i0.ChangeDetectionStrategy.OnPush,
|
|
11732
13143
|
providers: [
|
|
11733
13144
|
{
|
|
@@ -11736,13 +13147,16 @@
|
|
|
11736
13147
|
multi: true,
|
|
11737
13148
|
},
|
|
11738
13149
|
ProsemirrorService,
|
|
13150
|
+
ContextMenuService,
|
|
11739
13151
|
],
|
|
11740
|
-
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:-webkit-fit-content;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
|
|
13152
|
+
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:-webkit-fit-content;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:0 12px 0 8px;height:18px}::ng-deep .ProseMirror-menu-dropdown,::ng-deep .ProseMirror-menu-dropdown-menu{font-size:90%;white-space:nowrap;border-radius:var(--border-radius-input)}::ng-deep .ProseMirror-menu-dropdown{vertical-align:1px;cursor:pointer;position:relative;padding-right:15px}::ng-deep .ProseMirror-menu-dropdown-wrap{padding:1px 3px 1px 6px;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:var(--color-component-bg-100);border:1px solid var(--color-component-border-200);padding:2px}::ng-deep .ProseMirror-menu-dropdown-menu{z-index:15;min-width:6em;color:var(--color-text-200)}::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-200)}::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:-8px;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;align-items:center}::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:normal;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}::ng-deep .ProseMirror .tableWrapper td,::ng-deep .ProseMirror .tableWrapper th{border:1px solid var(--color-grey-300);padding:3px 6px}::ng-deep .ProseMirror .tableWrapper td p,::ng-deep .ProseMirror .tableWrapper th p{margin-top:0}::ng-deep .ProseMirror .tableWrapper th,::ng-deep .ProseMirror .tableWrapper th p{font-weight:bold}::ng-deep .ProseMirror table{border-collapse:collapse;table-layout:fixed;width:100%;overflow:hidden}::ng-deep .ProseMirror td,::ng-deep .ProseMirror th{vertical-align:top;box-sizing:border-box;position:relative}::ng-deep .ProseMirror .column-resize-handle{position:absolute;right:-2px;top:0;bottom:0;width:4px;z-index:20;background-color:#adf;pointer-events:none}::ng-deep .ProseMirror.resize-cursor{cursor:ew-resize;cursor:col-resize}::ng-deep .ProseMirror .selectedCell:after{z-index:2;position:absolute;content:\"\";left:0;right:0;top:0;bottom:0;background:#afdaf355;pointer-events:none}::ng-deep .menu-separator{border-bottom:1px solid var(--color-grey-400);height:0;margin:6px 0;pointer-events:none}::ng-deep .menu-item-with-icon{display:flex;align-items:center}::ng-deep .menu-item-with-icon clr-icon,::ng-deep .menu-item-with-icon .custom-icon{margin-right:4px;color:var(--color-text-200)}::ng-deep .menu-item-with-icon .hr-icon{width:13px;height:8px;border-bottom:2px solid var(--color-text-100);margin:-8px 5px 0 2px}::ng-deep .menu-item-with-icon .h-icon{width:16px;text-align:center;font-weight:bold;font-size:12px}.context-menu{position:fixed}: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%}::ng-deep .vdr-prosemirror .iframe-wrapper{width:100%;text-align:center;padding:6px;transition:background-color .3s}::ng-deep .vdr-prosemirror .iframe-wrapper:hover{background-color:var(--color-primary-100)}\n"]
|
|
11741
13153
|
},] }
|
|
11742
13154
|
];
|
|
11743
13155
|
RichTextEditorComponent.ctorParameters = function () { return [
|
|
11744
13156
|
{ type: i0.ChangeDetectorRef },
|
|
11745
|
-
{ type: ProsemirrorService }
|
|
13157
|
+
{ type: ProsemirrorService },
|
|
13158
|
+
{ type: i0.ViewContainerRef },
|
|
13159
|
+
{ type: ContextMenuService }
|
|
11746
13160
|
]; };
|
|
11747
13161
|
RichTextEditorComponent.propDecorators = {
|
|
11748
13162
|
label: [{ type: i0.Input }],
|
|
@@ -12590,7 +14004,7 @@
|
|
|
12590
14004
|
DynamicFormInputComponent.decorators = [
|
|
12591
14005
|
{ type: i0.Component, args: [{
|
|
12592
14006
|
selector: 'vdr-dynamic-form-input',
|
|
12593
|
-
template: "<ng-container *ngIf=\"!renderAsList; else list\">\r\n <ng-container #single></ng-container>\r\n</ng-container>\r\n<ng-template #list>\r\n <div class=\"list-container\" cdkDropList (cdkDropListDropped)=\"moveListItem($event)\">\r\n <div
|
|
14007
|
+
template: "<ng-container *ngIf=\"!renderAsList; else list\">\r\n <ng-container #single></ng-container>\r\n</ng-container>\r\n<ng-template #list>\r\n <div class=\"list-container\" cdkDropList (cdkDropListDropped)=\"moveListItem($event)\">\r\n <div\r\n class=\"list-item-row\"\r\n *ngFor=\"let item of listItems; trackBy: trackById\"\r\n cdkDrag\r\n [cdkDragData]=\"item\"\r\n >\r\n <ng-container #listItem></ng-container>\r\n <button\r\n class=\"btn btn-link btn-sm btn-warning\"\r\n *ngIf=\"!readonly\"\r\n (click)=\"removeListItem(item)\"\r\n [title]=\"'common.remove-item-from-list' | translate\"\r\n >\r\n <clr-icon shape=\"times\"></clr-icon>\r\n </button>\r\n <div class=\"flex-spacer\"></div>\r\n <div class=\"drag-handle\" cdkDragHandle [class.hidden]=\"readonly\">\r\n <clr-icon shape=\"drag-handle\" size=\"24\"></clr-icon>\r\n </div>\r\n </div>\r\n <button class=\"btn btn-secondary btn-sm\" (click)=\"addListItem()\" *ngIf=\"!readonly\">\r\n <clr-icon shape=\"plus\"></clr-icon> {{ 'common.add-item-to-list' | translate }}\r\n </button>\r\n </div>\r\n</ng-template>\r\n",
|
|
12594
14008
|
changeDetection: i0.ChangeDetectionStrategy.OnPush,
|
|
12595
14009
|
providers: [
|
|
12596
14010
|
{
|
|
@@ -12599,7 +14013,7 @@
|
|
|
12599
14013
|
multi: true,
|
|
12600
14014
|
},
|
|
12601
14015
|
],
|
|
12602
|
-
styles: [":host{flex:1}.list-container{border:1px solid var(--color-component-border-200);border-radius:3px;padding:12px}.list-item-row{font-size:13px;display:flex;align-items:center;margin:3px 0}.drag-placeholder{transition:transform .25s cubic-bezier(0,0,.2,1)}.cdk-drag-preview{font-size:13px;background-color:var(--color-component-bg-100);opacity:.8;border-radius:4px;box-shadow:0 5px 5px -3px #0003,0 8px 10px 1px #00000024,0 3px 14px 2px #0000001f}.cdk-drag-placeholder{opacity:.1}.cdk-drag-animating{transition:transform .25s cubic-bezier(0,0,.2,1)}.cdk-drop-list-dragging .list-item-row:not(.cdk-drag-placeholder){transition:transform .25s cubic-bezier(0,0,.2,1)}\n"]
|
|
14016
|
+
styles: [":host{flex:1}.list-container{border:1px solid var(--color-component-border-200);border-radius:3px;padding:12px}.list-item-row{font-size:13px;display:flex;align-items:center;margin:3px 0}.drag-placeholder{transition:transform .25s cubic-bezier(0,0,.2,1)}.cdk-drag-preview{font-size:13px;background-color:var(--color-component-bg-100);opacity:.8;border-radius:4px;box-shadow:0 5px 5px -3px #0003,0 8px 10px 1px #00000024,0 3px 14px 2px #0000001f}.drag-handle.hidden{display:none}.cdk-drag-placeholder{opacity:.1}.cdk-drag-animating{transition:transform .25s cubic-bezier(0,0,.2,1)}.cdk-drop-list-dragging .list-item-row:not(.cdk-drag-placeholder){transition:transform .25s cubic-bezier(0,0,.2,1)}\n"]
|
|
12603
14017
|
},] }
|
|
12604
14018
|
];
|
|
12605
14019
|
DynamicFormInputComponent.ctorParameters = function () { return [
|
|
@@ -13678,6 +15092,7 @@
|
|
|
13678
15092
|
function StateI18nTokenPipe() {
|
|
13679
15093
|
this.stateI18nTokens = {
|
|
13680
15094
|
Created: ngxTranslateExtractMarker.marker('state.created'),
|
|
15095
|
+
Draft: ngxTranslateExtractMarker.marker('state.draft'),
|
|
13681
15096
|
AddingItems: ngxTranslateExtractMarker.marker('state.adding-items'),
|
|
13682
15097
|
ArrangingPayment: ngxTranslateExtractMarker.marker('state.arranging-payment'),
|
|
13683
15098
|
PaymentAuthorized: ngxTranslateExtractMarker.marker('state.payment-authorized'),
|
|
@@ -13966,6 +15381,11 @@
|
|
|
13966
15381
|
AssetPreviewLinksComponent,
|
|
13967
15382
|
ProductMultiSelectorDialogComponent,
|
|
13968
15383
|
ProductSearchInputComponent,
|
|
15384
|
+
ContextMenuComponent,
|
|
15385
|
+
RawHtmlDialogComponent,
|
|
15386
|
+
BulkActionMenuComponent,
|
|
15387
|
+
RadioCardComponent,
|
|
15388
|
+
RadioCardFieldsetComponent,
|
|
13969
15389
|
];
|
|
13970
15390
|
var DYNAMIC_FORM_INPUTS = [
|
|
13971
15391
|
TextFormInputComponent,
|
|
@@ -13989,6 +15409,7 @@
|
|
|
13989
15409
|
TextareaFormInputComponent,
|
|
13990
15410
|
RichTextFormInputComponent,
|
|
13991
15411
|
JsonEditorFormInputComponent,
|
|
15412
|
+
HtmlEditorFormInputComponent,
|
|
13992
15413
|
ProductMultiSelectorFormInputComponent,
|
|
13993
15414
|
CombinationModeFormInputComponent,
|
|
13994
15415
|
];
|
|
@@ -14475,6 +15896,54 @@
|
|
|
14475
15896
|
}));
|
|
14476
15897
|
}
|
|
14477
15898
|
|
|
15899
|
+
/**
|
|
15900
|
+
* @description
|
|
15901
|
+
* Resolves to an object containing the Channel code of the given channelId, or if no channelId
|
|
15902
|
+
* is supplied, the code of the activeChannel.
|
|
15903
|
+
*/
|
|
15904
|
+
function getChannelCodeFromUserStatus(dataService, channelId) {
|
|
15905
|
+
return dataService.client
|
|
15906
|
+
.userStatus()
|
|
15907
|
+
.mapSingle(function (_c) {
|
|
15908
|
+
var userStatus = _c.userStatus;
|
|
15909
|
+
var _a, _b;
|
|
15910
|
+
var channelCode = (_b = (_a = userStatus.channels.find(function (c) { return c.id === (channelId !== null && channelId !== void 0 ? channelId : userStatus.activeChannelId); })) === null || _a === void 0 ? void 0 : _a.code) !== null && _b !== void 0 ? _b : 'undefined';
|
|
15911
|
+
return { channelCode: channelCode };
|
|
15912
|
+
})
|
|
15913
|
+
.toPromise();
|
|
15914
|
+
}
|
|
15915
|
+
/**
|
|
15916
|
+
* @description
|
|
15917
|
+
* Resolves to `true` if multiple Channels are set up.
|
|
15918
|
+
*/
|
|
15919
|
+
function isMultiChannel(dataService) {
|
|
15920
|
+
return dataService.client
|
|
15921
|
+
.userStatus()
|
|
15922
|
+
.mapSingle(function (_c) {
|
|
15923
|
+
var userStatus = _c.userStatus;
|
|
15924
|
+
return 1 < userStatus.channels.length;
|
|
15925
|
+
})
|
|
15926
|
+
.toPromise();
|
|
15927
|
+
}
|
|
15928
|
+
/**
|
|
15929
|
+
* @description
|
|
15930
|
+
* Resolves to `true` if the current active Channel is not the default Channel.
|
|
15931
|
+
*/
|
|
15932
|
+
function currentChannelIsNotDefault(dataService) {
|
|
15933
|
+
return dataService.client
|
|
15934
|
+
.userStatus()
|
|
15935
|
+
.mapSingle(function (_c) {
|
|
15936
|
+
var userStatus = _c.userStatus;
|
|
15937
|
+
var _a;
|
|
15938
|
+
if (userStatus.channels.length === 1) {
|
|
15939
|
+
return false;
|
|
15940
|
+
}
|
|
15941
|
+
var defaultChannelId = (_a = userStatus.channels.find(function (c) { return c.code === sharedConstants.DEFAULT_CHANNEL_CODE; })) === null || _a === void 0 ? void 0 : _a.id;
|
|
15942
|
+
return userStatus.activeChannelId !== defaultChannelId;
|
|
15943
|
+
})
|
|
15944
|
+
.toPromise();
|
|
15945
|
+
}
|
|
15946
|
+
|
|
14478
15947
|
/**
|
|
14479
15948
|
* @description
|
|
14480
15949
|
* Given a translatable entity, returns the translation in the specified LanguageCode if
|
|
@@ -14566,7 +16035,68 @@
|
|
|
14566
16035
|
}
|
|
14567
16036
|
|
|
14568
16037
|
// Auto-generated by the set-version.js script.
|
|
14569
|
-
var ADMIN_UI_VERSION = '1.
|
|
16038
|
+
var ADMIN_UI_VERSION = '1.8.1';
|
|
16039
|
+
|
|
16040
|
+
/**
|
|
16041
|
+
* @description
|
|
16042
|
+
* Registers a custom {@link BulkAction} which can be invoked from the bulk action menu
|
|
16043
|
+
* of any supported list view.
|
|
16044
|
+
*
|
|
16045
|
+
* This allows you to provide custom functionality that can operate on any of the selected
|
|
16046
|
+
* items in the list view.
|
|
16047
|
+
*
|
|
16048
|
+
* In this example, imagine we have an integration with a 3rd-party text translation service. This
|
|
16049
|
+
* bulk action allows us to select multiple products from the product list view, and send them for
|
|
16050
|
+
* translation via a custom service which integrates with the translation service's API.
|
|
16051
|
+
*
|
|
16052
|
+
* @example
|
|
16053
|
+
* ```TypeScript
|
|
16054
|
+
* import { NgModule } from '\@angular/core';
|
|
16055
|
+
* import { ModalService, registerBulkAction, SharedModule } from '\@vendure/admin-ui/core';
|
|
16056
|
+
*
|
|
16057
|
+
* \@NgModule({
|
|
16058
|
+
* imports: [SharedModule],
|
|
16059
|
+
* providers: [
|
|
16060
|
+
* ProductDataTranslationService,
|
|
16061
|
+
* registerBulkAction({
|
|
16062
|
+
* location: 'product-list',
|
|
16063
|
+
* label: 'Send to translation service',
|
|
16064
|
+
* icon: 'language',
|
|
16065
|
+
* onClick: ({ injector, selection }) => {
|
|
16066
|
+
* const modalService = injector.get(ModalService);
|
|
16067
|
+
* const translationService = injector.get(ProductDataTranslationService);
|
|
16068
|
+
* modalService
|
|
16069
|
+
* .dialog({
|
|
16070
|
+
* title: `Send ${selection.length} products for translation?`,
|
|
16071
|
+
* buttons: [
|
|
16072
|
+
* { type: 'secondary', label: 'cancel' },
|
|
16073
|
+
* { type: 'primary', label: 'send', returnValue: true },
|
|
16074
|
+
* ],
|
|
16075
|
+
* })
|
|
16076
|
+
* .subscribe(response => {
|
|
16077
|
+
* if (response) {
|
|
16078
|
+
* translationService.sendForTranslation(selection.map(item => item.productId));
|
|
16079
|
+
* }
|
|
16080
|
+
* });
|
|
16081
|
+
* },
|
|
16082
|
+
* }),
|
|
16083
|
+
* ],
|
|
16084
|
+
* })
|
|
16085
|
+
* export class MyUiExtensionModule {}
|
|
16086
|
+
* ```
|
|
16087
|
+
* @since 1.8.0
|
|
16088
|
+
* @docsCategory bulk-actions
|
|
16089
|
+
*/
|
|
16090
|
+
function registerBulkAction(bulkAction) {
|
|
16091
|
+
return {
|
|
16092
|
+
provide: i0.APP_INITIALIZER,
|
|
16093
|
+
multi: true,
|
|
16094
|
+
useFactory: function (registry) { return function () {
|
|
16095
|
+
registry.registerBulkAction(bulkAction);
|
|
16096
|
+
}; },
|
|
16097
|
+
deps: [BulkActionRegistryService],
|
|
16098
|
+
};
|
|
16099
|
+
}
|
|
14570
16100
|
|
|
14571
16101
|
/**
|
|
14572
16102
|
* Responsible for registering dashboard widget components and querying for layouts.
|
|
@@ -14597,9 +16127,6 @@
|
|
|
14597
16127
|
});
|
|
14598
16128
|
};
|
|
14599
16129
|
DashboardWidgetService.prototype.getWidgetById = function (id) {
|
|
14600
|
-
if (!this.registry.has(id)) {
|
|
14601
|
-
throw new Error("No widget was found with the id \"" + id + "\"");
|
|
14602
|
-
}
|
|
14603
16130
|
return this.registry.get(id);
|
|
14604
16131
|
};
|
|
14605
16132
|
DashboardWidgetService.prototype.setDefaultLayout = function (layout) {
|
|
@@ -14807,16 +16334,21 @@
|
|
|
14807
16334
|
|
|
14808
16335
|
exports.ADDRESS_FRAGMENT = ADDRESS_FRAGMENT;
|
|
14809
16336
|
exports.ADD_CUSTOMERS_TO_GROUP = ADD_CUSTOMERS_TO_GROUP;
|
|
16337
|
+
exports.ADD_ITEM_TO_DRAFT_ORDER = ADD_ITEM_TO_DRAFT_ORDER;
|
|
14810
16338
|
exports.ADD_MANUAL_PAYMENT_TO_ORDER = ADD_MANUAL_PAYMENT_TO_ORDER;
|
|
14811
16339
|
exports.ADD_MEMBERS_TO_ZONE = ADD_MEMBERS_TO_ZONE;
|
|
14812
16340
|
exports.ADD_NOTE_TO_CUSTOMER = ADD_NOTE_TO_CUSTOMER;
|
|
14813
16341
|
exports.ADD_NOTE_TO_ORDER = ADD_NOTE_TO_ORDER;
|
|
14814
16342
|
exports.ADD_OPTION_GROUP_TO_PRODUCT = ADD_OPTION_GROUP_TO_PRODUCT;
|
|
14815
16343
|
exports.ADD_OPTION_TO_GROUP = ADD_OPTION_TO_GROUP;
|
|
16344
|
+
exports.ADJUST_DRAFT_ORDER_LINE = ADJUST_DRAFT_ORDER_LINE;
|
|
14816
16345
|
exports.ADMINISTRATOR_FRAGMENT = ADMINISTRATOR_FRAGMENT;
|
|
14817
16346
|
exports.ADMIN_UI_VERSION = ADMIN_UI_VERSION;
|
|
14818
16347
|
exports.ALL_CUSTOM_FIELDS_FRAGMENT = ALL_CUSTOM_FIELDS_FRAGMENT;
|
|
16348
|
+
exports.APPLY_COUPON_CODE_TO_DRAFT_ORDER = APPLY_COUPON_CODE_TO_DRAFT_ORDER;
|
|
14819
16349
|
exports.ASSET_FRAGMENT = ASSET_FRAGMENT;
|
|
16350
|
+
exports.ASSIGN_COLLECTIONS_TO_CHANNEL = ASSIGN_COLLECTIONS_TO_CHANNEL;
|
|
16351
|
+
exports.ASSIGN_FACETS_TO_CHANNEL = ASSIGN_FACETS_TO_CHANNEL;
|
|
14820
16352
|
exports.ASSIGN_PRODUCTS_TO_CHANNEL = ASSIGN_PRODUCTS_TO_CHANNEL;
|
|
14821
16353
|
exports.ASSIGN_ROLE_TO_ADMINISTRATOR = ASSIGN_ROLE_TO_ADMINISTRATOR;
|
|
14822
16354
|
exports.ASSIGN_VARIANTS_TO_CHANNEL = ASSIGN_VARIANTS_TO_CHANNEL;
|
|
@@ -14844,12 +16376,15 @@
|
|
|
14844
16376
|
exports.AuthGuard = AuthGuard;
|
|
14845
16377
|
exports.AuthService = AuthService;
|
|
14846
16378
|
exports.BOOLEAN_CUSTOM_FIELD_FRAGMENT = BOOLEAN_CUSTOM_FIELD_FRAGMENT;
|
|
16379
|
+
exports.BaseCodeEditorFormInputComponent = BaseCodeEditorFormInputComponent;
|
|
14847
16380
|
exports.BaseDataService = BaseDataService;
|
|
14848
16381
|
exports.BaseDetailComponent = BaseDetailComponent;
|
|
14849
16382
|
exports.BaseEntityResolver = BaseEntityResolver;
|
|
14850
16383
|
exports.BaseListComponent = BaseListComponent;
|
|
14851
16384
|
exports.BooleanFormInputComponent = BooleanFormInputComponent;
|
|
14852
16385
|
exports.BreadcrumbComponent = BreadcrumbComponent;
|
|
16386
|
+
exports.BulkActionMenuComponent = BulkActionMenuComponent;
|
|
16387
|
+
exports.BulkActionRegistryService = BulkActionRegistryService;
|
|
14853
16388
|
exports.CANCEL_JOB = CANCEL_JOB;
|
|
14854
16389
|
exports.CANCEL_ORDER = CANCEL_ORDER;
|
|
14855
16390
|
exports.CANCEL_PAYMENT = CANCEL_PAYMENT;
|
|
@@ -14866,6 +16401,7 @@
|
|
|
14866
16401
|
exports.CREATE_CUSTOMER = CREATE_CUSTOMER;
|
|
14867
16402
|
exports.CREATE_CUSTOMER_ADDRESS = CREATE_CUSTOMER_ADDRESS;
|
|
14868
16403
|
exports.CREATE_CUSTOMER_GROUP = CREATE_CUSTOMER_GROUP;
|
|
16404
|
+
exports.CREATE_DRAFT_ORDER = CREATE_DRAFT_ORDER;
|
|
14869
16405
|
exports.CREATE_FACET = CREATE_FACET;
|
|
14870
16406
|
exports.CREATE_FACET_VALUES = CREATE_FACET_VALUES;
|
|
14871
16407
|
exports.CREATE_FULFILLMENT = CREATE_FULFILLMENT;
|
|
@@ -14896,6 +16432,8 @@
|
|
|
14896
16432
|
exports.CombinationModeFormInputComponent = CombinationModeFormInputComponent;
|
|
14897
16433
|
exports.ComponentRegistryService = ComponentRegistryService;
|
|
14898
16434
|
exports.ConfigurableInputComponent = ConfigurableInputComponent;
|
|
16435
|
+
exports.ContextMenuComponent = ContextMenuComponent;
|
|
16436
|
+
exports.ContextMenuService = ContextMenuService;
|
|
14899
16437
|
exports.CoreModule = CoreModule;
|
|
14900
16438
|
exports.CurrencyFormInputComponent = CurrencyFormInputComponent;
|
|
14901
16439
|
exports.CurrencyInputComponent = CurrencyInputComponent;
|
|
@@ -14913,16 +16451,20 @@
|
|
|
14913
16451
|
exports.DELETE_ASSETS = DELETE_ASSETS;
|
|
14914
16452
|
exports.DELETE_CHANNEL = DELETE_CHANNEL;
|
|
14915
16453
|
exports.DELETE_COLLECTION = DELETE_COLLECTION;
|
|
16454
|
+
exports.DELETE_COLLECTIONS = DELETE_COLLECTIONS;
|
|
14916
16455
|
exports.DELETE_COUNTRY = DELETE_COUNTRY;
|
|
14917
16456
|
exports.DELETE_CUSTOMER = DELETE_CUSTOMER;
|
|
14918
16457
|
exports.DELETE_CUSTOMER_ADDRESS = DELETE_CUSTOMER_ADDRESS;
|
|
14919
16458
|
exports.DELETE_CUSTOMER_GROUP = DELETE_CUSTOMER_GROUP;
|
|
14920
16459
|
exports.DELETE_CUSTOMER_NOTE = DELETE_CUSTOMER_NOTE;
|
|
16460
|
+
exports.DELETE_DRAFT_ORDER = DELETE_DRAFT_ORDER;
|
|
14921
16461
|
exports.DELETE_FACET = DELETE_FACET;
|
|
16462
|
+
exports.DELETE_FACETS = DELETE_FACETS;
|
|
14922
16463
|
exports.DELETE_FACET_VALUES = DELETE_FACET_VALUES;
|
|
14923
16464
|
exports.DELETE_ORDER_NOTE = DELETE_ORDER_NOTE;
|
|
14924
16465
|
exports.DELETE_PAYMENT_METHOD = DELETE_PAYMENT_METHOD;
|
|
14925
16466
|
exports.DELETE_PRODUCT = DELETE_PRODUCT;
|
|
16467
|
+
exports.DELETE_PRODUCTS = DELETE_PRODUCTS;
|
|
14926
16468
|
exports.DELETE_PRODUCT_OPTION = DELETE_PRODUCT_OPTION;
|
|
14927
16469
|
exports.DELETE_PRODUCT_VARIANT = DELETE_PRODUCT_VARIANT;
|
|
14928
16470
|
exports.DELETE_PROMOTION = DELETE_PROMOTION;
|
|
@@ -14933,6 +16475,7 @@
|
|
|
14933
16475
|
exports.DELETE_TAX_RATE = DELETE_TAX_RATE;
|
|
14934
16476
|
exports.DELETE_ZONE = DELETE_ZONE;
|
|
14935
16477
|
exports.DISCOUNT_FRAGMENT = DISCOUNT_FRAGMENT;
|
|
16478
|
+
exports.DRAFT_ORDER_ELIGIBLE_SHIPPING_METHODS = DRAFT_ORDER_ELIGIBLE_SHIPPING_METHODS;
|
|
14936
16479
|
exports.DashboardWidgetService = DashboardWidgetService;
|
|
14937
16480
|
exports.DataModule = DataModule;
|
|
14938
16481
|
exports.DataService = DataService;
|
|
@@ -15047,9 +16590,11 @@
|
|
|
15047
16590
|
exports.HealthCheckService = HealthCheckService;
|
|
15048
16591
|
exports.HelpTooltipComponent = HelpTooltipComponent;
|
|
15049
16592
|
exports.HistoryEntryDetailComponent = HistoryEntryDetailComponent;
|
|
16593
|
+
exports.HtmlEditorFormInputComponent = HtmlEditorFormInputComponent;
|
|
15050
16594
|
exports.HttpLoaderFactory = HttpLoaderFactory;
|
|
15051
16595
|
exports.I18nService = I18nService;
|
|
15052
16596
|
exports.INT_CUSTOM_FIELD_FRAGMENT = INT_CUSTOM_FIELD_FRAGMENT;
|
|
16597
|
+
exports.IconSize = IconSize;
|
|
15053
16598
|
exports.IfDefaultChannelActiveDirective = IfDefaultChannelActiveDirective;
|
|
15054
16599
|
exports.IfDirectiveBase = IfDirectiveBase;
|
|
15055
16600
|
exports.IfMultichannelDirective = IfMultichannelDirective;
|
|
@@ -15117,7 +16662,11 @@
|
|
|
15117
16662
|
exports.REFUND_ORDER = REFUND_ORDER;
|
|
15118
16663
|
exports.REINDEX = REINDEX;
|
|
15119
16664
|
exports.RELATION_CUSTOM_FIELD_FRAGMENT = RELATION_CUSTOM_FIELD_FRAGMENT;
|
|
16665
|
+
exports.REMOVE_COLLECTIONS_FROM_CHANNEL = REMOVE_COLLECTIONS_FROM_CHANNEL;
|
|
16666
|
+
exports.REMOVE_COUPON_CODE_FROM_DRAFT_ORDER = REMOVE_COUPON_CODE_FROM_DRAFT_ORDER;
|
|
15120
16667
|
exports.REMOVE_CUSTOMERS_FROM_GROUP = REMOVE_CUSTOMERS_FROM_GROUP;
|
|
16668
|
+
exports.REMOVE_DRAFT_ORDER_LINE = REMOVE_DRAFT_ORDER_LINE;
|
|
16669
|
+
exports.REMOVE_FACETS_FROM_CHANNEL = REMOVE_FACETS_FROM_CHANNEL;
|
|
15121
16670
|
exports.REMOVE_MEMBERS_FROM_ZONE = REMOVE_MEMBERS_FROM_ZONE;
|
|
15122
16671
|
exports.REMOVE_OPTION_GROUP_FROM_PRODUCT = REMOVE_OPTION_GROUP_FROM_PRODUCT;
|
|
15123
16672
|
exports.REMOVE_PRODUCTS_FROM_CHANNEL = REMOVE_PRODUCTS_FROM_CHANNEL;
|
|
@@ -15126,6 +16675,9 @@
|
|
|
15126
16675
|
exports.REQUEST_STARTED = REQUEST_STARTED;
|
|
15127
16676
|
exports.ROLE_FRAGMENT = ROLE_FRAGMENT;
|
|
15128
16677
|
exports.RUN_PENDING_SEARCH_INDEX_UPDATES = RUN_PENDING_SEARCH_INDEX_UPDATES;
|
|
16678
|
+
exports.RadioCardComponent = RadioCardComponent;
|
|
16679
|
+
exports.RadioCardFieldsetComponent = RadioCardFieldsetComponent;
|
|
16680
|
+
exports.RawHtmlDialogComponent = RawHtmlDialogComponent;
|
|
15129
16681
|
exports.RelationAssetInputComponent = RelationAssetInputComponent;
|
|
15130
16682
|
exports.RelationCardComponent = RelationCardComponent;
|
|
15131
16683
|
exports.RelationCardDetailDirective = RelationCardDetailDirective;
|
|
@@ -15144,8 +16696,12 @@
|
|
|
15144
16696
|
exports.SET_ACTIVE_CHANNEL = SET_ACTIVE_CHANNEL;
|
|
15145
16697
|
exports.SET_AS_LOGGED_IN = SET_AS_LOGGED_IN;
|
|
15146
16698
|
exports.SET_AS_LOGGED_OUT = SET_AS_LOGGED_OUT;
|
|
16699
|
+
exports.SET_BILLING_ADDRESS_FOR_DRAFT_ORDER = SET_BILLING_ADDRESS_FOR_DRAFT_ORDER;
|
|
15147
16700
|
exports.SET_CONTENT_LANGUAGE = SET_CONTENT_LANGUAGE;
|
|
16701
|
+
exports.SET_CUSTOMER_FOR_DRAFT_ORDER = SET_CUSTOMER_FOR_DRAFT_ORDER;
|
|
15148
16702
|
exports.SET_DISPLAY_UI_EXTENSION_POINTS = SET_DISPLAY_UI_EXTENSION_POINTS;
|
|
16703
|
+
exports.SET_DRAFT_ORDER_SHIPPING_METHOD = SET_DRAFT_ORDER_SHIPPING_METHOD;
|
|
16704
|
+
exports.SET_SHIPPING_ADDRESS_FOR_DRAFT_ORDER = SET_SHIPPING_ADDRESS_FOR_DRAFT_ORDER;
|
|
15149
16705
|
exports.SET_UI_LANGUAGE_AND_LOCALE = SET_UI_LANGUAGE_AND_LOCALE;
|
|
15150
16706
|
exports.SET_UI_LOCALE = SET_UI_LOCALE;
|
|
15151
16707
|
exports.SET_UI_THEME = SET_UI_THEME;
|
|
@@ -15166,6 +16722,7 @@
|
|
|
15166
16722
|
exports.StateI18nTokenPipe = StateI18nTokenPipe;
|
|
15167
16723
|
exports.StatusBadgeComponent = StatusBadgeComponent;
|
|
15168
16724
|
exports.StringToColorPipe = StringToColorPipe;
|
|
16725
|
+
exports.SubMenuWithIcon = SubMenuWithIcon;
|
|
15169
16726
|
exports.TAG_FRAGMENT = TAG_FRAGMENT;
|
|
15170
16727
|
exports.TAX_CATEGORY_FRAGMENT = TAX_CATEGORY_FRAGMENT;
|
|
15171
16728
|
exports.TAX_RATE_FRAGMENT = TAX_RATE_FRAGMENT;
|
|
@@ -15221,6 +16778,7 @@
|
|
|
15221
16778
|
exports.addCustomFields = addCustomFields;
|
|
15222
16779
|
exports.addNavMenuItem = addNavMenuItem;
|
|
15223
16780
|
exports.addNavMenuSection = addNavMenuSection;
|
|
16781
|
+
exports.addTable = addTable;
|
|
15224
16782
|
exports.blockQuoteRule = blockQuoteRule;
|
|
15225
16783
|
exports.buildInputRules = buildInputRules;
|
|
15226
16784
|
exports.buildKeymap = buildKeymap;
|
|
@@ -15234,6 +16792,8 @@
|
|
|
15234
16792
|
exports.createApollo = createApollo;
|
|
15235
16793
|
exports.createResolveData = createResolveData;
|
|
15236
16794
|
exports.createUpdatedTranslatable = createUpdatedTranslatable;
|
|
16795
|
+
exports.currentChannelIsNotDefault = currentChannelIsNotDefault;
|
|
16796
|
+
exports.customMenuPlugin = customMenuPlugin;
|
|
15237
16797
|
exports.dayOfWeekIndex = dayOfWeekIndex;
|
|
15238
16798
|
exports.defaultFormInputs = defaultFormInputs;
|
|
15239
16799
|
exports.detailBreadcrumb = detailBreadcrumb;
|
|
@@ -15241,6 +16801,7 @@
|
|
|
15241
16801
|
exports.findTranslation = findTranslation;
|
|
15242
16802
|
exports.flattenFacetValues = flattenFacetValues;
|
|
15243
16803
|
exports.getAppConfig = getAppConfig;
|
|
16804
|
+
exports.getChannelCodeFromUserStatus = getChannelCodeFromUserStatus;
|
|
15244
16805
|
exports.getClientDefaults = getClientDefaults;
|
|
15245
16806
|
exports.getConfigArgValue = getConfigArgValue;
|
|
15246
16807
|
exports.getDefaultConfigArgValue = getDefaultConfigArgValue;
|
|
@@ -15249,31 +16810,42 @@
|
|
|
15249
16810
|
exports.getLocales = getLocales;
|
|
15250
16811
|
exports.getMarkRange = getMarkRange;
|
|
15251
16812
|
exports.getServerLocation = getServerLocation;
|
|
16813
|
+
exports.getTableMenu = getTableMenu;
|
|
16814
|
+
exports.getTableNodes = getTableNodes;
|
|
15252
16815
|
exports.headingRule = headingRule;
|
|
15253
16816
|
exports.hostExternalFrame = hostExternalFrame;
|
|
16817
|
+
exports.iframeNode = iframeNode;
|
|
16818
|
+
exports.iframeNodeView = iframeNodeView;
|
|
16819
|
+
exports.imageContextMenuPlugin = imageContextMenuPlugin;
|
|
15254
16820
|
exports.initializeServerConfigService = initializeServerConfigService;
|
|
15255
16821
|
exports.insertImageItem = insertImageItem;
|
|
15256
16822
|
exports.interpolateDescription = interpolateDescription;
|
|
15257
16823
|
exports.introspectionResult = result;
|
|
15258
16824
|
exports.isEntityCreateOrUpdateMutation = isEntityCreateOrUpdateMutation;
|
|
16825
|
+
exports.isMultiChannel = isMultiChannel;
|
|
15259
16826
|
exports.jsonValidator = jsonValidator;
|
|
15260
16827
|
exports.linkItem = linkItem;
|
|
15261
16828
|
exports.linkSelectPlugin = linkSelectPlugin;
|
|
15262
16829
|
exports.loadAppConfig = loadAppConfig;
|
|
15263
16830
|
exports.markActive = markActive;
|
|
15264
16831
|
exports.orderedListRule = orderedListRule;
|
|
16832
|
+
exports.rawEditorPlugin = rawEditorPlugin;
|
|
16833
|
+
exports.registerBulkAction = registerBulkAction;
|
|
15265
16834
|
exports.registerCustomDetailComponent = registerCustomDetailComponent;
|
|
15266
16835
|
exports.registerCustomFieldComponent = registerCustomFieldComponent;
|
|
15267
16836
|
exports.registerDashboardWidget = registerDashboardWidget;
|
|
15268
16837
|
exports.registerDefaultFormInputs = registerDefaultFormInputs;
|
|
15269
16838
|
exports.registerFormInputComponent = registerFormInputComponent;
|
|
15270
16839
|
exports.removeReadonlyCustomFields = removeReadonlyCustomFields;
|
|
16840
|
+
exports.renderClarityIcon = renderClarityIcon;
|
|
15271
16841
|
exports.setDashboardWidgetLayout = setDashboardWidgetLayout;
|
|
15272
16842
|
exports.stringToColor = stringToColor;
|
|
16843
|
+
exports.tableContextMenuPlugin = tableContextMenuPlugin;
|
|
15273
16844
|
exports.toConfigurableOperationInput = toConfigurableOperationInput;
|
|
15274
16845
|
exports.transformRelationCustomFieldInputs = transformRelationCustomFieldInputs;
|
|
15275
16846
|
exports.unicodePatternValidator = unicodePatternValidator;
|
|
15276
16847
|
exports.weekDayNames = weekDayNames;
|
|
16848
|
+
exports.wrapInMenuItemWithIcon = wrapInMenuItemWithIcon;
|
|
15277
16849
|
exports.ɵ1 = ɵ1;
|
|
15278
16850
|
exports.ɵ10 = ɵ10;
|
|
15279
16851
|
exports.ɵ2 = ɵ2;
|