@vendure/admin-ui 1.4.6 → 1.5.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 +186 -155
- package/bundles/vendure-admin-ui-catalog.umd.js.map +1 -1
- package/bundles/vendure-admin-ui-core.umd.js +350 -273
- package/bundles/vendure-admin-ui-core.umd.js.map +1 -1
- package/bundles/vendure-admin-ui-customer.umd.js +51 -20
- package/bundles/vendure-admin-ui-customer.umd.js.map +1 -1
- package/bundles/vendure-admin-ui-order.umd.js +107 -17
- package/bundles/vendure-admin-ui-order.umd.js.map +1 -1
- package/bundles/vendure-admin-ui-settings.umd.js +1 -1
- package/bundles/vendure-admin-ui-settings.umd.js.map +1 -1
- package/bundles/vendure-admin-ui-system.umd.js.map +1 -1
- package/catalog/components/{product-assets/product-assets.component.d.ts → assets/assets.component.d.ts} +4 -10
- package/catalog/components/facet-detail/facet-detail.component.d.ts +7 -2
- package/catalog/components/product-detail/product-detail.component.d.ts +2 -1
- package/catalog/components/product-variants-list/product-variants-list.component.d.ts +2 -1
- package/catalog/public_api.d.ts +1 -1
- package/catalog/vendure-admin-ui-catalog.metadata.json +1 -1
- package/core/common/generated-types.d.ts +115 -12
- package/core/common/version.d.ts +1 -1
- package/core/data/definitions/customer-definitions.d.ts +1 -0
- package/core/data/providers/customer-data.service.d.ts +1 -0
- package/core/data/providers/promotion-data.service.d.ts +2 -2
- package/core/data/utils/remove-readonly-custom-fields.d.ts +12 -3
- package/core/public_api.d.ts +2 -0
- package/core/shared/components/asset-preview-links/asset-preview-links.component.d.ts +5 -0
- package/core/shared/components/object-tree/object-tree.component.d.ts +3 -3
- package/core/shared/directives/if-default-channel-active.directive.d.ts +1 -1
- package/core/shared/directives/if-multichannel.directive.d.ts +1 -1
- package/core/shared/dynamic-form-inputs/relation-form-input/generic/relation-generic-input.component.d.ts +15 -0
- package/core/vendure-admin-ui-core.metadata.json +1 -1
- package/customer/components/address-card/address-card.component.d.ts +2 -0
- package/customer/components/customer-detail/customer-detail.component.d.ts +2 -0
- package/customer/components/customer-list/customer-list.component.d.ts +1 -2
- package/customer/vendure-admin-ui-customer.metadata.json +1 -1
- package/esm2015/catalog/catalog.module.js +3 -3
- package/esm2015/catalog/components/assets/assets.component.js +93 -0
- package/esm2015/catalog/components/collection-detail/collection-detail.component.js +2 -2
- package/esm2015/catalog/components/facet-detail/facet-detail.component.js +45 -17
- package/esm2015/catalog/components/product-detail/product-detail.component.js +4 -3
- package/esm2015/catalog/components/product-variants-list/product-variants-list.component.js +9 -2
- package/esm2015/catalog/public_api.js +2 -2
- package/esm2015/core/common/generated-types.js +30 -1
- package/esm2015/core/common/introspection-result.js +189 -249
- package/esm2015/core/common/utilities/configurable-operation-utils.js +1 -1
- package/esm2015/core/common/utilities/create-updated-translatable.js +1 -1
- package/esm2015/core/common/version.js +2 -2
- package/esm2015/core/data/definitions/customer-definitions.js +8 -1
- package/esm2015/core/data/definitions/order-definitions.js +2 -1
- package/esm2015/core/data/providers/customer-data.service.js +5 -2
- package/esm2015/core/data/providers/interceptor.js +1 -1
- package/esm2015/core/data/providers/promotion-data.service.js +3 -2
- package/esm2015/core/data/providers/shipping-method-data.service.js +1 -1
- package/esm2015/core/data/utils/remove-readonly-custom-fields.js +15 -3
- package/esm2015/core/public_api.js +3 -1
- package/esm2015/core/shared/components/address-form/address-form.component.js +1 -1
- package/esm2015/core/shared/components/asset-gallery/asset-gallery.component.js +2 -2
- package/esm2015/core/shared/components/asset-preview/asset-preview.component.js +3 -3
- package/esm2015/core/shared/components/asset-preview-links/asset-preview-links.component.js +18 -0
- package/esm2015/core/shared/components/object-tree/object-tree.component.js +3 -3
- package/esm2015/core/shared/components/tabbed-custom-fields/tabbed-custom-fields.component.js +3 -2
- package/esm2015/core/shared/directives/if-default-channel-active.directive.js +2 -2
- package/esm2015/core/shared/directives/if-multichannel.directive.js +2 -2
- package/esm2015/core/shared/dynamic-form-inputs/relation-form-input/generic/relation-generic-input.component.js +48 -0
- package/esm2015/core/shared/dynamic-form-inputs/relation-form-input/relation-form-input.component.js +2 -2
- package/esm2015/core/shared/shared.module.js +5 -1
- package/esm2015/customer/components/address-card/address-card.component.js +9 -3
- package/esm2015/customer/components/customer-detail/customer-detail.component.js +35 -13
- package/esm2015/customer/components/customer-list/customer-list.component.js +12 -9
- package/esm2015/order/components/add-manual-payment-dialog/add-manual-payment-dialog.component.js +1 -1
- package/esm2015/order/components/cancel-order-dialog/cancel-order-dialog.component.js +36 -6
- package/esm2015/order/components/fulfill-order-dialog/fulfill-order-dialog.component.js +1 -1
- package/esm2015/order/components/line-refunds/line-refunds.component.js +1 -1
- package/esm2015/order/components/modification-detail/modification-detail.component.js +1 -1
- package/esm2015/order/components/order-detail/order-detail.component.js +2 -2
- package/esm2015/order/components/order-editor/order-editor.component.js +22 -7
- package/esm2015/order/components/order-edits-preview-dialog/order-edits-preview-dialog.component.js +1 -1
- package/esm2015/order/components/order-history/order-history.component.js +2 -2
- package/esm2015/order/components/order-list/order-list.component.js +1 -1
- package/esm2015/order/components/order-table/order-table.component.js +2 -2
- package/esm2015/order/components/refund-order-dialog/refund-order-dialog.component.js +10 -5
- package/esm2015/order/order.routes.js +1 -1
- package/esm2015/settings/components/channel-list/channel-list.component.js +2 -2
- package/esm2015/settings/components/role-list/role-list.component.js +1 -1
- package/esm2015/settings/components/test-order-builder/test-order-builder.component.js +1 -1
- package/esm2015/settings/providers/routing/shipping-method-resolver.js +1 -1
- package/esm2015/system/components/job-list/job-list.component.js +1 -1
- package/fesm2015/vendure-admin-ui-catalog.js +147 -125
- package/fesm2015/vendure-admin-ui-catalog.js.map +1 -1
- package/fesm2015/vendure-admin-ui-core.js +308 -251
- package/fesm2015/vendure-admin-ui-core.js.map +1 -1
- package/fesm2015/vendure-admin-ui-customer.js +53 -22
- package/fesm2015/vendure-admin-ui-customer.js.map +1 -1
- package/fesm2015/vendure-admin-ui-order.js +67 -17
- package/fesm2015/vendure-admin-ui-order.js.map +1 -1
- package/fesm2015/vendure-admin-ui-settings.js +1 -1
- package/fesm2015/vendure-admin-ui-settings.js.map +1 -1
- package/fesm2015/vendure-admin-ui-system.js.map +1 -1
- package/order/components/cancel-order-dialog/cancel-order-dialog.component.d.ts +3 -0
- package/order/components/order-editor/order-editor.component.d.ts +8 -2
- package/order/vendure-admin-ui-order.metadata.json +1 -1
- package/package.json +11 -11
- package/settings/vendure-admin-ui-settings.metadata.json +1 -1
- package/static/i18n-messages/cs.json +7 -1
- package/static/i18n-messages/de.json +7 -1
- package/static/i18n-messages/en.json +9 -3
- package/static/i18n-messages/es.json +7 -1
- package/static/i18n-messages/fr.json +7 -1
- package/static/i18n-messages/it.json +7 -1
- package/static/i18n-messages/pl.json +7 -1
- package/static/i18n-messages/pt_BR.json +7 -1
- package/static/i18n-messages/pt_PT.json +7 -1
- package/static/i18n-messages/ru.json +7 -1
- package/static/i18n-messages/uk.json +7 -1
- package/static/i18n-messages/zh_Hans.json +7 -1
- package/static/i18n-messages/zh_Hant.json +7 -1
- package/static/vendure-ui-config.json +25 -10
- package/esm2015/catalog/components/product-assets/product-assets.component.js +0 -108
|
@@ -662,7 +662,7 @@
|
|
|
662
662
|
var CREATE_TAX_CATEGORY = apolloAngular.gql(templateObject_19$3 || (templateObject_19$3 = __makeTemplateObject(["\n mutation CreateTaxCategory($input: CreateTaxCategoryInput!) {\n createTaxCategory(input: $input) {\n ...TaxCategory\n }\n }\n ", "\n"], ["\n mutation CreateTaxCategory($input: CreateTaxCategoryInput!) {\n createTaxCategory(input: $input) {\n ...TaxCategory\n }\n }\n ", "\n"])), TAX_CATEGORY_FRAGMENT);
|
|
663
663
|
var UPDATE_TAX_CATEGORY = apolloAngular.gql(templateObject_20$3 || (templateObject_20$3 = __makeTemplateObject(["\n mutation UpdateTaxCategory($input: UpdateTaxCategoryInput!) {\n updateTaxCategory(input: $input) {\n ...TaxCategory\n }\n }\n ", "\n"], ["\n mutation UpdateTaxCategory($input: UpdateTaxCategoryInput!) {\n updateTaxCategory(input: $input) {\n ...TaxCategory\n }\n }\n ", "\n"])), TAX_CATEGORY_FRAGMENT);
|
|
664
664
|
var DELETE_TAX_CATEGORY = apolloAngular.gql(templateObject_21$3 || (templateObject_21$3 = __makeTemplateObject(["\n mutation DeleteTaxCategory($id: ID!) {\n deleteTaxCategory(id: $id) {\n result\n message\n }\n }\n"], ["\n mutation DeleteTaxCategory($id: ID!) {\n deleteTaxCategory(id: $id) {\n result\n message\n }\n }\n"])));
|
|
665
|
-
var TAX_RATE_FRAGMENT = apolloAngular.gql(templateObject_22$
|
|
665
|
+
var TAX_RATE_FRAGMENT = apolloAngular.gql(templateObject_22$3 || (templateObject_22$3 = __makeTemplateObject(["\n fragment TaxRate on TaxRate {\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 customerGroup {\n id\n name\n }\n }\n"], ["\n fragment TaxRate on TaxRate {\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 customerGroup {\n id\n name\n }\n }\n"])));
|
|
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);
|
|
@@ -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$4, 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$
|
|
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$4, 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$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$1, templateObject_41$1, templateObject_42$1, templateObject_43$1, templateObject_44$1, templateObject_45, 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();
|
|
@@ -932,13 +932,46 @@
|
|
|
932
932
|
* To be used before submitting the entity for a create or update request.
|
|
933
933
|
*/
|
|
934
934
|
function removeReadonlyCustomFields(variables, customFieldConfig) {
|
|
935
|
-
|
|
936
|
-
|
|
935
|
+
var e_2, _a, e_3, _b;
|
|
936
|
+
if (!Array.isArray(variables)) {
|
|
937
|
+
if (Array.isArray(variables.input)) {
|
|
938
|
+
try {
|
|
939
|
+
for (var _c = __values(variables.input), _d = _c.next(); !_d.done; _d = _c.next()) {
|
|
940
|
+
var input = _d.value;
|
|
941
|
+
removeReadonly(input, customFieldConfig);
|
|
942
|
+
}
|
|
943
|
+
}
|
|
944
|
+
catch (e_2_1) { e_2 = { error: e_2_1 }; }
|
|
945
|
+
finally {
|
|
946
|
+
try {
|
|
947
|
+
if (_d && !_d.done && (_a = _c.return)) _a.call(_c);
|
|
948
|
+
}
|
|
949
|
+
finally { if (e_2) throw e_2.error; }
|
|
950
|
+
}
|
|
951
|
+
}
|
|
952
|
+
else {
|
|
953
|
+
removeReadonly(variables.input, customFieldConfig);
|
|
954
|
+
}
|
|
955
|
+
}
|
|
956
|
+
else {
|
|
957
|
+
try {
|
|
958
|
+
for (var variables_1 = __values(variables), variables_1_1 = variables_1.next(); !variables_1_1.done; variables_1_1 = variables_1.next()) {
|
|
959
|
+
var input = variables_1_1.value;
|
|
960
|
+
removeReadonly(input, customFieldConfig);
|
|
961
|
+
}
|
|
962
|
+
}
|
|
963
|
+
catch (e_3_1) { e_3 = { error: e_3_1 }; }
|
|
964
|
+
finally {
|
|
965
|
+
try {
|
|
966
|
+
if (variables_1_1 && !variables_1_1.done && (_b = variables_1.return)) _b.call(variables_1);
|
|
967
|
+
}
|
|
968
|
+
finally { if (e_3) throw e_3.error; }
|
|
969
|
+
}
|
|
937
970
|
}
|
|
938
971
|
return removeReadonly(variables, customFieldConfig);
|
|
939
972
|
}
|
|
940
973
|
function removeReadonly(input, customFieldConfig) {
|
|
941
|
-
var
|
|
974
|
+
var e_4, _a, e_5, _b;
|
|
942
975
|
try {
|
|
943
976
|
for (var customFieldConfig_1 = __values(customFieldConfig), customFieldConfig_1_1 = customFieldConfig_1.next(); !customFieldConfig_1_1.done; customFieldConfig_1_1 = customFieldConfig_1.next()) {
|
|
944
977
|
var field = customFieldConfig_1_1.value;
|
|
@@ -946,7 +979,7 @@
|
|
|
946
979
|
if (field.type === 'localeString') {
|
|
947
980
|
if (hasTranslations(input)) {
|
|
948
981
|
try {
|
|
949
|
-
for (var _c = (
|
|
982
|
+
for (var _c = (e_5 = void 0, __values(input.translations)), _d = _c.next(); !_d.done; _d = _c.next()) {
|
|
950
983
|
var translation = _d.value;
|
|
951
984
|
if (hasCustomFields$1(translation) &&
|
|
952
985
|
translation.customFields[field.name] !== undefined) {
|
|
@@ -954,12 +987,12 @@
|
|
|
954
987
|
}
|
|
955
988
|
}
|
|
956
989
|
}
|
|
957
|
-
catch (
|
|
990
|
+
catch (e_5_1) { e_5 = { error: e_5_1 }; }
|
|
958
991
|
finally {
|
|
959
992
|
try {
|
|
960
993
|
if (_d && !_d.done && (_b = _c.return)) _b.call(_c);
|
|
961
994
|
}
|
|
962
|
-
finally { if (
|
|
995
|
+
finally { if (e_5) throw e_5.error; }
|
|
963
996
|
}
|
|
964
997
|
}
|
|
965
998
|
}
|
|
@@ -971,12 +1004,12 @@
|
|
|
971
1004
|
}
|
|
972
1005
|
}
|
|
973
1006
|
}
|
|
974
|
-
catch (
|
|
1007
|
+
catch (e_4_1) { e_4 = { error: e_4_1 }; }
|
|
975
1008
|
finally {
|
|
976
1009
|
try {
|
|
977
1010
|
if (customFieldConfig_1_1 && !customFieldConfig_1_1.done && (_a = customFieldConfig_1.return)) _a.call(customFieldConfig_1);
|
|
978
1011
|
}
|
|
979
|
-
finally { if (
|
|
1012
|
+
finally { if (e_4) throw e_4.error; }
|
|
980
1013
|
}
|
|
981
1014
|
return input;
|
|
982
1015
|
}
|
|
@@ -1217,7 +1250,7 @@
|
|
|
1217
1250
|
var GET_PRODUCT_SIMPLE = apolloAngular.gql(templateObject_19$2 || (templateObject_19$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);
|
|
1218
1251
|
var GET_PRODUCT_LIST = apolloAngular.gql(templateObject_20$2 || (templateObject_20$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"])));
|
|
1219
1252
|
var GET_PRODUCT_OPTION_GROUPS = apolloAngular.gql(templateObject_21$2 || (templateObject_21$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"])));
|
|
1220
|
-
var GET_ASSET_LIST = apolloAngular.gql(templateObject_22$
|
|
1253
|
+
var GET_ASSET_LIST = apolloAngular.gql(templateObject_22$2 || (templateObject_22$2 = __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);
|
|
1221
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);
|
|
1222
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);
|
|
1223
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);
|
|
@@ -1240,7 +1273,7 @@
|
|
|
1240
1273
|
var CREATE_TAG = apolloAngular.gql(templateObject_42 || (templateObject_42 = __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);
|
|
1241
1274
|
var UPDATE_TAG = apolloAngular.gql(templateObject_43 || (templateObject_43 = __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);
|
|
1242
1275
|
var DELETE_TAG = apolloAngular.gql(templateObject_44 || (templateObject_44 = __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"])));
|
|
1243
|
-
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$3, 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$
|
|
1276
|
+
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$3, 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, 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, templateObject_40, templateObject_41, templateObject_42, templateObject_43, templateObject_44;
|
|
1244
1277
|
|
|
1245
1278
|
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);
|
|
1246
1279
|
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);
|
|
@@ -1337,18 +1370,19 @@
|
|
|
1337
1370
|
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"])));
|
|
1338
1371
|
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);
|
|
1339
1372
|
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);
|
|
1340
|
-
var
|
|
1341
|
-
var
|
|
1342
|
-
var
|
|
1343
|
-
var
|
|
1344
|
-
var
|
|
1345
|
-
var
|
|
1346
|
-
var
|
|
1347
|
-
var
|
|
1348
|
-
var
|
|
1349
|
-
var
|
|
1350
|
-
var
|
|
1351
|
-
var
|
|
1373
|
+
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"])));
|
|
1374
|
+
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);
|
|
1375
|
+
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);
|
|
1376
|
+
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"])));
|
|
1377
|
+
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);
|
|
1378
|
+
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);
|
|
1379
|
+
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);
|
|
1380
|
+
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);
|
|
1381
|
+
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"])));
|
|
1382
|
+
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"])));
|
|
1383
|
+
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"])));
|
|
1384
|
+
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"])));
|
|
1385
|
+
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;
|
|
1352
1386
|
|
|
1353
1387
|
var CustomerDataService = /** @class */ (function () {
|
|
1354
1388
|
function CustomerDataService(baseDataService) {
|
|
@@ -1401,6 +1435,9 @@
|
|
|
1401
1435
|
input: input,
|
|
1402
1436
|
});
|
|
1403
1437
|
};
|
|
1438
|
+
CustomerDataService.prototype.deleteCustomerAddress = function (id) {
|
|
1439
|
+
return this.baseDataService.mutate(DELETE_CUSTOMER_ADDRESS, { id: id });
|
|
1440
|
+
};
|
|
1404
1441
|
CustomerDataService.prototype.createCustomerGroup = function (input) {
|
|
1405
1442
|
return this.baseDataService.mutate(CREATE_CUSTOMER_GROUP, {
|
|
1406
1443
|
input: input,
|
|
@@ -1544,7 +1581,7 @@
|
|
|
1544
1581
|
var ORDER_FRAGMENT = apolloAngular.gql(templateObject_4$2 || (templateObject_4$2 = __makeTemplateObject(["\n fragment Order on Order {\n id\n createdAt\n updatedAt\n orderPlacedAt\n code\n state\n nextStates\n total\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 currencyCode\n customer {\n id\n firstName\n lastName\n }\n shippingLines {\n shippingMethod {\n name\n }\n }\n }\n"])));
|
|
1545
1582
|
var FULFILLMENT_FRAGMENT = apolloAngular.gql(templateObject_5$2 || (templateObject_5$2 = __makeTemplateObject(["\n fragment Fulfillment on Fulfillment {\n id\n state\n nextStates\n createdAt\n updatedAt\n method\n orderItems {\n id\n }\n trackingCode\n }\n"], ["\n fragment Fulfillment on Fulfillment {\n id\n state\n nextStates\n createdAt\n updatedAt\n method\n orderItems {\n id\n }\n trackingCode\n }\n"])));
|
|
1546
1583
|
var ORDER_LINE_FRAGMENT = apolloAngular.gql(templateObject_6$2 || (templateObject_6$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 unitPrice\n unitPriceWithTax\n proratedUnitPrice\n proratedUnitPriceWithTax\n quantity\n items {\n id\n unitPrice\n unitPriceWithTax\n taxRate\n refundId\n cancelled\n fulfillment {\n ...Fulfillment\n }\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 unitPrice\n unitPriceWithTax\n proratedUnitPrice\n proratedUnitPriceWithTax\n quantity\n items {\n id\n unitPrice\n unitPriceWithTax\n taxRate\n refundId\n cancelled\n fulfillment {\n ...Fulfillment\n }\n }\n linePrice\n lineTax\n linePriceWithTax\n discountedLinePrice\n discountedLinePriceWithTax\n }\n"])));
|
|
1547
|
-
var ORDER_DETAIL_FRAGMENT = apolloAngular.gql(templateObject_7$2 || (templateObject_7$2 = __makeTemplateObject(["\n fragment OrderDetail on Order {\n id\n createdAt\n updatedAt\n code\n state\n nextStates\n active\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 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);
|
|
1584
|
+
var ORDER_DETAIL_FRAGMENT = apolloAngular.gql(templateObject_7$2 || (templateObject_7$2 = __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);
|
|
1548
1585
|
var GET_ORDERS_LIST = apolloAngular.gql(templateObject_8$1 || (templateObject_8$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);
|
|
1549
1586
|
var GET_ORDER = apolloAngular.gql(templateObject_9$1 || (templateObject_9$1 = __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);
|
|
1550
1587
|
var SETTLE_PAYMENT = apolloAngular.gql(templateObject_10 || (templateObject_10 = __makeTemplateObject(["\n mutation SettlePayment($id: ID!) {\n settlePayment(id: $id) {\n ... on Payment {\n id\n transactionId\n amount\n method\n state\n metadata\n }\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 mutation SettlePayment($id: ID!) {\n settlePayment(id: $id) {\n ... on Payment {\n id\n transactionId\n amount\n method\n state\n metadata\n }\n ...ErrorResult\n ... on SettlePaymentError {\n paymentErrorMessage\n }\n ... on PaymentStateTransitionError {\n transitionError\n }\n ... on OrderStateTransitionError {\n transitionError\n }\n }\n }\n ", "\n"])), ERROR_RESULT_FRAGMENT);
|
|
@@ -1668,6 +1705,7 @@
|
|
|
1668
1705
|
(function (AdjustmentType) {
|
|
1669
1706
|
AdjustmentType["PROMOTION"] = "PROMOTION";
|
|
1670
1707
|
AdjustmentType["DISTRIBUTED_ORDER_PROMOTION"] = "DISTRIBUTED_ORDER_PROMOTION";
|
|
1708
|
+
AdjustmentType["OTHER"] = "OTHER";
|
|
1671
1709
|
})(exports.AdjustmentType || (exports.AdjustmentType = {}));
|
|
1672
1710
|
exports.AssetType = void 0;
|
|
1673
1711
|
(function (AssetType) {
|
|
@@ -2041,6 +2079,9 @@
|
|
|
2041
2079
|
ErrorCode["ORDER_LIMIT_ERROR"] = "ORDER_LIMIT_ERROR";
|
|
2042
2080
|
ErrorCode["NEGATIVE_QUANTITY_ERROR"] = "NEGATIVE_QUANTITY_ERROR";
|
|
2043
2081
|
ErrorCode["INSUFFICIENT_STOCK_ERROR"] = "INSUFFICIENT_STOCK_ERROR";
|
|
2082
|
+
ErrorCode["COUPON_CODE_INVALID_ERROR"] = "COUPON_CODE_INVALID_ERROR";
|
|
2083
|
+
ErrorCode["COUPON_CODE_EXPIRED_ERROR"] = "COUPON_CODE_EXPIRED_ERROR";
|
|
2084
|
+
ErrorCode["COUPON_CODE_LIMIT_ERROR"] = "COUPON_CODE_LIMIT_ERROR";
|
|
2044
2085
|
})(exports.ErrorCode || (exports.ErrorCode = {}));
|
|
2045
2086
|
exports.GlobalFlag = void 0;
|
|
2046
2087
|
(function (GlobalFlag) {
|
|
@@ -2426,6 +2467,31 @@
|
|
|
2426
2467
|
* Permissions for administrators and customers. Used to control access to
|
|
2427
2468
|
* GraphQL resolvers via the {@link Allow} decorator.
|
|
2428
2469
|
*
|
|
2470
|
+
* ## Understanding Permission.Owner
|
|
2471
|
+
*
|
|
2472
|
+
* `Permission.Owner` is a special permission which is used in some of the Vendure resolvers to indicate that that resolver should only
|
|
2473
|
+
* be accessible to the "owner" of that resource.
|
|
2474
|
+
*
|
|
2475
|
+
* For example, the Shop API `activeCustomer` query resolver should only return the Customer object for the "owner" of that Customer, i.e.
|
|
2476
|
+
* based on the activeUserId of the current session. As a result, the resolver code looks like this:
|
|
2477
|
+
*
|
|
2478
|
+
* @example
|
|
2479
|
+
* ```TypeScript
|
|
2480
|
+
* \@Query()
|
|
2481
|
+
* \@Allow(Permission.Owner)
|
|
2482
|
+
* async activeCustomer(\@Ctx() ctx: RequestContext): Promise<Customer | undefined> {
|
|
2483
|
+
* const userId = ctx.activeUserId;
|
|
2484
|
+
* if (userId) {
|
|
2485
|
+
* return this.customerService.findOneByUserId(ctx, userId);
|
|
2486
|
+
* }
|
|
2487
|
+
* }
|
|
2488
|
+
* ```
|
|
2489
|
+
*
|
|
2490
|
+
* Here we can see that the "ownership" must be enforced by custom logic inside the resolver. Since "ownership" cannot be defined generally
|
|
2491
|
+
* nor statically encoded at build-time, any resolvers using `Permission.Owner` **must** include logic to enforce that only the owner
|
|
2492
|
+
* of the resource has access. If not, then it is the equivalent of using `Permission.Public`.
|
|
2493
|
+
*
|
|
2494
|
+
*
|
|
2429
2495
|
* @docsCategory common
|
|
2430
2496
|
*/
|
|
2431
2497
|
exports.Permission = void 0;
|
|
@@ -2863,13 +2929,14 @@
|
|
|
2863
2929
|
function PromotionDataService(baseDataService) {
|
|
2864
2930
|
this.baseDataService = baseDataService;
|
|
2865
2931
|
}
|
|
2866
|
-
PromotionDataService.prototype.getPromotions = function (take, skip) {
|
|
2932
|
+
PromotionDataService.prototype.getPromotions = function (take, skip, filter) {
|
|
2867
2933
|
if (take === void 0) { take = 10; }
|
|
2868
2934
|
if (skip === void 0) { skip = 0; }
|
|
2869
2935
|
return this.baseDataService.query(GET_PROMOTION_LIST, {
|
|
2870
2936
|
options: {
|
|
2871
2937
|
take: take,
|
|
2872
2938
|
skip: skip,
|
|
2939
|
+
filter: filter,
|
|
2873
2940
|
},
|
|
2874
2941
|
});
|
|
2875
2942
|
};
|
|
@@ -5193,254 +5260,194 @@
|
|
|
5193
5260
|
|
|
5194
5261
|
// tslint:disable
|
|
5195
5262
|
var result = {
|
|
5196
|
-
|
|
5197
|
-
|
|
5198
|
-
|
|
5199
|
-
|
|
5200
|
-
|
|
5201
|
-
|
|
5202
|
-
|
|
5203
|
-
|
|
5204
|
-
|
|
5205
|
-
],
|
|
5206
|
-
"AddManualPaymentToOrderResult": [
|
|
5207
|
-
"Order",
|
|
5208
|
-
"ManualPaymentStateError"
|
|
5209
|
-
],
|
|
5210
|
-
"AuthenticationResult": [
|
|
5211
|
-
"CurrentUser",
|
|
5212
|
-
"InvalidCredentialsError"
|
|
5213
|
-
],
|
|
5214
|
-
"CancelOrderResult": [
|
|
5215
|
-
"Order",
|
|
5216
|
-
"EmptyOrderLineSelectionError",
|
|
5217
|
-
"QuantityTooGreatError",
|
|
5218
|
-
"MultipleOrderError",
|
|
5219
|
-
"CancelActiveOrderError",
|
|
5220
|
-
"OrderStateTransitionError"
|
|
5221
|
-
],
|
|
5222
|
-
"CreateAssetResult": [
|
|
5223
|
-
"Asset",
|
|
5224
|
-
"MimeTypeError"
|
|
5225
|
-
],
|
|
5226
|
-
"CreateChannelResult": [
|
|
5227
|
-
"Channel",
|
|
5228
|
-
"LanguageNotAvailableError"
|
|
5229
|
-
],
|
|
5230
|
-
"CreateCustomerResult": [
|
|
5231
|
-
"Customer",
|
|
5232
|
-
"EmailAddressConflictError"
|
|
5233
|
-
],
|
|
5234
|
-
"CreatePromotionResult": [
|
|
5235
|
-
"Promotion",
|
|
5236
|
-
"MissingConditionsError"
|
|
5237
|
-
],
|
|
5238
|
-
"CustomField": [
|
|
5239
|
-
"BooleanCustomFieldConfig",
|
|
5240
|
-
"DateTimeCustomFieldConfig",
|
|
5241
|
-
"FloatCustomFieldConfig",
|
|
5242
|
-
"IntCustomFieldConfig",
|
|
5243
|
-
"LocaleStringCustomFieldConfig",
|
|
5244
|
-
"RelationCustomFieldConfig",
|
|
5245
|
-
"StringCustomFieldConfig",
|
|
5246
|
-
"TextCustomFieldConfig"
|
|
5247
|
-
],
|
|
5248
|
-
"CustomFieldConfig": [
|
|
5249
|
-
"StringCustomFieldConfig",
|
|
5250
|
-
"LocaleStringCustomFieldConfig",
|
|
5251
|
-
"IntCustomFieldConfig",
|
|
5252
|
-
"FloatCustomFieldConfig",
|
|
5253
|
-
"BooleanCustomFieldConfig",
|
|
5254
|
-
"DateTimeCustomFieldConfig",
|
|
5255
|
-
"RelationCustomFieldConfig",
|
|
5256
|
-
"TextCustomFieldConfig"
|
|
5257
|
-
],
|
|
5258
|
-
"ErrorResult": [
|
|
5259
|
-
"AlreadyRefundedError",
|
|
5260
|
-
"CancelActiveOrderError",
|
|
5261
|
-
"ChannelDefaultLanguageError",
|
|
5262
|
-
"CreateFulfillmentError",
|
|
5263
|
-
"EmailAddressConflictError",
|
|
5264
|
-
"EmptyOrderLineSelectionError",
|
|
5265
|
-
"FulfillmentStateTransitionError",
|
|
5266
|
-
"InsufficientStockError",
|
|
5267
|
-
"InsufficientStockOnHandError",
|
|
5268
|
-
"InvalidCredentialsError",
|
|
5269
|
-
"InvalidFulfillmentHandlerError",
|
|
5270
|
-
"ItemsAlreadyFulfilledError",
|
|
5271
|
-
"LanguageNotAvailableError",
|
|
5272
|
-
"ManualPaymentStateError",
|
|
5273
|
-
"MimeTypeError",
|
|
5274
|
-
"MissingConditionsError",
|
|
5275
|
-
"MultipleOrderError",
|
|
5276
|
-
"NativeAuthStrategyError",
|
|
5277
|
-
"NegativeQuantityError",
|
|
5278
|
-
"NoChangesSpecifiedError",
|
|
5279
|
-
"NothingToRefundError",
|
|
5280
|
-
"OrderLimitError",
|
|
5281
|
-
"OrderModificationStateError",
|
|
5282
|
-
"OrderStateTransitionError",
|
|
5283
|
-
"PaymentMethodMissingError",
|
|
5284
|
-
"PaymentOrderMismatchError",
|
|
5285
|
-
"PaymentStateTransitionError",
|
|
5286
|
-
"ProductOptionInUseError",
|
|
5287
|
-
"QuantityTooGreatError",
|
|
5288
|
-
"RefundOrderStateError",
|
|
5289
|
-
"RefundPaymentIdMissingError",
|
|
5290
|
-
"RefundStateTransitionError",
|
|
5291
|
-
"SettlePaymentError"
|
|
5292
|
-
],
|
|
5293
|
-
"ModifyOrderResult": [
|
|
5294
|
-
"Order",
|
|
5295
|
-
"NoChangesSpecifiedError",
|
|
5296
|
-
"OrderModificationStateError",
|
|
5297
|
-
"PaymentMethodMissingError",
|
|
5298
|
-
"RefundPaymentIdMissingError",
|
|
5299
|
-
"OrderLimitError",
|
|
5300
|
-
"NegativeQuantityError",
|
|
5301
|
-
"InsufficientStockError"
|
|
5302
|
-
],
|
|
5303
|
-
"NativeAuthenticationResult": [
|
|
5304
|
-
"CurrentUser",
|
|
5305
|
-
"InvalidCredentialsError",
|
|
5306
|
-
"NativeAuthStrategyError"
|
|
5263
|
+
possibleTypes: {
|
|
5264
|
+
AddFulfillmentToOrderResult: [
|
|
5265
|
+
'Fulfillment',
|
|
5266
|
+
'EmptyOrderLineSelectionError',
|
|
5267
|
+
'ItemsAlreadyFulfilledError',
|
|
5268
|
+
'InsufficientStockOnHandError',
|
|
5269
|
+
'InvalidFulfillmentHandlerError',
|
|
5270
|
+
'FulfillmentStateTransitionError',
|
|
5271
|
+
'CreateFulfillmentError',
|
|
5307
5272
|
],
|
|
5308
|
-
|
|
5309
|
-
|
|
5310
|
-
|
|
5311
|
-
|
|
5312
|
-
|
|
5313
|
-
|
|
5314
|
-
|
|
5315
|
-
|
|
5316
|
-
|
|
5317
|
-
"Country",
|
|
5318
|
-
"Customer",
|
|
5319
|
-
"CustomerGroup",
|
|
5320
|
-
"Facet",
|
|
5321
|
-
"FacetValue",
|
|
5322
|
-
"Fulfillment",
|
|
5323
|
-
"HistoryEntry",
|
|
5324
|
-
"Job",
|
|
5325
|
-
"Order",
|
|
5326
|
-
"OrderItem",
|
|
5327
|
-
"OrderLine",
|
|
5328
|
-
"OrderModification",
|
|
5329
|
-
"Payment",
|
|
5330
|
-
"PaymentMethod",
|
|
5331
|
-
"Product",
|
|
5332
|
-
"ProductOption",
|
|
5333
|
-
"ProductOptionGroup",
|
|
5334
|
-
"ProductVariant",
|
|
5335
|
-
"Promotion",
|
|
5336
|
-
"Refund",
|
|
5337
|
-
"Release",
|
|
5338
|
-
"Return",
|
|
5339
|
-
"Role",
|
|
5340
|
-
"Sale",
|
|
5341
|
-
"ShippingMethod",
|
|
5342
|
-
"StockAdjustment",
|
|
5343
|
-
"Surcharge",
|
|
5344
|
-
"Tag",
|
|
5345
|
-
"TaxCategory",
|
|
5346
|
-
"TaxRate",
|
|
5347
|
-
"User",
|
|
5348
|
-
"Zone"
|
|
5273
|
+
AddManualPaymentToOrderResult: ['Order', 'ManualPaymentStateError'],
|
|
5274
|
+
AuthenticationResult: ['CurrentUser', 'InvalidCredentialsError'],
|
|
5275
|
+
CancelOrderResult: [
|
|
5276
|
+
'Order',
|
|
5277
|
+
'EmptyOrderLineSelectionError',
|
|
5278
|
+
'QuantityTooGreatError',
|
|
5279
|
+
'MultipleOrderError',
|
|
5280
|
+
'CancelActiveOrderError',
|
|
5281
|
+
'OrderStateTransitionError',
|
|
5349
5282
|
],
|
|
5350
|
-
|
|
5351
|
-
|
|
5352
|
-
|
|
5353
|
-
|
|
5354
|
-
|
|
5355
|
-
|
|
5356
|
-
|
|
5357
|
-
|
|
5358
|
-
|
|
5359
|
-
|
|
5360
|
-
|
|
5361
|
-
|
|
5362
|
-
|
|
5363
|
-
"ProductVariantList",
|
|
5364
|
-
"PromotionList",
|
|
5365
|
-
"RoleList",
|
|
5366
|
-
"ShippingMethodList",
|
|
5367
|
-
"TagList",
|
|
5368
|
-
"TaxRateList"
|
|
5283
|
+
CreateAssetResult: ['Asset', 'MimeTypeError'],
|
|
5284
|
+
CreateChannelResult: ['Channel', 'LanguageNotAvailableError'],
|
|
5285
|
+
CreateCustomerResult: ['Customer', 'EmailAddressConflictError'],
|
|
5286
|
+
CreatePromotionResult: ['Promotion', 'MissingConditionsError'],
|
|
5287
|
+
CustomField: [
|
|
5288
|
+
'BooleanCustomFieldConfig',
|
|
5289
|
+
'DateTimeCustomFieldConfig',
|
|
5290
|
+
'FloatCustomFieldConfig',
|
|
5291
|
+
'IntCustomFieldConfig',
|
|
5292
|
+
'LocaleStringCustomFieldConfig',
|
|
5293
|
+
'RelationCustomFieldConfig',
|
|
5294
|
+
'StringCustomFieldConfig',
|
|
5295
|
+
'TextCustomFieldConfig',
|
|
5369
5296
|
],
|
|
5370
|
-
|
|
5371
|
-
|
|
5372
|
-
|
|
5373
|
-
|
|
5374
|
-
|
|
5375
|
-
|
|
5376
|
-
|
|
5377
|
-
|
|
5378
|
-
|
|
5379
|
-
"RefundStateTransitionError"
|
|
5297
|
+
CustomFieldConfig: [
|
|
5298
|
+
'StringCustomFieldConfig',
|
|
5299
|
+
'LocaleStringCustomFieldConfig',
|
|
5300
|
+
'IntCustomFieldConfig',
|
|
5301
|
+
'FloatCustomFieldConfig',
|
|
5302
|
+
'BooleanCustomFieldConfig',
|
|
5303
|
+
'DateTimeCustomFieldConfig',
|
|
5304
|
+
'RelationCustomFieldConfig',
|
|
5305
|
+
'TextCustomFieldConfig',
|
|
5380
5306
|
],
|
|
5381
|
-
|
|
5382
|
-
|
|
5383
|
-
|
|
5307
|
+
ErrorResult: [
|
|
5308
|
+
'AlreadyRefundedError',
|
|
5309
|
+
'CancelActiveOrderError',
|
|
5310
|
+
'ChannelDefaultLanguageError',
|
|
5311
|
+
'CouponCodeExpiredError',
|
|
5312
|
+
'CouponCodeInvalidError',
|
|
5313
|
+
'CouponCodeLimitError',
|
|
5314
|
+
'CreateFulfillmentError',
|
|
5315
|
+
'EmailAddressConflictError',
|
|
5316
|
+
'EmptyOrderLineSelectionError',
|
|
5317
|
+
'FulfillmentStateTransitionError',
|
|
5318
|
+
'InsufficientStockError',
|
|
5319
|
+
'InsufficientStockOnHandError',
|
|
5320
|
+
'InvalidCredentialsError',
|
|
5321
|
+
'InvalidFulfillmentHandlerError',
|
|
5322
|
+
'ItemsAlreadyFulfilledError',
|
|
5323
|
+
'LanguageNotAvailableError',
|
|
5324
|
+
'ManualPaymentStateError',
|
|
5325
|
+
'MimeTypeError',
|
|
5326
|
+
'MissingConditionsError',
|
|
5327
|
+
'MultipleOrderError',
|
|
5328
|
+
'NativeAuthStrategyError',
|
|
5329
|
+
'NegativeQuantityError',
|
|
5330
|
+
'NoChangesSpecifiedError',
|
|
5331
|
+
'NothingToRefundError',
|
|
5332
|
+
'OrderLimitError',
|
|
5333
|
+
'OrderModificationStateError',
|
|
5334
|
+
'OrderStateTransitionError',
|
|
5335
|
+
'PaymentMethodMissingError',
|
|
5336
|
+
'PaymentOrderMismatchError',
|
|
5337
|
+
'PaymentStateTransitionError',
|
|
5338
|
+
'ProductOptionInUseError',
|
|
5339
|
+
'QuantityTooGreatError',
|
|
5340
|
+
'RefundOrderStateError',
|
|
5341
|
+
'RefundPaymentIdMissingError',
|
|
5342
|
+
'RefundStateTransitionError',
|
|
5343
|
+
'SettlePaymentError',
|
|
5384
5344
|
],
|
|
5385
|
-
|
|
5386
|
-
|
|
5387
|
-
|
|
5345
|
+
ModifyOrderResult: [
|
|
5346
|
+
'Order',
|
|
5347
|
+
'NoChangesSpecifiedError',
|
|
5348
|
+
'OrderModificationStateError',
|
|
5349
|
+
'PaymentMethodMissingError',
|
|
5350
|
+
'RefundPaymentIdMissingError',
|
|
5351
|
+
'OrderLimitError',
|
|
5352
|
+
'NegativeQuantityError',
|
|
5353
|
+
'InsufficientStockError',
|
|
5354
|
+
'CouponCodeExpiredError',
|
|
5355
|
+
'CouponCodeInvalidError',
|
|
5356
|
+
'CouponCodeLimitError',
|
|
5388
5357
|
],
|
|
5389
|
-
|
|
5390
|
-
|
|
5391
|
-
|
|
5392
|
-
|
|
5393
|
-
|
|
5358
|
+
NativeAuthenticationResult: ['CurrentUser', 'InvalidCredentialsError', 'NativeAuthStrategyError'],
|
|
5359
|
+
Node: [
|
|
5360
|
+
'Address',
|
|
5361
|
+
'Administrator',
|
|
5362
|
+
'Allocation',
|
|
5363
|
+
'Asset',
|
|
5364
|
+
'AuthenticationMethod',
|
|
5365
|
+
'Cancellation',
|
|
5366
|
+
'Channel',
|
|
5367
|
+
'Collection',
|
|
5368
|
+
'Country',
|
|
5369
|
+
'Customer',
|
|
5370
|
+
'CustomerGroup',
|
|
5371
|
+
'Facet',
|
|
5372
|
+
'FacetValue',
|
|
5373
|
+
'Fulfillment',
|
|
5374
|
+
'HistoryEntry',
|
|
5375
|
+
'Job',
|
|
5376
|
+
'Order',
|
|
5377
|
+
'OrderItem',
|
|
5378
|
+
'OrderLine',
|
|
5379
|
+
'OrderModification',
|
|
5380
|
+
'Payment',
|
|
5381
|
+
'PaymentMethod',
|
|
5382
|
+
'Product',
|
|
5383
|
+
'ProductOption',
|
|
5384
|
+
'ProductOptionGroup',
|
|
5385
|
+
'ProductVariant',
|
|
5386
|
+
'Promotion',
|
|
5387
|
+
'Refund',
|
|
5388
|
+
'Release',
|
|
5389
|
+
'Return',
|
|
5390
|
+
'Role',
|
|
5391
|
+
'Sale',
|
|
5392
|
+
'ShippingMethod',
|
|
5393
|
+
'StockAdjustment',
|
|
5394
|
+
'Surcharge',
|
|
5395
|
+
'Tag',
|
|
5396
|
+
'TaxCategory',
|
|
5397
|
+
'TaxRate',
|
|
5398
|
+
'User',
|
|
5399
|
+
'Zone',
|
|
5394
5400
|
],
|
|
5395
|
-
|
|
5396
|
-
|
|
5397
|
-
|
|
5401
|
+
PaginatedList: [
|
|
5402
|
+
'AdministratorList',
|
|
5403
|
+
'AssetList',
|
|
5404
|
+
'CollectionList',
|
|
5405
|
+
'CountryList',
|
|
5406
|
+
'CustomerGroupList',
|
|
5407
|
+
'CustomerList',
|
|
5408
|
+
'FacetList',
|
|
5409
|
+
'HistoryEntryList',
|
|
5410
|
+
'JobList',
|
|
5411
|
+
'OrderList',
|
|
5412
|
+
'PaymentMethodList',
|
|
5413
|
+
'ProductList',
|
|
5414
|
+
'ProductVariantList',
|
|
5415
|
+
'PromotionList',
|
|
5416
|
+
'RoleList',
|
|
5417
|
+
'ShippingMethodList',
|
|
5418
|
+
'TagList',
|
|
5419
|
+
'TaxRateList',
|
|
5398
5420
|
],
|
|
5399
|
-
|
|
5400
|
-
|
|
5401
|
-
|
|
5402
|
-
|
|
5403
|
-
|
|
5404
|
-
|
|
5405
|
-
|
|
5421
|
+
RefundOrderResult: [
|
|
5422
|
+
'Refund',
|
|
5423
|
+
'QuantityTooGreatError',
|
|
5424
|
+
'NothingToRefundError',
|
|
5425
|
+
'OrderStateTransitionError',
|
|
5426
|
+
'MultipleOrderError',
|
|
5427
|
+
'PaymentOrderMismatchError',
|
|
5428
|
+
'RefundOrderStateError',
|
|
5429
|
+
'AlreadyRefundedError',
|
|
5430
|
+
'RefundStateTransitionError',
|
|
5406
5431
|
],
|
|
5407
|
-
|
|
5408
|
-
|
|
5409
|
-
|
|
5410
|
-
|
|
5411
|
-
|
|
5412
|
-
|
|
5413
|
-
|
|
5432
|
+
RemoveOptionGroupFromProductResult: ['Product', 'ProductOptionInUseError'],
|
|
5433
|
+
SearchResultPrice: ['PriceRange', 'SinglePrice'],
|
|
5434
|
+
SettlePaymentResult: [
|
|
5435
|
+
'Payment',
|
|
5436
|
+
'SettlePaymentError',
|
|
5437
|
+
'PaymentStateTransitionError',
|
|
5438
|
+
'OrderStateTransitionError',
|
|
5414
5439
|
],
|
|
5415
|
-
|
|
5416
|
-
|
|
5417
|
-
|
|
5418
|
-
],
|
|
5419
|
-
|
|
5420
|
-
|
|
5421
|
-
|
|
5422
|
-
],
|
|
5423
|
-
|
|
5424
|
-
|
|
5425
|
-
|
|
5426
|
-
],
|
|
5427
|
-
"UpdateChannelResult": [
|
|
5428
|
-
"Channel",
|
|
5429
|
-
"LanguageNotAvailableError"
|
|
5430
|
-
],
|
|
5431
|
-
"UpdateCustomerResult": [
|
|
5432
|
-
"Customer",
|
|
5433
|
-
"EmailAddressConflictError"
|
|
5434
|
-
],
|
|
5435
|
-
"UpdateGlobalSettingsResult": [
|
|
5436
|
-
"GlobalSettings",
|
|
5437
|
-
"ChannelDefaultLanguageError"
|
|
5438
|
-
],
|
|
5439
|
-
"UpdatePromotionResult": [
|
|
5440
|
-
"Promotion",
|
|
5441
|
-
"MissingConditionsError"
|
|
5442
|
-
]
|
|
5443
|
-
}
|
|
5440
|
+
SettleRefundResult: ['Refund', 'RefundStateTransitionError'],
|
|
5441
|
+
StockMovement: ['Allocation', 'Cancellation', 'Release', 'Return', 'Sale', 'StockAdjustment'],
|
|
5442
|
+
StockMovementItem: ['StockAdjustment', 'Allocation', 'Sale', 'Cancellation', 'Return', 'Release'],
|
|
5443
|
+
TransitionFulfillmentToStateResult: ['Fulfillment', 'FulfillmentStateTransitionError'],
|
|
5444
|
+
TransitionOrderToStateResult: ['Order', 'OrderStateTransitionError'],
|
|
5445
|
+
TransitionPaymentToStateResult: ['Payment', 'PaymentStateTransitionError'],
|
|
5446
|
+
UpdateChannelResult: ['Channel', 'LanguageNotAvailableError'],
|
|
5447
|
+
UpdateCustomerResult: ['Customer', 'EmailAddressConflictError'],
|
|
5448
|
+
UpdateGlobalSettingsResult: ['GlobalSettings', 'ChannelDefaultLanguageError'],
|
|
5449
|
+
UpdatePromotionResult: ['Promotion', 'MissingConditionsError'],
|
|
5450
|
+
},
|
|
5444
5451
|
};
|
|
5445
5452
|
|
|
5446
5453
|
// Allows the introspectionResult to be imported as a named symbol
|
|
@@ -6720,7 +6727,7 @@
|
|
|
6720
6727
|
RelationFormInputComponent.decorators = [
|
|
6721
6728
|
{ type: i0.Component, args: [{
|
|
6722
6729
|
selector: 'vdr-relation-form-input',
|
|
6723
|
-
template: "<div [ngSwitch]=\"config.entity\">\r\n <vdr-relation-asset-input\r\n *ngSwitchCase=\"'Asset'\"\r\n [parentFormControl]=\"formControl\"\r\n [config]=\"config\"\r\n [readonly]=\"readonly\"\r\n ></vdr-relation-asset-input>\r\n <vdr-relation-product-input\r\n *ngSwitchCase=\"'Product'\"\r\n [parentFormControl]=\"formControl\"\r\n [config]=\"config\"\r\n [readonly]=\"readonly\"\r\n ></vdr-relation-product-input>\r\n <vdr-relation-customer-input\r\n *ngSwitchCase=\"'Customer'\"\r\n [parentFormControl]=\"formControl\"\r\n [config]=\"config\"\r\n [readonly]=\"readonly\"\r\n ></vdr-relation-customer-input>\r\n <vdr-relation-product-variant-input\r\n *ngSwitchCase=\"'ProductVariant'\"\r\n [parentFormControl]=\"formControl\"\r\n [config]=\"config\"\r\n [readonly]=\"readonly\"\r\n ></vdr-relation-product-variant-input>\r\n <ng-template ngSwitchDefault>\r\n
|
|
6730
|
+
template: "<div [ngSwitch]=\"config.entity\">\r\n <vdr-relation-asset-input\r\n *ngSwitchCase=\"'Asset'\"\r\n [parentFormControl]=\"formControl\"\r\n [config]=\"config\"\r\n [readonly]=\"readonly\"\r\n ></vdr-relation-asset-input>\r\n <vdr-relation-product-input\r\n *ngSwitchCase=\"'Product'\"\r\n [parentFormControl]=\"formControl\"\r\n [config]=\"config\"\r\n [readonly]=\"readonly\"\r\n ></vdr-relation-product-input>\r\n <vdr-relation-customer-input\r\n *ngSwitchCase=\"'Customer'\"\r\n [parentFormControl]=\"formControl\"\r\n [config]=\"config\"\r\n [readonly]=\"readonly\"\r\n ></vdr-relation-customer-input>\r\n <vdr-relation-product-variant-input\r\n *ngSwitchCase=\"'ProductVariant'\"\r\n [parentFormControl]=\"formControl\"\r\n [config]=\"config\"\r\n [readonly]=\"readonly\"\r\n ></vdr-relation-product-variant-input>\r\n <ng-template ngSwitchDefault>\r\n <vdr-relation-generic-input\r\n [parentFormControl]=\"formControl\"\r\n [config]=\"config\"\r\n [readonly]=\"readonly\"\r\n ></vdr-relation-generic-input>\r\n </ng-template>\r\n</div>\r\n",
|
|
6724
6731
|
changeDetection: i0.ChangeDetectionStrategy.OnPush,
|
|
6725
6732
|
styles: [":host{display:block;background-color:var(--color-component-bg-200);padding:3px}\n"]
|
|
6726
6733
|
},] }
|
|
@@ -7403,7 +7410,7 @@
|
|
|
7403
7410
|
AssetGalleryComponent.decorators = [
|
|
7404
7411
|
{ type: i0.Component, args: [{
|
|
7405
7412
|
selector: 'vdr-asset-gallery',
|
|
7406
|
-
template: "<div class=\"gallery\">\r\n <div\r\n class=\"card\"\r\n *ngFor=\"let asset of assets\"\r\n (click)=\"toggleSelection(asset, $event)\"\r\n [class.selected]=\"isSelected(asset)\"\r\n >\r\n <div class=\"card-img\">\r\n <div class=\"selected-checkbox\"><clr-icon shape=\"check-circle\" size=\"32\"></clr-icon></div>\r\n <img [src]=\"asset | assetPreview: 'thumb'\" />\r\n </div>\r\n <div class=\"detail\">\r\n <vdr-entity-info\r\n [entity]=\"asset\"\r\n [small]=\"true\"\r\n (click)=\"entityInfoClick($event)\"\r\n ></vdr-entity-info>\r\n <span [title]=\"asset.name\">{{ asset.name }}</span>\r\n </div>\r\n </div>\r\n</div>\r\n<div class=\"info-bar\">\r\n <div class=\"card\">\r\n <div class=\"card-img\">\r\n <div class=\"placeholder\" *ngIf=\"selection.length === 0\">\r\n <clr-icon shape=\"image\" size=\"128\"></clr-icon>\r\n <div>{{ 'catalog.no-selection' | translate }}</div>\r\n </div>\r\n <img\r\n class=\"preview\"\r\n *ngIf=\"selection.length >= 1\"\r\n [src]=\"lastSelected().preview + '?preset=medium'\"\r\n />\r\n </div>\r\n <div class=\"card-block details\" *ngIf=\"selection.length >= 1\">\r\n <div class=\"name\">{{ lastSelected().name }}</div>\r\n <div>{{ 'asset.original-asset-size' | translate }}: {{ lastSelected().fileSize | filesize }}</div>\r\n\r\n <ng-container *ngIf=\"selection.length === 1\">\r\n <vdr-chip *ngFor=\"let tag of lastSelected().tags\" [colorFrom]=\"tag.value\"><clr-icon shape=\"tag\" class=\"mr2\"></clr-icon> {{ tag.value }}</vdr-chip>\r\n <div>\r\n <button (click)=\"previewAsset(lastSelected())\" class=\"btn btn-link\">\r\n <clr-icon shape=\"eye\"></clr-icon> {{ 'asset.preview' | translate }}\r\n </button>\r\n </div>\r\n <div>\r\n <a [routerLink]=\"['./', lastSelected().id]\" class=\"btn btn-link\">\r\n <clr-icon shape=\"pencil\"></clr-icon> {{ 'common.edit' | translate }}\r\n </a>\r\n </div>\r\n </ng-container>\r\n <div *ngIf=\"canDelete\">\r\n <button (click)=\"deleteAssets.emit(selection)\" class=\"btn btn-link\">\r\n <clr-icon shape=\"trash\" class=\"is-danger\"></clr-icon> {{ 'common.delete' | translate }}\r\n </button>\r\n </div>\r\n </div>\r\n </div>\r\n <div class=\"card stack\" [class.visible]=\"selection.length > 1\"></div>\r\n <div class=\"selection-count\" [class.visible]=\"selection.length > 1\">\r\n {{ 'asset.assets-selected-count' | translate: { count: selection.length } }}\r\n <ul>\r\n <li *ngFor=\"let asset of selection\">{{ asset.name }}</li>\r\n </ul>\r\n </div>\r\n</div>\r\n",
|
|
7413
|
+
template: "<div class=\"gallery\">\r\n <div\r\n class=\"card\"\r\n *ngFor=\"let asset of assets\"\r\n (click)=\"toggleSelection(asset, $event)\"\r\n [class.selected]=\"isSelected(asset)\"\r\n >\r\n <div class=\"card-img\">\r\n <div class=\"selected-checkbox\"><clr-icon shape=\"check-circle\" size=\"32\"></clr-icon></div>\r\n <img [src]=\"asset | assetPreview: 'thumb'\" />\r\n </div>\r\n <div class=\"detail\">\r\n <vdr-entity-info\r\n [entity]=\"asset\"\r\n [small]=\"true\"\r\n (click)=\"entityInfoClick($event)\"\r\n ></vdr-entity-info>\r\n <span [title]=\"asset.name\">{{ asset.name }}</span>\r\n </div>\r\n </div>\r\n</div>\r\n<div class=\"info-bar\">\r\n <div class=\"card\">\r\n <div class=\"card-img\">\r\n <div class=\"placeholder\" *ngIf=\"selection.length === 0\">\r\n <clr-icon shape=\"image\" size=\"128\"></clr-icon>\r\n <div>{{ 'catalog.no-selection' | translate }}</div>\r\n </div>\r\n <img\r\n class=\"preview\"\r\n *ngIf=\"selection.length >= 1\"\r\n [src]=\"lastSelected().preview + '?preset=medium'\"\r\n />\r\n </div>\r\n <div class=\"card-block details\" *ngIf=\"selection.length >= 1\">\r\n <div class=\"name\">{{ lastSelected().name }}</div>\r\n <div>{{ 'asset.original-asset-size' | translate }}: {{ lastSelected().fileSize | filesize }}</div>\r\n\r\n <ng-container *ngIf=\"selection.length === 1\">\r\n <vdr-chip *ngFor=\"let tag of lastSelected().tags\" [colorFrom]=\"tag.value\"\r\n ><clr-icon shape=\"tag\" class=\"mr2\"></clr-icon> {{ tag.value }}</vdr-chip\r\n >\r\n <div>\r\n <button (click)=\"previewAsset(lastSelected())\" class=\"btn btn-link\">\r\n <clr-icon shape=\"eye\"></clr-icon> {{ 'asset.preview' | translate }}\r\n </button>\r\n </div>\r\n <div>\r\n <vdr-asset-preview-links class=\"\" [asset]=\"lastSelected()\"></vdr-asset-preview-links>\r\n </div>\r\n <div>\r\n <a [routerLink]=\"['./', lastSelected().id]\" class=\"btn btn-link\">\r\n <clr-icon shape=\"pencil\"></clr-icon> {{ 'common.edit' | translate }}\r\n </a>\r\n </div>\r\n </ng-container>\r\n <div *ngIf=\"canDelete\">\r\n <button (click)=\"deleteAssets.emit(selection)\" class=\"btn btn-link\">\r\n <clr-icon shape=\"trash\" class=\"is-danger\"></clr-icon> {{ 'common.delete' | translate }}\r\n </button>\r\n </div>\r\n </div>\r\n </div>\r\n <div class=\"card stack\" [class.visible]=\"selection.length > 1\"></div>\r\n <div class=\"selection-count\" [class.visible]=\"selection.length > 1\">\r\n {{ 'asset.assets-selected-count' | translate: { count: selection.length } }}\r\n <ul>\r\n <li *ngFor=\"let asset of selection\">{{ asset.name }}</li>\r\n </ul>\r\n </div>\r\n</div>\r\n",
|
|
7407
7414
|
changeDetection: i0.ChangeDetectionStrategy.OnPush,
|
|
7408
7415
|
styles: [":host{display:flex;overflow:hidden}.gallery{flex:1;display:grid;grid-template-columns:repeat(auto-fill,150px);grid-template-rows:repeat(auto-fill,180px);grid-gap:10px 20px;overflow-y:auto;padding-left:12px;padding-top:12px;padding-bottom:12px}.gallery .card:hover{box-shadow:0 .125rem 0 0 var(--color-primary-500);border:1px solid var(--color-primary-500)}.card{margin-top:0;position:relative}.selected-checkbox{opacity:0;position:absolute;color:var(--color-success-500);background-color:#fff;border-radius:50%;top:-12px;left:-12px;box-shadow:0 5px 5px -4px #000000bf;transition:opacity .1s}.card.selected{box-shadow:0 .125rem 0 0 var(--color-primary-500);border:1px solid var(--color-primary-500)}.card.selected .selected-checkbox{opacity:1}.detail{font-size:12px;margin:3px;overflow:hidden;white-space:nowrap;text-overflow:ellipsis}.detail vdr-entity-info{height:16px}.info-bar{width:25%;padding:0 6px;overflow-y:auto}.info-bar .card{z-index:1}.info-bar .stack{z-index:0;opacity:0;transform:perspective(500px) translateZ(0) translateY(-16px);height:16px;transition:transform .3s,opacity 0s .3s;background-color:#fff}.info-bar .stack.visible{opacity:1;transform:perspective(500px) translateZ(-44px) translateY(0);background-color:var(--color-component-bg-100);transition:transform .3s,color .3s}.info-bar .selection-count{opacity:0;position:relative;text-align:center;visibility:hidden;transition:opacity .3s,visibility 0s .3s}.info-bar .selection-count.visible{opacity:1;visibility:visible;transition:opacity .3s,visibility 0s}.info-bar .selection-count ul{text-align:left;list-style-type:none;margin-left:12px}.info-bar .selection-count ul li{font-size:12px}.info-bar .placeholder{text-align:center;color:var(--color-grey-300)}.info-bar .preview img{max-width:100%}.info-bar .details{font-size:12px;word-break:break-all}.info-bar .name{line-height:14px;font-weight:bold}\n"]
|
|
7409
7416
|
},] }
|
|
@@ -7554,6 +7561,24 @@
|
|
|
7554
7561
|
assetGalleryComponent: [{ type: i0.ViewChild, args: ['assetGalleryComponent',] }]
|
|
7555
7562
|
};
|
|
7556
7563
|
|
|
7564
|
+
var AssetPreviewLinksComponent = /** @class */ (function () {
|
|
7565
|
+
function AssetPreviewLinksComponent() {
|
|
7566
|
+
this.sizes = ['tiny', 'thumb', 'small', 'medium', 'large', 'full'];
|
|
7567
|
+
}
|
|
7568
|
+
return AssetPreviewLinksComponent;
|
|
7569
|
+
}());
|
|
7570
|
+
AssetPreviewLinksComponent.decorators = [
|
|
7571
|
+
{ type: i0.Component, args: [{
|
|
7572
|
+
selector: 'vdr-asset-preview-links',
|
|
7573
|
+
template: "<vdr-dropdown>\r\n <button class=\"btn btn-link\" vdrDropdownTrigger>\r\n <clr-icon shape=\"link\"></clr-icon> {{ 'catalog.asset-preview-links' | translate }}<clr-icon shape=\"caret\" dir=\"down\"></clr-icon>\r\n </button>\r\n <vdr-dropdown-menu vdrPosition=\"bottom-left\">\r\n <a\r\n *ngFor=\"let size of sizes\"\r\n [href]=\"asset | assetPreview: size\"\r\n [title]=\"asset | assetPreview: size\"\r\n target=\"_blank\"\r\n class=\"asset-preview-link\"\r\n vdrDropdownItem\r\n >\r\n <vdr-chip><clr-icon shape=\"link\"></clr-icon> {{ 'asset.preview' | translate }}: {{ size }}</vdr-chip>\r\n </a>\r\n </vdr-dropdown-menu></vdr-dropdown\r\n>\r\n",
|
|
7574
|
+
changeDetection: i0.ChangeDetectionStrategy.OnPush,
|
|
7575
|
+
styles: [".asset-preview-link{font-size:12px}\n"]
|
|
7576
|
+
},] }
|
|
7577
|
+
];
|
|
7578
|
+
AssetPreviewLinksComponent.propDecorators = {
|
|
7579
|
+
asset: [{ type: i0.Input }]
|
|
7580
|
+
};
|
|
7581
|
+
|
|
7557
7582
|
var ManageTagsDialogComponent = /** @class */ (function () {
|
|
7558
7583
|
function ManageTagsDialogComponent(dataService) {
|
|
7559
7584
|
this.dataService = dataService;
|
|
@@ -7789,9 +7814,9 @@
|
|
|
7789
7814
|
AssetPreviewComponent.decorators = [
|
|
7790
7815
|
{ type: i0.Component, args: [{
|
|
7791
7816
|
selector: 'vdr-asset-preview',
|
|
7792
|
-
template: "<div class=\"preview-image\" #previewDiv [class.centered]=\"centered\">\r\n <div class=\"image-wrapper\">\r\n <vdr-focal-point-control\r\n [width]=\"width\"\r\n [height]=\"height\"\r\n [fpx]=\"fpx\"\r\n [fpy]=\"fpy\"\r\n [editable]=\"settingFocalPoint\"\r\n (focalPointChange)=\"onFocalPointChange($event)\"\r\n >\r\n <img\r\n class=\"asset-image\"\r\n [src]=\"asset | assetPreview: size\"\r\n #imageElement\r\n (load)=\"onImageLoad()\"\r\n />\r\n </vdr-focal-point-control>\r\n <div class=\"focal-point-info\" *ngIf=\"settingFocalPoint\">\r\n <button class=\"icon-button\" (click)=\"setFocalPointCancel()\">\r\n <clr-icon shape=\"times\"></clr-icon>\r\n </button>\r\n <button class=\"btn btn-primary btn-sm\" (click)=\"setFocalPointEnd()\" [disabled]=\"!lastFocalPoint\">\r\n <clr-icon shape=\"crosshairs\"></clr-icon>\r\n {{ 'asset.set-focal-point' | translate }}\r\n </button>\r\n </div>\r\n </div>\r\n</div>\r\n\r\n<div class=\"controls\" [class.fade]=\"settingFocalPoint\">\r\n <form [formGroup]=\"form\">\r\n <clr-input-container class=\"name-input\" *ngIf=\"editable\">\r\n <label>{{ 'common.name' | translate }}</label>\r\n <input\r\n clrInput\r\n type=\"text\"\r\n formControlName=\"name\"\r\n [readonly]=\"!(['UpdateCatalog', 'UpdateAsset'] | hasPermission) || settingFocalPoint\"\r\n />\r\n </clr-input-container>\r\n\r\n <vdr-labeled-data [label]=\"'common.name' | translate\" *ngIf=\"!editable\">\r\n <span class=\"elide\">\r\n {{ asset.name }}\r\n </span>\r\n </vdr-labeled-data>\r\n\r\n <vdr-labeled-data [label]=\"'asset.source-file' | translate\">\r\n <a [href]=\"asset.source\" [title]=\"asset.source\" target=\"_blank\" class=\"elide source-link\">{{\r\n getSourceFileName()\r\n }}</a>\r\n </vdr-labeled-data>\r\n\r\n <vdr-labeled-data [label]=\"'asset.original-asset-size' | translate\">\r\n {{ asset.fileSize | filesize }}\r\n </vdr-labeled-data>\r\n\r\n <vdr-labeled-data [label]=\"'asset.dimensions' | translate\">\r\n {{ asset.width }} x {{ asset.height }}\r\n </vdr-labeled-data>\r\n\r\n <vdr-labeled-data [label]=\"'asset.focal-point' | translate\">\r\n <span *ngIf=\"fpx\"\r\n ><clr-icon shape=\"crosshairs\"></clr-icon> x: {{ fpx | number: '1.2-2' }}, y:\r\n {{ fpy | number: '1.2-2' }}</span\r\n >\r\n <span *ngIf=\"!fpx\">{{ 'common.not-set' | translate }}</span>\r\n <br />\r\n <button\r\n class=\"btn btn-secondary-outline btn-sm\"\r\n [disabled]=\"settingFocalPoint\"\r\n (click)=\"setFocalPointStart()\"\r\n >\r\n <ng-container *ngIf=\"!fpx\">{{ 'asset.set-focal-point' | translate }}</ng-container>\r\n <ng-container *ngIf=\"fpx\">{{ 'asset.update-focal-point' | translate }}</ng-container>\r\n </button>\r\n <button\r\n class=\"btn btn-warning-outline btn-sm\"\r\n [disabled]=\"settingFocalPoint\"\r\n *ngIf=\"!!fpx\"\r\n (click)=\"removeFocalPoint()\"\r\n >\r\n {{ 'asset.unset-focal-point' | translate }}\r\n </button>\r\n </vdr-labeled-data>\r\n <vdr-labeled-data [label]=\"'common.tags' | translate\">\r\n <ng-container *ngIf=\"editable\">\r\n <vdr-tag-selector formControlName=\"tags\"></vdr-tag-selector>\r\n <button class=\"btn btn-link btn-sm\" (click)=\"manageTags()\">\r\n <clr-icon shape=\"tags\"></clr-icon>\r\n {{ 'common.manage-tags' | translate }}\r\n </button>\r\n </ng-container>\r\n <div *ngIf=\"!editable\">\r\n <vdr-chip *ngFor=\"let tag of asset.tags\" [colorFrom]=\"tag.value\">\r\n <clr-icon shape=\"tag\" class=\"mr2\"></clr-icon>\r\n {{ tag.value }}</vdr-chip\r\n >\r\n </div>\r\n </vdr-labeled-data>\r\n </form>\r\n <section *ngIf=\"customFields.length\">\r\n <label>{{ 'common.custom-fields' | translate }}</label>\r\n <vdr-tabbed-custom-fields\r\n entityName=\"Asset\"\r\n [compact]=\"true\"\r\n [customFields]=\"customFields\"\r\n [customFieldsFormGroup]=\"customFieldsForm\"\r\n [readonly]=\"!(['UpdateCatalog', 'UpdateAsset'] | hasPermission)\"\r\n ></vdr-tabbed-custom-fields>\r\n </section>\r\n <div class=\"flex-spacer\"></div>\r\n <div class=\"preview-select\">\r\n <clr-select-container>\r\n <label>{{ 'asset.preview' | translate }}</label>\r\n <select clrSelect name=\"options\" [(ngModel)]=\"size\" [disabled]=\"settingFocalPoint\">\r\n <option value=\"tiny\">tiny</option>\r\n <option value=\"thumb\">thumb</option>\r\n <option value=\"small\">small</option>\r\n <option value=\"medium\">medium</option>\r\n <option value=\"large\">large</option>\r\n <option value=\"\">full size</option>\r\n </select>\r\n </clr-select-container>\r\n <div class=\"asset-detail\">{{ width }} x {{ height }}</div>\r\n </div>\r\n <
|
|
7817
|
+
template: "<div class=\"preview-image\" #previewDiv [class.centered]=\"centered\">\r\n <div class=\"image-wrapper\">\r\n <vdr-focal-point-control\r\n [width]=\"width\"\r\n [height]=\"height\"\r\n [fpx]=\"fpx\"\r\n [fpy]=\"fpy\"\r\n [editable]=\"settingFocalPoint\"\r\n (focalPointChange)=\"onFocalPointChange($event)\"\r\n >\r\n <img\r\n class=\"asset-image\"\r\n [src]=\"asset | assetPreview: size\"\r\n #imageElement\r\n (load)=\"onImageLoad()\"\r\n />\r\n </vdr-focal-point-control>\r\n <div class=\"focal-point-info\" *ngIf=\"settingFocalPoint\">\r\n <button class=\"icon-button\" (click)=\"setFocalPointCancel()\">\r\n <clr-icon shape=\"times\"></clr-icon>\r\n </button>\r\n <button class=\"btn btn-primary btn-sm\" (click)=\"setFocalPointEnd()\" [disabled]=\"!lastFocalPoint\">\r\n <clr-icon shape=\"crosshairs\"></clr-icon>\r\n {{ 'asset.set-focal-point' | translate }}\r\n </button>\r\n </div>\r\n </div>\r\n</div>\r\n\r\n<div class=\"controls\" [class.fade]=\"settingFocalPoint\">\r\n <form [formGroup]=\"form\">\r\n <clr-input-container class=\"name-input\" *ngIf=\"editable\">\r\n <label>{{ 'common.name' | translate }}</label>\r\n <input\r\n clrInput\r\n type=\"text\"\r\n formControlName=\"name\"\r\n [readonly]=\"!(['UpdateCatalog', 'UpdateAsset'] | hasPermission) || settingFocalPoint\"\r\n />\r\n </clr-input-container>\r\n\r\n <vdr-labeled-data [label]=\"'common.name' | translate\" *ngIf=\"!editable\">\r\n <span class=\"elide\">\r\n {{ asset.name }}\r\n </span>\r\n </vdr-labeled-data>\r\n\r\n <vdr-labeled-data [label]=\"'asset.source-file' | translate\">\r\n <a [href]=\"asset.source\" [title]=\"asset.source\" target=\"_blank\" class=\"elide source-link\">{{\r\n getSourceFileName()\r\n }}</a>\r\n </vdr-labeled-data>\r\n\r\n <vdr-labeled-data [label]=\"'asset.original-asset-size' | translate\">\r\n {{ asset.fileSize | filesize }}\r\n </vdr-labeled-data>\r\n\r\n <vdr-labeled-data [label]=\"'asset.dimensions' | translate\">\r\n {{ asset.width }} x {{ asset.height }}\r\n </vdr-labeled-data>\r\n\r\n <vdr-labeled-data [label]=\"'asset.focal-point' | translate\">\r\n <span *ngIf=\"fpx\"\r\n ><clr-icon shape=\"crosshairs\"></clr-icon> x: {{ fpx | number: '1.2-2' }}, y:\r\n {{ fpy | number: '1.2-2' }}</span\r\n >\r\n <span *ngIf=\"!fpx\">{{ 'common.not-set' | translate }}</span>\r\n <br />\r\n <button\r\n class=\"btn btn-secondary-outline btn-sm\"\r\n [disabled]=\"settingFocalPoint\"\r\n (click)=\"setFocalPointStart()\"\r\n >\r\n <ng-container *ngIf=\"!fpx\">{{ 'asset.set-focal-point' | translate }}</ng-container>\r\n <ng-container *ngIf=\"fpx\">{{ 'asset.update-focal-point' | translate }}</ng-container>\r\n </button>\r\n <button\r\n class=\"btn btn-warning-outline btn-sm\"\r\n [disabled]=\"settingFocalPoint\"\r\n *ngIf=\"!!fpx\"\r\n (click)=\"removeFocalPoint()\"\r\n >\r\n {{ 'asset.unset-focal-point' | translate }}\r\n </button>\r\n </vdr-labeled-data>\r\n <vdr-labeled-data [label]=\"'common.tags' | translate\">\r\n <ng-container *ngIf=\"editable\">\r\n <vdr-tag-selector formControlName=\"tags\"></vdr-tag-selector>\r\n <button class=\"btn btn-link btn-sm\" (click)=\"manageTags()\">\r\n <clr-icon shape=\"tags\"></clr-icon>\r\n {{ 'common.manage-tags' | translate }}\r\n </button>\r\n </ng-container>\r\n <div *ngIf=\"!editable\">\r\n <vdr-chip *ngFor=\"let tag of asset.tags\" [colorFrom]=\"tag.value\">\r\n <clr-icon shape=\"tag\" class=\"mr2\"></clr-icon>\r\n {{ tag.value }}</vdr-chip\r\n >\r\n </div>\r\n </vdr-labeled-data>\r\n </form>\r\n <section *ngIf=\"customFields.length\">\r\n <label>{{ 'common.custom-fields' | translate }}</label>\r\n <vdr-tabbed-custom-fields\r\n entityName=\"Asset\"\r\n [compact]=\"true\"\r\n [customFields]=\"customFields\"\r\n [customFieldsFormGroup]=\"customFieldsForm\"\r\n [readonly]=\"!(['UpdateCatalog', 'UpdateAsset'] | hasPermission)\"\r\n ></vdr-tabbed-custom-fields>\r\n </section>\r\n <div class=\"flex-spacer\"></div>\r\n <div class=\"preview-select\">\r\n <clr-select-container>\r\n <label>{{ 'asset.preview' | translate }}</label>\r\n <select clrSelect name=\"options\" [(ngModel)]=\"size\" [disabled]=\"settingFocalPoint\">\r\n <option value=\"tiny\">tiny</option>\r\n <option value=\"thumb\">thumb</option>\r\n <option value=\"small\">small</option>\r\n <option value=\"medium\">medium</option>\r\n <option value=\"large\">large</option>\r\n <option value=\"\">full size</option>\r\n </select>\r\n </clr-select-container>\r\n <div class=\"asset-detail\">{{ width }} x {{ height }}</div>\r\n </div>\r\n <vdr-asset-preview-links class=\"mb4\" [asset]=\"asset\"></vdr-asset-preview-links>\r\n <div *ngIf=\"!editable\" class=\"edit-button-wrapper\">\r\n <a\r\n class=\"btn btn-link btn-sm\"\r\n [routerLink]=\"['/catalog', 'assets', asset.id]\"\r\n (click)=\"editClick.emit()\"\r\n >\r\n <clr-icon shape=\"edit\"></clr-icon>\r\n {{ 'common.edit' | translate }}\r\n </a>\r\n </div>\r\n</div>\r\n",
|
|
7793
7818
|
changeDetection: i0.ChangeDetectionStrategy.OnPush,
|
|
7794
|
-
styles: [":host{display:flex;height:100%}.preview-image{width:100%;height:100%;min-height:60vh;overflow:auto;text-align:center;box-shadow:inset 0 0 5px #0000001a;background:url(data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABAAAAAQCAIAAACQkWg2AAAAAXNSR0IArs4c6QAAAARnQU1BAACxjwv8YQUAAAAJcEhZcwAACuoAAArqAVDM774AAAAZdEVYdFNvZnR3YXJlAHBhaW50Lm5ldCA0LjAuMTZEaa/1AAAAK0lEQVQ4T2P4jwP8xgFGNSADqDwGIF0DlMYAUH0YYFQDMoDKYwASNfz/DwB/JvcficphowAAAABJRU5ErkJggg==);flex:1}.preview-image.centered{display:flex;align-items:center;justify-content:center}.preview-image vdr-focal-point-control{position:relative;box-shadow:0 0 10px -3px #00000026}.preview-image .image-wrapper{position:relative}.preview-image .asset-image{width:100%}.preview-image .focal-point-info{position:absolute;display:flex;right:0}.controls{display:flex;flex-direction:column;margin-left:12px;min-width:15vw;max-width:25vw;transition:opacity .3s}.controls.fade{opacity:.5}.controls .name-input{margin-bottom:24px}.controls ::ng-deep .clr-control-container{width:100%}.controls ::ng-deep .clr-control-container .clr-input{width:100%}.controls .elide{overflow:hidden;white-space:nowrap;text-overflow:ellipsis;display:block}.controls .source-link{direction:rtl}.controls .preview-select{display:flex;align-items:center
|
|
7819
|
+
styles: [":host{display:flex;height:100%}.preview-image{width:100%;height:100%;min-height:60vh;overflow:auto;text-align:center;box-shadow:inset 0 0 5px #0000001a;background:url(data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABAAAAAQCAIAAACQkWg2AAAAAXNSR0IArs4c6QAAAARnQU1BAACxjwv8YQUAAAAJcEhZcwAACuoAAArqAVDM774AAAAZdEVYdFNvZnR3YXJlAHBhaW50Lm5ldCA0LjAuMTZEaa/1AAAAK0lEQVQ4T2P4jwP8xgFGNSADqDwGIF0DlMYAUH0YYFQDMoDKYwASNfz/DwB/JvcficphowAAAABJRU5ErkJggg==);flex:1}.preview-image.centered{display:flex;align-items:center;justify-content:center}.preview-image vdr-focal-point-control{position:relative;box-shadow:0 0 10px -3px #00000026}.preview-image .image-wrapper{position:relative}.preview-image .asset-image{width:100%}.preview-image .focal-point-info{position:absolute;display:flex;right:0}.controls{display:flex;flex-direction:column;margin-left:12px;min-width:15vw;max-width:25vw;transition:opacity .3s}.controls.fade{opacity:.5}.controls .name-input{margin-bottom:24px}.controls ::ng-deep .clr-control-container{width:100%}.controls ::ng-deep .clr-control-container .clr-input{width:100%}.controls .elide{overflow:hidden;white-space:nowrap;text-overflow:ellipsis;display:block}.controls .source-link{direction:rtl}.controls .preview-select{display:flex;align-items:center}.controls .preview-select clr-select-container{margin-right:12px}.edit-button-wrapper{padding-top:6px;border-top:1px solid var(--color-component-border-100);text-align:center}\n"]
|
|
7795
7820
|
},] }
|
|
7796
7821
|
];
|
|
7797
7822
|
AssetPreviewComponent.ctorParameters = function () { return [
|
|
@@ -10308,7 +10333,7 @@
|
|
|
10308
10333
|
this.depth = 0;
|
|
10309
10334
|
}
|
|
10310
10335
|
}
|
|
10311
|
-
ObjectTreeComponent.prototype.
|
|
10336
|
+
ObjectTreeComponent.prototype.ngOnChanges = function () {
|
|
10312
10337
|
this.entries = this.getEntries(this.value);
|
|
10313
10338
|
this.expanded = this.depth === 0 || this.isArrayItem;
|
|
10314
10339
|
this.valueIsArray = Object.keys(this.value).every(function (v) { return Number.isInteger(+v); });
|
|
@@ -11304,7 +11329,8 @@
|
|
|
11304
11329
|
this.tabbedCustomFields = this.groupByTabs(this.customFields);
|
|
11305
11330
|
};
|
|
11306
11331
|
TabbedCustomFieldsComponent.prototype.customFieldIsSet = function (name) {
|
|
11307
|
-
|
|
11332
|
+
var _a;
|
|
11333
|
+
return !!((_a = this.customFieldsFormGroup) === null || _a === void 0 ? void 0 : _a.get(name));
|
|
11308
11334
|
};
|
|
11309
11335
|
TabbedCustomFieldsComponent.prototype.groupByTabs = function (customFieldConfigs) {
|
|
11310
11336
|
var e_1, _d;
|
|
@@ -11659,7 +11685,7 @@
|
|
|
11659
11685
|
}
|
|
11660
11686
|
Object.defineProperty(IfDefaultChannelActiveDirective.prototype, "vdrIfMultichannelElse", {
|
|
11661
11687
|
/**
|
|
11662
|
-
* A template to show if the current user does not have the
|
|
11688
|
+
* A template to show if the current user does not have the specified permission.
|
|
11663
11689
|
*/
|
|
11664
11690
|
set: function (templateRef) {
|
|
11665
11691
|
this.setElseTemplate(templateRef);
|
|
@@ -11718,7 +11744,7 @@
|
|
|
11718
11744
|
}
|
|
11719
11745
|
Object.defineProperty(IfMultichannelDirective.prototype, "vdrIfMultichannelElse", {
|
|
11720
11746
|
/**
|
|
11721
|
-
* A template to show if the current user does not have the
|
|
11747
|
+
* A template to show if the current user does not have the specified permission.
|
|
11722
11748
|
*/
|
|
11723
11749
|
set: function (templateRef) {
|
|
11724
11750
|
this.setElseTemplate(templateRef);
|
|
@@ -12253,6 +12279,52 @@
|
|
|
12253
12279
|
template: [{ type: i0.ViewChild, args: ['selector',] }]
|
|
12254
12280
|
};
|
|
12255
12281
|
|
|
12282
|
+
var RelationGenericInputComponent = /** @class */ (function () {
|
|
12283
|
+
function RelationGenericInputComponent(modalService) {
|
|
12284
|
+
this.modalService = modalService;
|
|
12285
|
+
}
|
|
12286
|
+
RelationGenericInputComponent.prototype.selectRelationId = function () {
|
|
12287
|
+
var _this = this;
|
|
12288
|
+
this.modalService
|
|
12289
|
+
.fromComponent(RelationSelectorDialogComponent, {
|
|
12290
|
+
size: 'md',
|
|
12291
|
+
closable: true,
|
|
12292
|
+
locals: {
|
|
12293
|
+
title: ngxTranslateExtractMarker.marker('common.select-relation-id'),
|
|
12294
|
+
selectorTemplate: this.template,
|
|
12295
|
+
},
|
|
12296
|
+
})
|
|
12297
|
+
.subscribe(function (result) {
|
|
12298
|
+
if (result) {
|
|
12299
|
+
_this.parentFormControl.setValue({ id: result });
|
|
12300
|
+
_this.parentFormControl.markAsDirty();
|
|
12301
|
+
}
|
|
12302
|
+
});
|
|
12303
|
+
};
|
|
12304
|
+
RelationGenericInputComponent.prototype.remove = function () {
|
|
12305
|
+
this.parentFormControl.setValue(null);
|
|
12306
|
+
this.parentFormControl.markAsDirty();
|
|
12307
|
+
};
|
|
12308
|
+
return RelationGenericInputComponent;
|
|
12309
|
+
}());
|
|
12310
|
+
RelationGenericInputComponent.decorators = [
|
|
12311
|
+
{ type: i0.Component, args: [{
|
|
12312
|
+
selector: 'vdr-relation-generic-input',
|
|
12313
|
+
template: "<vdr-relation-card\r\n (select)=\"selectRelationId()\"\r\n (remove)=\"remove()\"\r\n placeholderIcon=\"objects\"\r\n [entity]=\"parentFormControl.value\"\r\n [selectLabel]=\"'common.select-relation-id' | translate\"\r\n [removable]=\"!config.list\"\r\n [readonly]=\"readonly\"\r\n>\r\n {{ parentFormControl.value | json }}\r\n <ng-template vdrRelationCardPreview>\r\n <div class=\"placeholder\">\r\n <clr-icon shape=\"objects\" size=\"50\"></clr-icon>\r\n </div>\r\n </ng-template>\r\n <ng-template vdrRelationCardDetail let-entity=\"entity\">\r\n <div class=\"\">\r\n {{ config.entity }}: <strong>{{ entity.id }}</strong>\r\n </div>\r\n <vdr-object-tree [value]=\"{ properties: parentFormControl.value }\"></vdr-object-tree>\r\n </ng-template>\r\n</vdr-relation-card>\r\n\r\n<ng-template #selector let-select=\"select\">\r\n <div class=\"id-select-wrapper\">\r\n <clr-input-container>\r\n <input [(ngModel)]=\"relationId\" type=\"text\" clrInput [readonly]=\"readonly\" />\r\n </clr-input-container>\r\n <div>\r\n <button class=\"btn btn-primary m0\" (click)=\"select(relationId)\">\r\n {{ 'common.confirm' | translate }}\r\n </button>\r\n </div>\r\n </div>\r\n</ng-template>\r\n",
|
|
12314
|
+
changeDetection: i0.ChangeDetectionStrategy.OnPush,
|
|
12315
|
+
styles: [".id-select-wrapper{display:flex;align-items:flex-end}\n"]
|
|
12316
|
+
},] }
|
|
12317
|
+
];
|
|
12318
|
+
RelationGenericInputComponent.ctorParameters = function () { return [
|
|
12319
|
+
{ type: ModalService }
|
|
12320
|
+
]; };
|
|
12321
|
+
RelationGenericInputComponent.propDecorators = {
|
|
12322
|
+
readonly: [{ type: i0.Input }],
|
|
12323
|
+
parentFormControl: [{ type: i0.Input }],
|
|
12324
|
+
config: [{ type: i0.Input }],
|
|
12325
|
+
template: [{ type: i0.ViewChild, args: ['selector',] }]
|
|
12326
|
+
};
|
|
12327
|
+
|
|
12256
12328
|
var RelationProductVariantInputComponent = /** @class */ (function () {
|
|
12257
12329
|
function RelationProductVariantInputComponent(modalService, dataService) {
|
|
12258
12330
|
this.modalService = modalService;
|
|
@@ -13415,6 +13487,7 @@
|
|
|
13415
13487
|
TabbedCustomFieldsComponent,
|
|
13416
13488
|
UiExtensionPointComponent,
|
|
13417
13489
|
CustomDetailComponentHostComponent,
|
|
13490
|
+
AssetPreviewLinksComponent,
|
|
13418
13491
|
];
|
|
13419
13492
|
var DYNAMIC_FORM_INPUTS = [
|
|
13420
13493
|
TextFormInputComponent,
|
|
@@ -13434,6 +13507,7 @@
|
|
|
13434
13507
|
RelationCardPreviewDirective,
|
|
13435
13508
|
RelationCardDetailDirective,
|
|
13436
13509
|
RelationSelectorDialogComponent,
|
|
13510
|
+
RelationGenericInputComponent,
|
|
13437
13511
|
TextareaFormInputComponent,
|
|
13438
13512
|
RichTextFormInputComponent,
|
|
13439
13513
|
JsonEditorFormInputComponent,
|
|
@@ -14012,7 +14086,7 @@
|
|
|
14012
14086
|
}
|
|
14013
14087
|
|
|
14014
14088
|
// Auto-generated by the set-version.js script.
|
|
14015
|
-
var ADMIN_UI_VERSION = '1.
|
|
14089
|
+
var ADMIN_UI_VERSION = '1.5.1';
|
|
14016
14090
|
|
|
14017
14091
|
/**
|
|
14018
14092
|
* Responsible for registering dashboard widget components and querying for layouts.
|
|
@@ -14283,6 +14357,7 @@
|
|
|
14283
14357
|
exports.AssetPickerDialogComponent = AssetPickerDialogComponent;
|
|
14284
14358
|
exports.AssetPreviewComponent = AssetPreviewComponent;
|
|
14285
14359
|
exports.AssetPreviewDialogComponent = AssetPreviewDialogComponent;
|
|
14360
|
+
exports.AssetPreviewLinksComponent = AssetPreviewLinksComponent;
|
|
14286
14361
|
exports.AssetPreviewPipe = AssetPreviewPipe;
|
|
14287
14362
|
exports.AssetSearchInputComponent = AssetSearchInputComponent;
|
|
14288
14363
|
exports.AuthDataService = AuthDataService;
|
|
@@ -14358,6 +14433,7 @@
|
|
|
14358
14433
|
exports.DELETE_COLLECTION = DELETE_COLLECTION;
|
|
14359
14434
|
exports.DELETE_COUNTRY = DELETE_COUNTRY;
|
|
14360
14435
|
exports.DELETE_CUSTOMER = DELETE_CUSTOMER;
|
|
14436
|
+
exports.DELETE_CUSTOMER_ADDRESS = DELETE_CUSTOMER_ADDRESS;
|
|
14361
14437
|
exports.DELETE_CUSTOMER_GROUP = DELETE_CUSTOMER_GROUP;
|
|
14362
14438
|
exports.DELETE_CUSTOMER_NOTE = DELETE_CUSTOMER_NOTE;
|
|
14363
14439
|
exports.DELETE_FACET = DELETE_FACET;
|
|
@@ -14568,6 +14644,7 @@
|
|
|
14568
14644
|
exports.RelationCardPreviewDirective = RelationCardPreviewDirective;
|
|
14569
14645
|
exports.RelationCustomerInputComponent = RelationCustomerInputComponent;
|
|
14570
14646
|
exports.RelationFormInputComponent = RelationFormInputComponent;
|
|
14647
|
+
exports.RelationGenericInputComponent = RelationGenericInputComponent;
|
|
14571
14648
|
exports.RelationProductInputComponent = RelationProductInputComponent;
|
|
14572
14649
|
exports.RelationProductVariantInputComponent = RelationProductVariantInputComponent;
|
|
14573
14650
|
exports.RelationSelectorDialogComponent = RelationSelectorDialogComponent;
|