@vendure/admin-ui 1.6.3 → 1.7.0
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 +196 -20
- package/bundles/vendure-admin-ui-catalog.umd.js.map +1 -1
- package/bundles/vendure-admin-ui-core.umd.js +309 -327
- package/bundles/vendure-admin-ui-core.umd.js.map +1 -1
- package/bundles/vendure-admin-ui-customer.umd.js +39 -18
- package/bundles/vendure-admin-ui-customer.umd.js.map +1 -1
- package/bundles/vendure-admin-ui-order.umd.js +179 -137
- package/bundles/vendure-admin-ui-order.umd.js.map +1 -1
- package/catalog/components/generate-product-variants/generate-product-variants.component.d.ts +3 -3
- package/catalog/components/option-value-input/option-value-input.component.d.ts +20 -8
- package/catalog/components/product-variants-editor/product-variants-editor.component.d.ts +10 -3
- package/catalog/vendure-admin-ui-catalog.metadata.json +1 -1
- package/core/common/generated-types.d.ts +91 -19
- package/core/common/utilities/configurable-operation-utils.d.ts +4 -2
- package/core/common/version.d.ts +1 -1
- package/core/data/definitions/order-definitions.d.ts +2 -0
- package/core/data/definitions/product-definitions.d.ts +1 -0
- package/core/data/providers/order-data.service.d.ts +1 -0
- package/core/data/providers/product-data.service.d.ts +1 -0
- package/core/shared/components/custom-field-control/custom-field-control.component.d.ts +6 -2
- package/core/shared/components/data-table/data-table.component.d.ts +5 -2
- package/core/shared/components/facet-value-selector/facet-value-selector.component.d.ts +2 -1
- package/core/shared/dynamic-form-inputs/facet-value-form-input/facet-value-form-input.component.d.ts +2 -0
- package/core/shared/dynamic-form-inputs/register-dynamic-input-components.d.ts +2 -1
- package/core/shared/dynamic-form-inputs/select-form-input/select-form-input.component.d.ts +10 -2
- package/core/shared/pipes/custom-field-label.pipe.d.ts +4 -10
- package/core/vendure-admin-ui-core.metadata.json +1 -1
- package/customer/components/customer-group-list/customer-group-list.component.d.ts +6 -4
- package/customer/vendure-admin-ui-customer.metadata.json +1 -1
- package/esm2015/catalog/components/generate-product-variants/generate-product-variants.component.js +12 -5
- package/esm2015/catalog/components/option-value-input/option-value-input.component.js +62 -12
- package/esm2015/catalog/components/product-variants-editor/product-variants-editor.component.js +109 -11
- package/esm2015/core/common/generated-types.js +2 -1
- package/esm2015/core/common/introspection-result.js +191 -255
- package/esm2015/core/common/utilities/configurable-operation-utils.js +13 -10
- package/esm2015/core/common/version.js +2 -2
- package/esm2015/core/components/app-shell/app-shell.component.js +1 -1
- package/esm2015/core/components/main-nav/main-nav.component.js +1 -1
- package/esm2015/core/data/definitions/order-definitions.js +445 -431
- package/esm2015/core/data/definitions/product-definitions.js +9 -1
- package/esm2015/core/data/providers/order-data.service.js +7 -2
- package/esm2015/core/data/providers/product-data.service.js +5 -2
- package/esm2015/core/shared/components/custom-field-control/custom-field-control.component.js +9 -3
- package/esm2015/core/shared/components/data-table/data-table.component.js +9 -2
- package/esm2015/core/shared/components/facet-value-selector/facet-value-selector.component.js +5 -2
- package/esm2015/core/shared/dynamic-form-inputs/facet-value-form-input/facet-value-form-input.component.js +11 -2
- package/esm2015/core/shared/dynamic-form-inputs/select-form-input/select-form-input.component.js +15 -2
- package/esm2015/core/shared/pipes/custom-field-label.pipe.js +4 -19
- package/esm2015/customer/components/customer-group-list/customer-group-list.component.js +25 -12
- package/esm2015/order/components/fulfill-order-dialog/fulfill-order-dialog.component.js +3 -2
- package/esm2015/order/components/fulfillment-detail/fulfillment-detail.component.js +9 -18
- package/esm2015/order/components/line-fulfillment/line-fulfillment.component.js +10 -21
- package/esm2015/order/components/order-custom-fields-card/order-custom-fields-card.component.js +30 -4
- package/esm2015/order/components/order-detail/order-detail.component.js +79 -38
- package/esm2015/order/components/order-list/order-list.component.js +22 -15
- package/esm2015/order/components/order-payment-card/order-payment-card.component.js +2 -2
- package/esm2015/order/components/order-table/order-table.component.js +10 -2
- package/fesm2015/vendure-admin-ui-catalog.js +177 -22
- package/fesm2015/vendure-admin-ui-catalog.js.map +1 -1
- package/fesm2015/vendure-admin-ui-core.js +725 -733
- package/fesm2015/vendure-admin-ui-core.js.map +1 -1
- package/fesm2015/vendure-admin-ui-customer.js +23 -11
- package/fesm2015/vendure-admin-ui-customer.js.map +1 -1
- package/fesm2015/vendure-admin-ui-order.js +155 -94
- package/fesm2015/vendure-admin-ui-order.js.map +1 -1
- package/order/components/line-fulfillment/line-fulfillment.component.d.ts +2 -2
- package/order/components/modification-detail/modification-detail.component.d.ts +1 -1
- package/order/components/order-custom-fields-card/order-custom-fields-card.component.d.ts +4 -2
- package/order/components/order-list/order-list.component.d.ts +1 -0
- package/order/components/order-table/order-table.component.d.ts +1 -0
- package/order/vendure-admin-ui-order.metadata.json +1 -1
- package/package.json +2 -2
- package/static/i18n-messages/cs.json +6 -2
- package/static/i18n-messages/de.json +6 -2
- package/static/i18n-messages/en.json +8 -3
- package/static/i18n-messages/es.json +6 -2
- package/static/i18n-messages/fr.json +6 -2
- package/static/i18n-messages/it.json +6 -2
- package/static/i18n-messages/pl.json +6 -2
- package/static/i18n-messages/pt_BR.json +6 -2
- package/static/i18n-messages/pt_PT.json +6 -2
- package/static/i18n-messages/ru.json +6 -2
- package/static/i18n-messages/uk.json +6 -2
- package/static/i18n-messages/zh_Hans.json +6 -2
- package/static/i18n-messages/zh_Hant.json +6 -2
- package/static/styles/_variables.scss +3 -0
- package/static/styles/global/_sass-overrides.scss +3 -0
- package/static/styles/global/_utilities.scss +1 -0
- package/static/styles/styles.scss +1 -0
- package/static/styles/ui-extension-theme.scss +1 -0
- package/static/theme.min.css +1 -1
|
@@ -666,8 +666,8 @@
|
|
|
666
666
|
var GET_TAX_RATE_LIST = apolloAngular.gql(templateObject_23$2 || (templateObject_23$2 = __makeTemplateObject(["\n query GetTaxRateList($options: TaxRateListOptions) {\n taxRates(options: $options) {\n items {\n ...TaxRate\n }\n totalItems\n }\n }\n ", "\n"], ["\n query GetTaxRateList($options: TaxRateListOptions) {\n taxRates(options: $options) {\n items {\n ...TaxRate\n }\n totalItems\n }\n }\n ", "\n"])), TAX_RATE_FRAGMENT);
|
|
667
667
|
var GET_TAX_RATE_LIST_SIMPLE = apolloAngular.gql(templateObject_24$2 || (templateObject_24$2 = __makeTemplateObject(["\n query GetTaxRateListSimple($options: TaxRateListOptions) {\n taxRates(options: $options) {\n items {\n id\n createdAt\n updatedAt\n name\n enabled\n value\n category {\n id\n name\n }\n zone {\n id\n name\n }\n }\n totalItems\n }\n }\n"], ["\n query GetTaxRateListSimple($options: TaxRateListOptions) {\n taxRates(options: $options) {\n items {\n id\n createdAt\n updatedAt\n name\n enabled\n value\n category {\n id\n name\n }\n zone {\n id\n name\n }\n }\n totalItems\n }\n }\n"])));
|
|
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
|
-
var CREATE_TAX_RATE = apolloAngular.gql(templateObject_26$
|
|
670
|
-
var UPDATE_TAX_RATE = apolloAngular.gql(templateObject_27$
|
|
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
|
+
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
671
|
var DELETE_TAX_RATE = apolloAngular.gql(templateObject_28$1 || (templateObject_28$1 = __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
672
|
var CHANNEL_FRAGMENT = apolloAngular.gql(templateObject_29$1 || (templateObject_29$1 = __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
673
|
var GET_CHANNELS = apolloAngular.gql(templateObject_30$1 || (templateObject_30$1 = __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);
|
|
@@ -685,7 +685,7 @@
|
|
|
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
|
-
var UPDATE_GLOBAL_SETTINGS = apolloAngular.gql(templateObject_45 || (templateObject_45 = __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);
|
|
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
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"])));
|
|
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);
|
|
@@ -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$3, templateObject_12$3, templateObject_13$3, 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$
|
|
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$3, templateObject_12$3, templateObject_13$3, 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$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$1, templateObject_41$1, templateObject_42$1, templateObject_43$1, templateObject_44$1, templateObject_45$1, templateObject_46, 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();
|
|
@@ -1254,26 +1254,27 @@
|
|
|
1254
1254
|
var GET_ASSET = apolloAngular.gql(templateObject_23$1 || (templateObject_23$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);
|
|
1255
1255
|
var CREATE_ASSETS = apolloAngular.gql(templateObject_24$1 || (templateObject_24$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);
|
|
1256
1256
|
var UPDATE_ASSET = apolloAngular.gql(templateObject_25$1 || (templateObject_25$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);
|
|
1257
|
-
var DELETE_ASSETS = apolloAngular.gql(templateObject_26 || (templateObject_26 = __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"])));
|
|
1258
|
-
var SEARCH_PRODUCTS = apolloAngular.gql(templateObject_27 || (templateObject_27 = __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"])));
|
|
1257
|
+
var DELETE_ASSETS = apolloAngular.gql(templateObject_26$1 || (templateObject_26$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"])));
|
|
1258
|
+
var SEARCH_PRODUCTS = apolloAngular.gql(templateObject_27$1 || (templateObject_27$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"])));
|
|
1259
1259
|
var PRODUCT_SELECTOR_SEARCH = apolloAngular.gql(templateObject_28 || (templateObject_28 = __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"])));
|
|
1260
1260
|
var UPDATE_PRODUCT_OPTION_GROUP = apolloAngular.gql(templateObject_29 || (templateObject_29 = __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);
|
|
1261
1261
|
var UPDATE_PRODUCT_OPTION = apolloAngular.gql(templateObject_30 || (templateObject_30 = __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);
|
|
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
|
|
1262
|
+
var DELETE_PRODUCT_OPTION = apolloAngular.gql(templateObject_31 || (templateObject_31 = __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"])));
|
|
1263
|
+
var DELETE_PRODUCT_VARIANT = apolloAngular.gql(templateObject_32 || (templateObject_32 = __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"])));
|
|
1264
|
+
var GET_PRODUCT_VARIANT_OPTIONS = apolloAngular.gql(templateObject_33 || (templateObject_33 = __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);
|
|
1265
|
+
var ASSIGN_PRODUCTS_TO_CHANNEL = apolloAngular.gql(templateObject_34 || (templateObject_34 = __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"])));
|
|
1266
|
+
var ASSIGN_VARIANTS_TO_CHANNEL = apolloAngular.gql(templateObject_35 || (templateObject_35 = __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"])));
|
|
1267
|
+
var REMOVE_PRODUCTS_FROM_CHANNEL = apolloAngular.gql(templateObject_36 || (templateObject_36 = __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"])));
|
|
1268
|
+
var REMOVE_VARIANTS_FROM_CHANNEL = apolloAngular.gql(templateObject_37 || (templateObject_37 = __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"])));
|
|
1269
|
+
var GET_PRODUCT_VARIANT = apolloAngular.gql(templateObject_38 || (templateObject_38 = __makeTemplateObject(["\n query GetProductVariant($id: ID!) {\n productVariant(id: $id) {\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 }\n"], ["\n query GetProductVariant($id: ID!) {\n productVariant(id: $id) {\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 }\n"])));
|
|
1270
|
+
var GET_PRODUCT_VARIANT_LIST_SIMPLE = apolloAngular.gql(templateObject_39 || (templateObject_39 = __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"])));
|
|
1271
|
+
var GET_PRODUCT_VARIANT_LIST = apolloAngular.gql(templateObject_40 || (templateObject_40 = __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);
|
|
1272
|
+
var GET_TAG_LIST = apolloAngular.gql(templateObject_41 || (templateObject_41 = __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);
|
|
1273
|
+
var GET_TAG = apolloAngular.gql(templateObject_42 || (templateObject_42 = __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);
|
|
1274
|
+
var CREATE_TAG = apolloAngular.gql(templateObject_43 || (templateObject_43 = __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);
|
|
1275
|
+
var UPDATE_TAG = apolloAngular.gql(templateObject_44 || (templateObject_44 = __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);
|
|
1276
|
+
var DELETE_TAG = apolloAngular.gql(templateObject_45 || (templateObject_45 = __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"])));
|
|
1277
|
+
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$2, templateObject_12$2, templateObject_13$2, 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, templateObject_29, templateObject_30, templateObject_31, templateObject_32, templateObject_33, templateObject_34, templateObject_35, templateObject_36, templateObject_37, templateObject_38, templateObject_39, templateObject_40, templateObject_41, templateObject_42, templateObject_43, templateObject_44, templateObject_45;
|
|
1277
1278
|
|
|
1278
1279
|
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);
|
|
1279
1280
|
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);
|
|
@@ -1580,31 +1581,33 @@
|
|
|
1580
1581
|
}());
|
|
1581
1582
|
|
|
1582
1583
|
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"])));
|
|
1583
|
-
var
|
|
1584
|
-
var
|
|
1585
|
-
var
|
|
1586
|
-
var
|
|
1587
|
-
var
|
|
1588
|
-
var
|
|
1589
|
-
var
|
|
1590
|
-
var
|
|
1591
|
-
var
|
|
1592
|
-
var
|
|
1593
|
-
var
|
|
1594
|
-
var
|
|
1595
|
-
var
|
|
1596
|
-
var
|
|
1597
|
-
var
|
|
1598
|
-
var
|
|
1599
|
-
var
|
|
1600
|
-
var
|
|
1601
|
-
var
|
|
1602
|
-
var
|
|
1603
|
-
var
|
|
1604
|
-
var
|
|
1605
|
-
var
|
|
1606
|
-
var
|
|
1607
|
-
var
|
|
1584
|
+
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"])));
|
|
1585
|
+
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"])));
|
|
1586
|
+
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"])));
|
|
1587
|
+
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"])));
|
|
1588
|
+
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"])));
|
|
1589
|
+
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"])));
|
|
1590
|
+
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);
|
|
1591
|
+
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);
|
|
1592
|
+
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);
|
|
1593
|
+
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);
|
|
1594
|
+
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);
|
|
1595
|
+
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);
|
|
1596
|
+
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);
|
|
1597
|
+
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);
|
|
1598
|
+
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);
|
|
1599
|
+
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);
|
|
1600
|
+
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"])));
|
|
1601
|
+
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"])));
|
|
1602
|
+
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"])));
|
|
1603
|
+
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"])));
|
|
1604
|
+
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);
|
|
1605
|
+
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);
|
|
1606
|
+
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);
|
|
1607
|
+
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"])));
|
|
1608
|
+
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);
|
|
1609
|
+
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);
|
|
1610
|
+
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;
|
|
1608
1611
|
|
|
1609
1612
|
var OrderDataService = /** @class */ (function () {
|
|
1610
1613
|
function OrderDataService(baseDataService) {
|
|
@@ -1630,6 +1633,11 @@
|
|
|
1630
1633
|
id: id,
|
|
1631
1634
|
});
|
|
1632
1635
|
};
|
|
1636
|
+
OrderDataService.prototype.cancelPayment = function (id) {
|
|
1637
|
+
return this.baseDataService.mutate(CANCEL_PAYMENT, {
|
|
1638
|
+
id: id,
|
|
1639
|
+
});
|
|
1640
|
+
};
|
|
1633
1641
|
OrderDataService.prototype.transitionPaymentToState = function (id, state) {
|
|
1634
1642
|
return this.baseDataService.mutate(TRANSITION_PAYMENT_TO_STATE, {
|
|
1635
1643
|
id: id,
|
|
@@ -2054,6 +2062,7 @@
|
|
|
2054
2062
|
ErrorCode["LANGUAGE_NOT_AVAILABLE_ERROR"] = "LANGUAGE_NOT_AVAILABLE_ERROR";
|
|
2055
2063
|
ErrorCode["CHANNEL_DEFAULT_LANGUAGE_ERROR"] = "CHANNEL_DEFAULT_LANGUAGE_ERROR";
|
|
2056
2064
|
ErrorCode["SETTLE_PAYMENT_ERROR"] = "SETTLE_PAYMENT_ERROR";
|
|
2065
|
+
ErrorCode["CANCEL_PAYMENT_ERROR"] = "CANCEL_PAYMENT_ERROR";
|
|
2057
2066
|
ErrorCode["EMPTY_ORDER_LINE_SELECTION_ERROR"] = "EMPTY_ORDER_LINE_SELECTION_ERROR";
|
|
2058
2067
|
ErrorCode["ITEMS_ALREADY_FULFILLED_ERROR"] = "ITEMS_ALREADY_FULFILLED_ERROR";
|
|
2059
2068
|
ErrorCode["INVALID_FULFILLMENT_HANDLER_ERROR"] = "INVALID_FULFILLMENT_HANDLER_ERROR";
|
|
@@ -2828,6 +2837,9 @@
|
|
|
2828
2837
|
ProductDataService.prototype.addOptionToGroup = function (input) {
|
|
2829
2838
|
return this.baseDataService.mutate(ADD_OPTION_TO_GROUP, { input: input });
|
|
2830
2839
|
};
|
|
2840
|
+
ProductDataService.prototype.deleteProductOption = function (id) {
|
|
2841
|
+
return this.baseDataService.mutate(DELETE_PRODUCT_OPTION, { id: id });
|
|
2842
|
+
};
|
|
2831
2843
|
ProductDataService.prototype.removeOptionGroupFromProduct = function (variables) {
|
|
2832
2844
|
return this.baseDataService.mutate(REMOVE_OPTION_GROUP_FROM_PRODUCT, variables);
|
|
2833
2845
|
};
|
|
@@ -4209,7 +4221,7 @@
|
|
|
4209
4221
|
{ type: i0.Component, args: [{
|
|
4210
4222
|
selector: 'vdr-app-shell',
|
|
4211
4223
|
template: "<clr-main-container>\r\n <clr-header>\r\n <div class=\"branding\">\r\n <a [routerLink]=\"['/']\"><img src=\"assets/logo-75px.png\" class=\"logo\" /><span class=\"wordmark\" *ngIf=\"!hideVendureBranding\">vendure</span></a>\r\n </div>\r\n <div class=\"header-nav\"></div>\r\n <div class=\"header-actions\">\r\n <vdr-channel-switcher *vdrIfMultichannel></vdr-channel-switcher>\r\n <vdr-user-menu [userName]=\"userName$ | async\"\r\n [uiLanguageAndLocale]=\"uiLanguageAndLocale$ | async\"\r\n [availableLanguages]=\"availableLanguages\"\r\n (selectUiLanguage)=\"selectUiLanguage()\"\r\n (logOut)=\"logOut()\"></vdr-user-menu>\r\n </div>\r\n </clr-header>\r\n <nav class=\"subnav\"><vdr-breadcrumb></vdr-breadcrumb></nav>\r\n\r\n <div class=\"content-container\">\r\n <div class=\"content-area\"><router-outlet></router-outlet></div>\r\n <vdr-main-nav></vdr-main-nav>\r\n </div>\r\n</clr-main-container>\r\n",
|
|
4212
|
-
styles: [".branding{min-width:0}.logo{width:40px}.wordmark{font-weight:bold;margin-left:12px;font-size:24px;color:var(--color-primary-500)}@media screen and (min-width: 768px){vdr-breadcrumb{margin-left:
|
|
4224
|
+
styles: [".branding{min-width:0}.logo{width:40px}.wordmark{font-weight:bold;margin-left:12px;font-size:24px;color:var(--color-primary-500)}@media screen and (min-width: 768px){vdr-breadcrumb{margin-left:18%}}.header-actions{align-items:center}.content-area{position:relative}::ng-deep .header{background-image:linear-gradient(to right,var(--color-header-gradient-from),var(--color-header-gradient-to))}\n"]
|
|
4213
4225
|
},] }
|
|
4214
4226
|
];
|
|
4215
4227
|
AppShellComponent.ctorParameters = function () { return [
|
|
@@ -5105,7 +5117,7 @@
|
|
|
5105
5117
|
{ type: i0.Component, args: [{
|
|
5106
5118
|
selector: 'vdr-main-nav',
|
|
5107
5119
|
template: "<nav class=\"sidenav\" [clr-nav-level]=\"2\">\r\n <section class=\"sidenav-content\">\r\n <ng-container *ngFor=\"let section of navBuilderService.navMenuConfig$ | async\">\r\n <section\r\n class=\"nav-group\"\r\n [attr.data-section-id]=\"section.id\"\r\n [class.collapsible]=\"section.collapsible\"\r\n *ngIf=\"shouldDisplayLink(section)\"\r\n >\r\n <vdr-ui-extension-point [locationId]=\"section.id\" api=\"navMenu\" [topPx]=\"-6\" [leftPx]=\"8\">\r\n <ng-container *ngIf=\"navBuilderService.sectionBadges[section.id] | async as sectionBadge\">\r\n <vdr-status-badge\r\n *ngIf=\"sectionBadge !== 'none'\"\r\n [type]=\"sectionBadge\"\r\n ></vdr-status-badge>\r\n </ng-container>\r\n <input [id]=\"section.id\" type=\"checkbox\" [checked]=\"section.collapsedByDefault\" />\r\n <label class=\"nav-group-header\" [for]=\"section.id\">{{ section.label | translate }}</label>\r\n <ul class=\"nav-list\">\r\n <ng-container *ngFor=\"let item of section.items\">\r\n <li *ngIf=\"shouldDisplayLink(item)\">\r\n <a\r\n class=\"nav-link\"\r\n [attr.data-item-id]=\"section.id\"\r\n [routerLink]=\"getRouterLink(item)\"\r\n routerLinkActive=\"active\"\r\n (click)=\"item.onClick && item.onClick($event)\"\r\n >\r\n <ng-container *ngIf=\"item.statusBadge | async as itemBadge\">\r\n <vdr-status-badge\r\n *ngIf=\"itemBadge.type !== 'none'\"\r\n [type]=\"itemBadge.type\"\r\n ></vdr-status-badge>\r\n </ng-container>\r\n <clr-icon [attr.shape]=\"item.icon || 'block'\" size=\"20\"></clr-icon>\r\n {{ item.label | translate }}\r\n </a>\r\n </li>\r\n </ng-container>\r\n </ul>\r\n </vdr-ui-extension-point>\r\n </section>\r\n </ng-container>\r\n </section>\r\n</nav>\r\n",
|
|
5108
|
-
styles: [":host{order:-1;background-color:var(--clr-nav-background-color)}nav.sidenav{height:100%;
|
|
5120
|
+
styles: [":host{order:-1;background-color:var(--clr-nav-background-color)}nav.sidenav{height:100%;border-right-color:var(--clr-sidenav-border-color)}.sidenav .nav-group .nav-list{margin:0}.sidenav .nav-group .nav-group-header{margin:0;line-height:1.2}.sidenav .nav-group .nav-link{display:inline-flex;line-height:1rem;padding-right:.6rem}.nav-list clr-icon{flex-shrink:0;margin-right:12px}.nav-group{-webkit-hyphens:auto;hyphens:auto}.nav-group,.nav-link{position:relative}.nav-group vdr-status-badge{left:10px;top:6px}.nav-link vdr-status-badge{left:25px;top:3px}\n"]
|
|
5109
5121
|
},] }
|
|
5110
5122
|
];
|
|
5111
5123
|
MainNavComponent.ctorParameters = function () { return [
|
|
@@ -5265,260 +5277,196 @@
|
|
|
5265
5277
|
|
|
5266
5278
|
// tslint:disable
|
|
5267
5279
|
var result = {
|
|
5268
|
-
|
|
5269
|
-
|
|
5270
|
-
|
|
5271
|
-
|
|
5272
|
-
|
|
5273
|
-
|
|
5274
|
-
|
|
5275
|
-
|
|
5276
|
-
|
|
5277
|
-
],
|
|
5278
|
-
"AddManualPaymentToOrderResult": [
|
|
5279
|
-
"Order",
|
|
5280
|
-
"ManualPaymentStateError"
|
|
5281
|
-
],
|
|
5282
|
-
"AuthenticationResult": [
|
|
5283
|
-
"CurrentUser",
|
|
5284
|
-
"InvalidCredentialsError"
|
|
5285
|
-
],
|
|
5286
|
-
"CancelOrderResult": [
|
|
5287
|
-
"Order",
|
|
5288
|
-
"EmptyOrderLineSelectionError",
|
|
5289
|
-
"QuantityTooGreatError",
|
|
5290
|
-
"MultipleOrderError",
|
|
5291
|
-
"CancelActiveOrderError",
|
|
5292
|
-
"OrderStateTransitionError"
|
|
5293
|
-
],
|
|
5294
|
-
"CreateAssetResult": [
|
|
5295
|
-
"Asset",
|
|
5296
|
-
"MimeTypeError"
|
|
5297
|
-
],
|
|
5298
|
-
"CreateChannelResult": [
|
|
5299
|
-
"Channel",
|
|
5300
|
-
"LanguageNotAvailableError"
|
|
5301
|
-
],
|
|
5302
|
-
"CreateCustomerResult": [
|
|
5303
|
-
"Customer",
|
|
5304
|
-
"EmailAddressConflictError"
|
|
5305
|
-
],
|
|
5306
|
-
"CreatePromotionResult": [
|
|
5307
|
-
"Promotion",
|
|
5308
|
-
"MissingConditionsError"
|
|
5309
|
-
],
|
|
5310
|
-
"CustomField": [
|
|
5311
|
-
"BooleanCustomFieldConfig",
|
|
5312
|
-
"DateTimeCustomFieldConfig",
|
|
5313
|
-
"FloatCustomFieldConfig",
|
|
5314
|
-
"IntCustomFieldConfig",
|
|
5315
|
-
"LocaleStringCustomFieldConfig",
|
|
5316
|
-
"RelationCustomFieldConfig",
|
|
5317
|
-
"StringCustomFieldConfig",
|
|
5318
|
-
"TextCustomFieldConfig"
|
|
5319
|
-
],
|
|
5320
|
-
"CustomFieldConfig": [
|
|
5321
|
-
"StringCustomFieldConfig",
|
|
5322
|
-
"LocaleStringCustomFieldConfig",
|
|
5323
|
-
"IntCustomFieldConfig",
|
|
5324
|
-
"FloatCustomFieldConfig",
|
|
5325
|
-
"BooleanCustomFieldConfig",
|
|
5326
|
-
"DateTimeCustomFieldConfig",
|
|
5327
|
-
"RelationCustomFieldConfig",
|
|
5328
|
-
"TextCustomFieldConfig"
|
|
5329
|
-
],
|
|
5330
|
-
"ErrorResult": [
|
|
5331
|
-
"AlreadyRefundedError",
|
|
5332
|
-
"CancelActiveOrderError",
|
|
5333
|
-
"ChannelDefaultLanguageError",
|
|
5334
|
-
"CouponCodeExpiredError",
|
|
5335
|
-
"CouponCodeInvalidError",
|
|
5336
|
-
"CouponCodeLimitError",
|
|
5337
|
-
"CreateFulfillmentError",
|
|
5338
|
-
"EmailAddressConflictError",
|
|
5339
|
-
"EmptyOrderLineSelectionError",
|
|
5340
|
-
"FulfillmentStateTransitionError",
|
|
5341
|
-
"InsufficientStockError",
|
|
5342
|
-
"InsufficientStockOnHandError",
|
|
5343
|
-
"InvalidCredentialsError",
|
|
5344
|
-
"InvalidFulfillmentHandlerError",
|
|
5345
|
-
"ItemsAlreadyFulfilledError",
|
|
5346
|
-
"LanguageNotAvailableError",
|
|
5347
|
-
"ManualPaymentStateError",
|
|
5348
|
-
"MimeTypeError",
|
|
5349
|
-
"MissingConditionsError",
|
|
5350
|
-
"MultipleOrderError",
|
|
5351
|
-
"NativeAuthStrategyError",
|
|
5352
|
-
"NegativeQuantityError",
|
|
5353
|
-
"NoChangesSpecifiedError",
|
|
5354
|
-
"NothingToRefundError",
|
|
5355
|
-
"OrderLimitError",
|
|
5356
|
-
"OrderModificationStateError",
|
|
5357
|
-
"OrderStateTransitionError",
|
|
5358
|
-
"PaymentMethodMissingError",
|
|
5359
|
-
"PaymentOrderMismatchError",
|
|
5360
|
-
"PaymentStateTransitionError",
|
|
5361
|
-
"ProductOptionInUseError",
|
|
5362
|
-
"QuantityTooGreatError",
|
|
5363
|
-
"RefundOrderStateError",
|
|
5364
|
-
"RefundPaymentIdMissingError",
|
|
5365
|
-
"RefundStateTransitionError",
|
|
5366
|
-
"SettlePaymentError"
|
|
5367
|
-
],
|
|
5368
|
-
"ModifyOrderResult": [
|
|
5369
|
-
"Order",
|
|
5370
|
-
"NoChangesSpecifiedError",
|
|
5371
|
-
"OrderModificationStateError",
|
|
5372
|
-
"PaymentMethodMissingError",
|
|
5373
|
-
"RefundPaymentIdMissingError",
|
|
5374
|
-
"OrderLimitError",
|
|
5375
|
-
"NegativeQuantityError",
|
|
5376
|
-
"InsufficientStockError",
|
|
5377
|
-
"CouponCodeExpiredError",
|
|
5378
|
-
"CouponCodeInvalidError",
|
|
5379
|
-
"CouponCodeLimitError"
|
|
5280
|
+
possibleTypes: {
|
|
5281
|
+
AddFulfillmentToOrderResult: [
|
|
5282
|
+
'Fulfillment',
|
|
5283
|
+
'EmptyOrderLineSelectionError',
|
|
5284
|
+
'ItemsAlreadyFulfilledError',
|
|
5285
|
+
'InsufficientStockOnHandError',
|
|
5286
|
+
'InvalidFulfillmentHandlerError',
|
|
5287
|
+
'FulfillmentStateTransitionError',
|
|
5288
|
+
'CreateFulfillmentError',
|
|
5380
5289
|
],
|
|
5381
|
-
|
|
5382
|
-
|
|
5383
|
-
|
|
5384
|
-
|
|
5290
|
+
AddManualPaymentToOrderResult: ['Order', 'ManualPaymentStateError'],
|
|
5291
|
+
AuthenticationResult: ['CurrentUser', 'InvalidCredentialsError'],
|
|
5292
|
+
CancelOrderResult: [
|
|
5293
|
+
'Order',
|
|
5294
|
+
'EmptyOrderLineSelectionError',
|
|
5295
|
+
'QuantityTooGreatError',
|
|
5296
|
+
'MultipleOrderError',
|
|
5297
|
+
'CancelActiveOrderError',
|
|
5298
|
+
'OrderStateTransitionError',
|
|
5385
5299
|
],
|
|
5386
|
-
|
|
5387
|
-
|
|
5388
|
-
|
|
5389
|
-
|
|
5390
|
-
|
|
5391
|
-
|
|
5392
|
-
|
|
5393
|
-
|
|
5394
|
-
|
|
5395
|
-
|
|
5396
|
-
|
|
5397
|
-
|
|
5398
|
-
|
|
5399
|
-
|
|
5400
|
-
"Fulfillment",
|
|
5401
|
-
"HistoryEntry",
|
|
5402
|
-
"Job",
|
|
5403
|
-
"Order",
|
|
5404
|
-
"OrderItem",
|
|
5405
|
-
"OrderLine",
|
|
5406
|
-
"OrderModification",
|
|
5407
|
-
"Payment",
|
|
5408
|
-
"PaymentMethod",
|
|
5409
|
-
"Product",
|
|
5410
|
-
"ProductOption",
|
|
5411
|
-
"ProductOptionGroup",
|
|
5412
|
-
"ProductVariant",
|
|
5413
|
-
"Promotion",
|
|
5414
|
-
"Refund",
|
|
5415
|
-
"Release",
|
|
5416
|
-
"Return",
|
|
5417
|
-
"Role",
|
|
5418
|
-
"Sale",
|
|
5419
|
-
"ShippingMethod",
|
|
5420
|
-
"StockAdjustment",
|
|
5421
|
-
"Surcharge",
|
|
5422
|
-
"Tag",
|
|
5423
|
-
"TaxCategory",
|
|
5424
|
-
"TaxRate",
|
|
5425
|
-
"User",
|
|
5426
|
-
"Zone"
|
|
5300
|
+
CancelPaymentResult: ['Payment', 'CancelPaymentError', 'PaymentStateTransitionError'],
|
|
5301
|
+
CreateAssetResult: ['Asset', 'MimeTypeError'],
|
|
5302
|
+
CreateChannelResult: ['Channel', 'LanguageNotAvailableError'],
|
|
5303
|
+
CreateCustomerResult: ['Customer', 'EmailAddressConflictError'],
|
|
5304
|
+
CreatePromotionResult: ['Promotion', 'MissingConditionsError'],
|
|
5305
|
+
CustomField: [
|
|
5306
|
+
'BooleanCustomFieldConfig',
|
|
5307
|
+
'DateTimeCustomFieldConfig',
|
|
5308
|
+
'FloatCustomFieldConfig',
|
|
5309
|
+
'IntCustomFieldConfig',
|
|
5310
|
+
'LocaleStringCustomFieldConfig',
|
|
5311
|
+
'RelationCustomFieldConfig',
|
|
5312
|
+
'StringCustomFieldConfig',
|
|
5313
|
+
'TextCustomFieldConfig',
|
|
5427
5314
|
],
|
|
5428
|
-
|
|
5429
|
-
|
|
5430
|
-
|
|
5431
|
-
|
|
5432
|
-
|
|
5433
|
-
|
|
5434
|
-
|
|
5435
|
-
|
|
5436
|
-
|
|
5437
|
-
"JobList",
|
|
5438
|
-
"OrderList",
|
|
5439
|
-
"PaymentMethodList",
|
|
5440
|
-
"ProductList",
|
|
5441
|
-
"ProductVariantList",
|
|
5442
|
-
"PromotionList",
|
|
5443
|
-
"RoleList",
|
|
5444
|
-
"ShippingMethodList",
|
|
5445
|
-
"TagList",
|
|
5446
|
-
"TaxRateList"
|
|
5315
|
+
CustomFieldConfig: [
|
|
5316
|
+
'StringCustomFieldConfig',
|
|
5317
|
+
'LocaleStringCustomFieldConfig',
|
|
5318
|
+
'IntCustomFieldConfig',
|
|
5319
|
+
'FloatCustomFieldConfig',
|
|
5320
|
+
'BooleanCustomFieldConfig',
|
|
5321
|
+
'DateTimeCustomFieldConfig',
|
|
5322
|
+
'RelationCustomFieldConfig',
|
|
5323
|
+
'TextCustomFieldConfig',
|
|
5447
5324
|
],
|
|
5448
|
-
|
|
5449
|
-
|
|
5450
|
-
|
|
5451
|
-
|
|
5452
|
-
|
|
5453
|
-
|
|
5454
|
-
|
|
5455
|
-
|
|
5456
|
-
|
|
5457
|
-
|
|
5325
|
+
ErrorResult: [
|
|
5326
|
+
'AlreadyRefundedError',
|
|
5327
|
+
'CancelActiveOrderError',
|
|
5328
|
+
'CancelPaymentError',
|
|
5329
|
+
'ChannelDefaultLanguageError',
|
|
5330
|
+
'CouponCodeExpiredError',
|
|
5331
|
+
'CouponCodeInvalidError',
|
|
5332
|
+
'CouponCodeLimitError',
|
|
5333
|
+
'CreateFulfillmentError',
|
|
5334
|
+
'EmailAddressConflictError',
|
|
5335
|
+
'EmptyOrderLineSelectionError',
|
|
5336
|
+
'FulfillmentStateTransitionError',
|
|
5337
|
+
'InsufficientStockError',
|
|
5338
|
+
'InsufficientStockOnHandError',
|
|
5339
|
+
'InvalidCredentialsError',
|
|
5340
|
+
'InvalidFulfillmentHandlerError',
|
|
5341
|
+
'ItemsAlreadyFulfilledError',
|
|
5342
|
+
'LanguageNotAvailableError',
|
|
5343
|
+
'ManualPaymentStateError',
|
|
5344
|
+
'MimeTypeError',
|
|
5345
|
+
'MissingConditionsError',
|
|
5346
|
+
'MultipleOrderError',
|
|
5347
|
+
'NativeAuthStrategyError',
|
|
5348
|
+
'NegativeQuantityError',
|
|
5349
|
+
'NoChangesSpecifiedError',
|
|
5350
|
+
'NothingToRefundError',
|
|
5351
|
+
'OrderLimitError',
|
|
5352
|
+
'OrderModificationStateError',
|
|
5353
|
+
'OrderStateTransitionError',
|
|
5354
|
+
'PaymentMethodMissingError',
|
|
5355
|
+
'PaymentOrderMismatchError',
|
|
5356
|
+
'PaymentStateTransitionError',
|
|
5357
|
+
'ProductOptionInUseError',
|
|
5358
|
+
'QuantityTooGreatError',
|
|
5359
|
+
'RefundOrderStateError',
|
|
5360
|
+
'RefundPaymentIdMissingError',
|
|
5361
|
+
'RefundStateTransitionError',
|
|
5362
|
+
'SettlePaymentError',
|
|
5458
5363
|
],
|
|
5459
|
-
|
|
5460
|
-
|
|
5461
|
-
|
|
5364
|
+
ModifyOrderResult: [
|
|
5365
|
+
'Order',
|
|
5366
|
+
'NoChangesSpecifiedError',
|
|
5367
|
+
'OrderModificationStateError',
|
|
5368
|
+
'PaymentMethodMissingError',
|
|
5369
|
+
'RefundPaymentIdMissingError',
|
|
5370
|
+
'OrderLimitError',
|
|
5371
|
+
'NegativeQuantityError',
|
|
5372
|
+
'InsufficientStockError',
|
|
5373
|
+
'CouponCodeExpiredError',
|
|
5374
|
+
'CouponCodeInvalidError',
|
|
5375
|
+
'CouponCodeLimitError',
|
|
5462
5376
|
],
|
|
5463
|
-
|
|
5464
|
-
|
|
5465
|
-
|
|
5377
|
+
NativeAuthenticationResult: ['CurrentUser', 'InvalidCredentialsError', 'NativeAuthStrategyError'],
|
|
5378
|
+
Node: [
|
|
5379
|
+
'Address',
|
|
5380
|
+
'Administrator',
|
|
5381
|
+
'Allocation',
|
|
5382
|
+
'Asset',
|
|
5383
|
+
'AuthenticationMethod',
|
|
5384
|
+
'Cancellation',
|
|
5385
|
+
'Channel',
|
|
5386
|
+
'Collection',
|
|
5387
|
+
'Country',
|
|
5388
|
+
'Customer',
|
|
5389
|
+
'CustomerGroup',
|
|
5390
|
+
'Facet',
|
|
5391
|
+
'FacetValue',
|
|
5392
|
+
'Fulfillment',
|
|
5393
|
+
'HistoryEntry',
|
|
5394
|
+
'Job',
|
|
5395
|
+
'Order',
|
|
5396
|
+
'OrderItem',
|
|
5397
|
+
'OrderLine',
|
|
5398
|
+
'OrderModification',
|
|
5399
|
+
'Payment',
|
|
5400
|
+
'PaymentMethod',
|
|
5401
|
+
'Product',
|
|
5402
|
+
'ProductOption',
|
|
5403
|
+
'ProductOptionGroup',
|
|
5404
|
+
'ProductVariant',
|
|
5405
|
+
'Promotion',
|
|
5406
|
+
'Refund',
|
|
5407
|
+
'Release',
|
|
5408
|
+
'Return',
|
|
5409
|
+
'Role',
|
|
5410
|
+
'Sale',
|
|
5411
|
+
'ShippingMethod',
|
|
5412
|
+
'StockAdjustment',
|
|
5413
|
+
'Surcharge',
|
|
5414
|
+
'Tag',
|
|
5415
|
+
'TaxCategory',
|
|
5416
|
+
'TaxRate',
|
|
5417
|
+
'User',
|
|
5418
|
+
'Zone',
|
|
5466
5419
|
],
|
|
5467
|
-
|
|
5468
|
-
|
|
5469
|
-
|
|
5470
|
-
|
|
5471
|
-
|
|
5420
|
+
PaginatedList: [
|
|
5421
|
+
'AdministratorList',
|
|
5422
|
+
'AssetList',
|
|
5423
|
+
'CollectionList',
|
|
5424
|
+
'CountryList',
|
|
5425
|
+
'CustomerGroupList',
|
|
5426
|
+
'CustomerList',
|
|
5427
|
+
'FacetList',
|
|
5428
|
+
'HistoryEntryList',
|
|
5429
|
+
'JobList',
|
|
5430
|
+
'OrderList',
|
|
5431
|
+
'PaymentMethodList',
|
|
5432
|
+
'ProductList',
|
|
5433
|
+
'ProductVariantList',
|
|
5434
|
+
'PromotionList',
|
|
5435
|
+
'RoleList',
|
|
5436
|
+
'ShippingMethodList',
|
|
5437
|
+
'TagList',
|
|
5438
|
+
'TaxRateList',
|
|
5472
5439
|
],
|
|
5473
|
-
|
|
5474
|
-
|
|
5475
|
-
|
|
5440
|
+
RefundOrderResult: [
|
|
5441
|
+
'Refund',
|
|
5442
|
+
'QuantityTooGreatError',
|
|
5443
|
+
'NothingToRefundError',
|
|
5444
|
+
'OrderStateTransitionError',
|
|
5445
|
+
'MultipleOrderError',
|
|
5446
|
+
'PaymentOrderMismatchError',
|
|
5447
|
+
'RefundOrderStateError',
|
|
5448
|
+
'AlreadyRefundedError',
|
|
5449
|
+
'RefundStateTransitionError',
|
|
5476
5450
|
],
|
|
5477
|
-
|
|
5478
|
-
|
|
5479
|
-
|
|
5480
|
-
|
|
5481
|
-
|
|
5482
|
-
|
|
5483
|
-
|
|
5451
|
+
RemoveOptionGroupFromProductResult: ['Product', 'ProductOptionInUseError'],
|
|
5452
|
+
SearchResultPrice: ['PriceRange', 'SinglePrice'],
|
|
5453
|
+
SettlePaymentResult: [
|
|
5454
|
+
'Payment',
|
|
5455
|
+
'SettlePaymentError',
|
|
5456
|
+
'PaymentStateTransitionError',
|
|
5457
|
+
'OrderStateTransitionError',
|
|
5484
5458
|
],
|
|
5485
|
-
|
|
5486
|
-
|
|
5487
|
-
|
|
5488
|
-
|
|
5489
|
-
|
|
5490
|
-
|
|
5491
|
-
|
|
5492
|
-
],
|
|
5493
|
-
|
|
5494
|
-
|
|
5495
|
-
|
|
5496
|
-
],
|
|
5497
|
-
"TransitionOrderToStateResult": [
|
|
5498
|
-
"Order",
|
|
5499
|
-
"OrderStateTransitionError"
|
|
5500
|
-
],
|
|
5501
|
-
"TransitionPaymentToStateResult": [
|
|
5502
|
-
"Payment",
|
|
5503
|
-
"PaymentStateTransitionError"
|
|
5504
|
-
],
|
|
5505
|
-
"UpdateChannelResult": [
|
|
5506
|
-
"Channel",
|
|
5507
|
-
"LanguageNotAvailableError"
|
|
5508
|
-
],
|
|
5509
|
-
"UpdateCustomerResult": [
|
|
5510
|
-
"Customer",
|
|
5511
|
-
"EmailAddressConflictError"
|
|
5512
|
-
],
|
|
5513
|
-
"UpdateGlobalSettingsResult": [
|
|
5514
|
-
"GlobalSettings",
|
|
5515
|
-
"ChannelDefaultLanguageError"
|
|
5516
|
-
],
|
|
5517
|
-
"UpdatePromotionResult": [
|
|
5518
|
-
"Promotion",
|
|
5519
|
-
"MissingConditionsError"
|
|
5520
|
-
]
|
|
5521
|
-
}
|
|
5459
|
+
SettleRefundResult: ['Refund', 'RefundStateTransitionError'],
|
|
5460
|
+
StockMovement: ['Allocation', 'Cancellation', 'Release', 'Return', 'Sale', 'StockAdjustment'],
|
|
5461
|
+
StockMovementItem: ['StockAdjustment', 'Allocation', 'Sale', 'Cancellation', 'Return', 'Release'],
|
|
5462
|
+
TransitionFulfillmentToStateResult: ['Fulfillment', 'FulfillmentStateTransitionError'],
|
|
5463
|
+
TransitionOrderToStateResult: ['Order', 'OrderStateTransitionError'],
|
|
5464
|
+
TransitionPaymentToStateResult: ['Payment', 'PaymentStateTransitionError'],
|
|
5465
|
+
UpdateChannelResult: ['Channel', 'LanguageNotAvailableError'],
|
|
5466
|
+
UpdateCustomerResult: ['Customer', 'EmailAddressConflictError'],
|
|
5467
|
+
UpdateGlobalSettingsResult: ['GlobalSettings', 'ChannelDefaultLanguageError'],
|
|
5468
|
+
UpdatePromotionResult: ['Promotion', 'MissingConditionsError'],
|
|
5469
|
+
},
|
|
5522
5470
|
};
|
|
5523
5471
|
|
|
5524
5472
|
// Allows the introspectionResult to be imported as a named symbol
|
|
@@ -6487,7 +6435,7 @@
|
|
|
6487
6435
|
*/
|
|
6488
6436
|
function getConfigArgValue(value) {
|
|
6489
6437
|
try {
|
|
6490
|
-
return value ? JSON.parse(value) : undefined;
|
|
6438
|
+
return value != null ? JSON.parse(value) : undefined;
|
|
6491
6439
|
}
|
|
6492
6440
|
catch (e) {
|
|
6493
6441
|
return value;
|
|
@@ -6518,7 +6466,7 @@
|
|
|
6518
6466
|
* ```
|
|
6519
6467
|
* {
|
|
6520
6468
|
* code: 'my-operation',
|
|
6521
|
-
*
|
|
6469
|
+
* arguments: [
|
|
6522
6470
|
* { name: 'someProperty', value: 'foo' }
|
|
6523
6471
|
* ]
|
|
6524
6472
|
* }
|
|
@@ -6527,12 +6475,16 @@
|
|
|
6527
6475
|
function toConfigurableOperationInput(operation, formValueOperations) {
|
|
6528
6476
|
return {
|
|
6529
6477
|
code: operation.code,
|
|
6530
|
-
arguments:
|
|
6531
|
-
name
|
|
6532
|
-
|
|
6533
|
-
|
|
6534
|
-
:
|
|
6535
|
-
|
|
6478
|
+
arguments: operation.args.map(function (_a, j) {
|
|
6479
|
+
var name = _a.name, value = _a.value;
|
|
6480
|
+
var formValue = formValueOperations.args[name];
|
|
6481
|
+
return {
|
|
6482
|
+
name: name,
|
|
6483
|
+
value: (formValue === null || formValue === void 0 ? void 0 : formValue.hasOwnProperty('value'))
|
|
6484
|
+
? encodeConfigArgValue(formValue.value)
|
|
6485
|
+
: encodeConfigArgValue(formValue),
|
|
6486
|
+
};
|
|
6487
|
+
}),
|
|
6536
6488
|
};
|
|
6537
6489
|
}
|
|
6538
6490
|
function configurableOperationValueIsValid(def, value) {
|
|
@@ -6568,7 +6520,7 @@
|
|
|
6568
6520
|
if (arg.list) {
|
|
6569
6521
|
return [];
|
|
6570
6522
|
}
|
|
6571
|
-
if (arg.defaultValue) {
|
|
6523
|
+
if (arg.defaultValue != null) {
|
|
6572
6524
|
return arg.defaultValue;
|
|
6573
6525
|
}
|
|
6574
6526
|
var type = arg.type;
|
|
@@ -6938,8 +6890,18 @@
|
|
|
6938
6890
|
*/
|
|
6939
6891
|
var FacetValueFormInputComponent = /** @class */ (function () {
|
|
6940
6892
|
function FacetValueFormInputComponent(dataService) {
|
|
6893
|
+
var _this = this;
|
|
6941
6894
|
this.dataService = dataService;
|
|
6942
6895
|
this.isListInput = true;
|
|
6896
|
+
this.valueTransformFn = function (values) {
|
|
6897
|
+
var isUsedInConfigArg = _this.config.__typename === 'ConfigArgDefinition';
|
|
6898
|
+
if (isUsedInConfigArg) {
|
|
6899
|
+
return JSON.stringify(values.map(function (s) { return s.id; }));
|
|
6900
|
+
}
|
|
6901
|
+
else {
|
|
6902
|
+
return values;
|
|
6903
|
+
}
|
|
6904
|
+
};
|
|
6943
6905
|
}
|
|
6944
6906
|
FacetValueFormInputComponent.prototype.ngOnInit = function () {
|
|
6945
6907
|
this.facets$ = this.dataService.facet
|
|
@@ -6953,7 +6915,7 @@
|
|
|
6953
6915
|
FacetValueFormInputComponent.decorators = [
|
|
6954
6916
|
{ type: i0.Component, args: [{
|
|
6955
6917
|
selector: 'vdr-facet-value-form-input',
|
|
6956
|
-
template: "<vdr-facet-value-selector\r\n *ngIf=\"facets$ | async as facets\"\r\n [readonly]=\"readonly\"\r\n [facets]=\"facets\"\r\n [formControl]=\"formControl\"\r\n></vdr-facet-value-selector>\r\n",
|
|
6918
|
+
template: "<vdr-facet-value-selector\r\n *ngIf=\"facets$ | async as facets\"\r\n [readonly]=\"readonly\"\r\n [facets]=\"facets\"\r\n [formControl]=\"formControl\"\r\n [transformControlValueAccessorValue]=\"valueTransformFn\"\r\n></vdr-facet-value-selector>\r\n",
|
|
6957
6919
|
changeDetection: i0.ChangeDetectionStrategy.OnPush,
|
|
6958
6920
|
styles: [""]
|
|
6959
6921
|
},] }
|
|
@@ -7416,7 +7378,8 @@
|
|
|
7416
7378
|
* @docsPage default-inputs
|
|
7417
7379
|
*/
|
|
7418
7380
|
var SelectFormInputComponent = /** @class */ (function () {
|
|
7419
|
-
function SelectFormInputComponent() {
|
|
7381
|
+
function SelectFormInputComponent(dataService) {
|
|
7382
|
+
this.dataService = dataService;
|
|
7420
7383
|
}
|
|
7421
7384
|
Object.defineProperty(SelectFormInputComponent.prototype, "options", {
|
|
7422
7385
|
get: function () {
|
|
@@ -7426,17 +7389,29 @@
|
|
|
7426
7389
|
enumerable: false,
|
|
7427
7390
|
configurable: true
|
|
7428
7391
|
});
|
|
7392
|
+
SelectFormInputComponent.prototype.ngOnInit = function () {
|
|
7393
|
+
this.uiLanguage$ = this.dataService.client.uiState().mapStream(function (_b) {
|
|
7394
|
+
var uiState = _b.uiState;
|
|
7395
|
+
return uiState.language;
|
|
7396
|
+
});
|
|
7397
|
+
};
|
|
7398
|
+
SelectFormInputComponent.prototype.trackByFn = function (index, item) {
|
|
7399
|
+
return item.value;
|
|
7400
|
+
};
|
|
7429
7401
|
return SelectFormInputComponent;
|
|
7430
7402
|
}());
|
|
7431
7403
|
SelectFormInputComponent.id = 'select-form-input';
|
|
7432
7404
|
SelectFormInputComponent.decorators = [
|
|
7433
7405
|
{ type: i0.Component, args: [{
|
|
7434
7406
|
selector: 'vdr-select-form-input',
|
|
7435
|
-
template: "<select clrSelect [formControl]=\"formControl\" [vdrDisabled]=\"readonly\">\r\n <option *ngIf=\"config.nullable\" [ngValue]=\"null\"></option>\r\n <option *ngFor=\"let option of options\" [ngValue]=\"option.value\">\r\n {{ (option | customFieldLabel) || option.label || option.value }}\r\n </option>\r\n</select>\r\n",
|
|
7407
|
+
template: "<select clrSelect [formControl]=\"formControl\" [vdrDisabled]=\"readonly\">\r\n <option *ngIf=\"config.nullable\" [ngValue]=\"null\"></option>\r\n <option *ngFor=\"let option of options;trackBy:trackByFn\" [ngValue]=\"option.value\">\r\n {{ (option | customFieldLabel:(uiLanguage$ | async)) || option.label || option.value }}\r\n </option>\r\n</select>\r\n",
|
|
7436
7408
|
changeDetection: i0.ChangeDetectionStrategy.OnPush,
|
|
7437
7409
|
styles: ["select{width:100%}\n"]
|
|
7438
7410
|
},] }
|
|
7439
7411
|
];
|
|
7412
|
+
SelectFormInputComponent.ctorParameters = function () { return [
|
|
7413
|
+
{ type: DataService }
|
|
7414
|
+
]; };
|
|
7440
7415
|
SelectFormInputComponent.propDecorators = {
|
|
7441
7416
|
readonly: [{ type: i0.Input }]
|
|
7442
7417
|
};
|
|
@@ -9065,6 +9040,14 @@
|
|
|
9065
9040
|
this.readonly = false;
|
|
9066
9041
|
this.hasCustomControl = false;
|
|
9067
9042
|
}
|
|
9043
|
+
CustomFieldControlComponent.prototype.ngOnInit = function () {
|
|
9044
|
+
this.uiLanguage$ = this.dataService.client
|
|
9045
|
+
.uiState()
|
|
9046
|
+
.stream$.pipe(operators.map(function (_a) {
|
|
9047
|
+
var uiState = _a.uiState;
|
|
9048
|
+
return uiState.language;
|
|
9049
|
+
}));
|
|
9050
|
+
};
|
|
9068
9051
|
CustomFieldControlComponent.prototype.getFieldDefinition = function () {
|
|
9069
9052
|
var config = Object.assign({}, this.customField);
|
|
9070
9053
|
var id = this.customFieldComponentService.customFieldComponentExists(this.entityName, this.customField.name);
|
|
@@ -9087,7 +9070,7 @@
|
|
|
9087
9070
|
CustomFieldControlComponent.decorators = [
|
|
9088
9071
|
{ type: i0.Component, args: [{
|
|
9089
9072
|
selector: 'vdr-custom-field-control',
|
|
9090
|
-
template: "<div class=\"clr-form-control\" *ngIf=\"compact\">\r\n <label for=\"basic\" class=\"clr-control-label\">{{ customField | customFieldLabel }}</label>\r\n <div class=\"clr-control-container\">\r\n <div class=\"clr-input-wrapper\">\r\n <ng-container *ngTemplateOutlet=\"inputs\"></ng-container>\r\n </div>\r\n </div>\r\n</div>\r\n<vdr-form-field [label]=\"customField | customFieldLabel\" [for]=\"customField.name\" *ngIf=\"!compact\">\r\n <ng-container *ngTemplateOutlet=\"inputs\"></ng-container>\r\n</vdr-form-field>\r\n\r\n<ng-template #inputs>\r\n <ng-container [formGroup]=\"formGroup\">\r\n <vdr-dynamic-form-input\r\n [formControlName]=\"customField.name\"\r\n [readonly]=\"readonly || customField.readonly\"\r\n [control]=\"formGroup.get(customField.name)\"\r\n [def]=\"getFieldDefinition()\"\r\n >\r\n </vdr-dynamic-form-input>\r\n </ng-container>\r\n</ng-template>\r\n",
|
|
9073
|
+
template: "<div class=\"clr-form-control\" *ngIf=\"compact\">\r\n <label for=\"basic\" class=\"clr-control-label\">{{ customField | customFieldLabel:(uiLanguage$ | async) }}</label>\r\n <div class=\"clr-control-container\">\r\n <div class=\"clr-input-wrapper\">\r\n <ng-container *ngTemplateOutlet=\"inputs\"></ng-container>\r\n </div>\r\n </div>\r\n</div>\r\n<vdr-form-field [label]=\"customField | customFieldLabel:(uiLanguage$ | async)\" [for]=\"customField.name\" *ngIf=\"!compact\">\r\n <ng-container *ngTemplateOutlet=\"inputs\"></ng-container>\r\n</vdr-form-field>\r\n\r\n<ng-template #inputs>\r\n <ng-container [formGroup]=\"formGroup\">\r\n <vdr-dynamic-form-input\r\n [formControlName]=\"customField.name\"\r\n [readonly]=\"readonly || customField.readonly\"\r\n [control]=\"formGroup.get(customField.name)\"\r\n [def]=\"getFieldDefinition()\"\r\n >\r\n </vdr-dynamic-form-input>\r\n </ng-container>\r\n</ng-template>\r\n",
|
|
9091
9074
|
styles: [":host{display:block;width:100%}:host .toggle-switch{margin-top:0;margin-bottom:0}\n"]
|
|
9092
9075
|
},] }
|
|
9093
9076
|
];
|
|
@@ -9219,12 +9202,19 @@
|
|
|
9219
9202
|
return index;
|
|
9220
9203
|
}
|
|
9221
9204
|
};
|
|
9205
|
+
DataTableComponent.prototype.ngOnChanges = function (changes) {
|
|
9206
|
+
var _a;
|
|
9207
|
+
if (changes.items) {
|
|
9208
|
+
this.currentStart = this.itemsPerPage * (this.currentPage - 1);
|
|
9209
|
+
this.currentEnd = this.currentStart + ((_a = changes.items.currentValue) === null || _a === void 0 ? void 0 : _a.length);
|
|
9210
|
+
}
|
|
9211
|
+
};
|
|
9222
9212
|
return DataTableComponent;
|
|
9223
9213
|
}());
|
|
9224
9214
|
DataTableComponent.decorators = [
|
|
9225
9215
|
{ type: i0.Component, args: [{
|
|
9226
9216
|
selector: 'vdr-data-table',
|
|
9227
|
-
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)=\"allSelectChange.emit()\"\r\n />\r\n </th>\r\n <th *ngFor=\"let header of columns?.toArray()\" class=\"left\" [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\" class=\"align-middle\">\r\n <input\r\n type=\"checkbox\"\r\n clrCheckbox\r\n [checked]=\"isRowSelectedFn(item)\"\r\n (change)=\"rowSelectChange.emit(item)\"\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\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",
|
|
9217
|
+
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)=\"allSelectChange.emit()\"\r\n />\r\n </th>\r\n <th *ngFor=\"let header of columns?.toArray()\" class=\"left\" [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\" class=\"align-middle\">\r\n <input\r\n type=\"checkbox\"\r\n clrCheckbox\r\n [checked]=\"isRowSelectedFn(item)\"\r\n (change)=\"rowSelectChange.emit(item)\"\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",
|
|
9228
9218
|
changeDetection: i0.ChangeDetectionStrategy.OnPush,
|
|
9229
9219
|
providers: [ngxPagination.PaginationService],
|
|
9230
9220
|
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"]
|
|
@@ -10192,6 +10182,7 @@
|
|
|
10192
10182
|
this.dataService = dataService;
|
|
10193
10183
|
this.selectedValuesChange = new i0.EventEmitter();
|
|
10194
10184
|
this.readonly = false;
|
|
10185
|
+
this.transformControlValueAccessorValue = function (value) { return value; };
|
|
10195
10186
|
this.facetValues = [];
|
|
10196
10187
|
this.disabled = false;
|
|
10197
10188
|
this.toSelectorItem = function (facetValue) {
|
|
@@ -10212,7 +10203,8 @@
|
|
|
10212
10203
|
}
|
|
10213
10204
|
this.selectedValuesChange.emit(selected.map(function (s) { return s.value; }));
|
|
10214
10205
|
if (this.onChangeFn) {
|
|
10215
|
-
this.
|
|
10206
|
+
var transformedValue = this.transformControlValueAccessorValue(selected);
|
|
10207
|
+
this.onChangeFn(transformedValue);
|
|
10216
10208
|
}
|
|
10217
10209
|
};
|
|
10218
10210
|
FacetValueSelectorComponent.prototype.registerOnChange = function (fn) {
|
|
@@ -10272,6 +10264,7 @@
|
|
|
10272
10264
|
selectedValuesChange: [{ type: i0.Output }],
|
|
10273
10265
|
facets: [{ type: i0.Input }],
|
|
10274
10266
|
readonly: [{ type: i0.Input }],
|
|
10267
|
+
transformControlValueAccessorValue: [{ type: i0.Input }],
|
|
10275
10268
|
ngSelect: [{ type: i0.ViewChild, args: [ngSelect.NgSelectComponent,] }]
|
|
10276
10269
|
};
|
|
10277
10270
|
|
|
@@ -13074,33 +13067,22 @@
|
|
|
13074
13067
|
* name/value if none are defined.
|
|
13075
13068
|
*/
|
|
13076
13069
|
var CustomFieldLabelPipe = /** @class */ (function () {
|
|
13077
|
-
function CustomFieldLabelPipe(
|
|
13078
|
-
var _this = this;
|
|
13079
|
-
this.dataService = dataService;
|
|
13080
|
-
this.subscription = dataService.client.uiState().stream$.subscribe(function (val) {
|
|
13081
|
-
_this.uiLanguageCode = val.uiState.language;
|
|
13082
|
-
});
|
|
13070
|
+
function CustomFieldLabelPipe() {
|
|
13083
13071
|
}
|
|
13084
|
-
CustomFieldLabelPipe.prototype.transform = function (value) {
|
|
13085
|
-
var _this = this;
|
|
13072
|
+
CustomFieldLabelPipe.prototype.transform = function (value, uiLanguageCode) {
|
|
13086
13073
|
if (!value) {
|
|
13087
13074
|
return value;
|
|
13088
13075
|
}
|
|
13089
13076
|
var label = value.label;
|
|
13090
13077
|
var name = this.isCustomFieldConfig(value) ? value.name : value.value;
|
|
13091
13078
|
if (label) {
|
|
13092
|
-
var match = label.find(function (l) { return l.languageCode ===
|
|
13079
|
+
var match = label.find(function (l) { return l.languageCode === uiLanguageCode; });
|
|
13093
13080
|
return match ? match.value : label[0].value;
|
|
13094
13081
|
}
|
|
13095
13082
|
else {
|
|
13096
13083
|
return name;
|
|
13097
13084
|
}
|
|
13098
13085
|
};
|
|
13099
|
-
CustomFieldLabelPipe.prototype.ngOnDestroy = function () {
|
|
13100
|
-
if (this.subscription) {
|
|
13101
|
-
this.subscription.unsubscribe();
|
|
13102
|
-
}
|
|
13103
|
-
};
|
|
13104
13086
|
CustomFieldLabelPipe.prototype.isCustomFieldConfig = function (input) {
|
|
13105
13087
|
return input.hasOwnProperty('name');
|
|
13106
13088
|
};
|
|
@@ -13109,12 +13091,9 @@
|
|
|
13109
13091
|
CustomFieldLabelPipe.decorators = [
|
|
13110
13092
|
{ type: i0.Pipe, args: [{
|
|
13111
13093
|
name: 'customFieldLabel',
|
|
13112
|
-
pure:
|
|
13094
|
+
pure: true,
|
|
13113
13095
|
},] }
|
|
13114
|
-
];
|
|
13115
|
-
CustomFieldLabelPipe.ctorParameters = function () { return [
|
|
13116
|
-
{ type: DataService }
|
|
13117
|
-
]; };
|
|
13096
|
+
];
|
|
13118
13097
|
|
|
13119
13098
|
/**
|
|
13120
13099
|
* @description
|
|
@@ -14570,7 +14549,7 @@
|
|
|
14570
14549
|
}
|
|
14571
14550
|
|
|
14572
14551
|
// Auto-generated by the set-version.js script.
|
|
14573
|
-
var ADMIN_UI_VERSION = '1.
|
|
14552
|
+
var ADMIN_UI_VERSION = '1.7.0';
|
|
14574
14553
|
|
|
14575
14554
|
/**
|
|
14576
14555
|
* Responsible for registering dashboard widget components and querying for layouts.
|
|
@@ -14856,6 +14835,7 @@
|
|
|
14856
14835
|
exports.BreadcrumbComponent = BreadcrumbComponent;
|
|
14857
14836
|
exports.CANCEL_JOB = CANCEL_JOB;
|
|
14858
14837
|
exports.CANCEL_ORDER = CANCEL_ORDER;
|
|
14838
|
+
exports.CANCEL_PAYMENT = CANCEL_PAYMENT;
|
|
14859
14839
|
exports.CHANNEL_FRAGMENT = CHANNEL_FRAGMENT;
|
|
14860
14840
|
exports.COLLECTION_FRAGMENT = COLLECTION_FRAGMENT;
|
|
14861
14841
|
exports.CONFIGURABLE_OPERATION_DEF_FRAGMENT = CONFIGURABLE_OPERATION_DEF_FRAGMENT;
|
|
@@ -14926,6 +14906,7 @@
|
|
|
14926
14906
|
exports.DELETE_ORDER_NOTE = DELETE_ORDER_NOTE;
|
|
14927
14907
|
exports.DELETE_PAYMENT_METHOD = DELETE_PAYMENT_METHOD;
|
|
14928
14908
|
exports.DELETE_PRODUCT = DELETE_PRODUCT;
|
|
14909
|
+
exports.DELETE_PRODUCT_OPTION = DELETE_PRODUCT_OPTION;
|
|
14929
14910
|
exports.DELETE_PRODUCT_VARIANT = DELETE_PRODUCT_VARIANT;
|
|
14930
14911
|
exports.DELETE_PROMOTION = DELETE_PROMOTION;
|
|
14931
14912
|
exports.DELETE_ROLE = DELETE_ROLE;
|
|
@@ -15093,6 +15074,7 @@
|
|
|
15093
15074
|
exports.OrderStateLabelComponent = OrderStateLabelComponent;
|
|
15094
15075
|
exports.OverlayHostComponent = OverlayHostComponent;
|
|
15095
15076
|
exports.OverlayHostService = OverlayHostService;
|
|
15077
|
+
exports.PAYMENT_FRAGMENT = PAYMENT_FRAGMENT;
|
|
15096
15078
|
exports.PAYMENT_METHOD_FRAGMENT = PAYMENT_METHOD_FRAGMENT;
|
|
15097
15079
|
exports.PREVIEW_COLLECTION_CONTENTS = PREVIEW_COLLECTION_CONTENTS;
|
|
15098
15080
|
exports.PRODUCT_DETAIL_FRAGMENT = PRODUCT_DETAIL_FRAGMENT;
|